Cdonts Email Form Not Working.
Can anyone take a look at this code and see where I may be going wrong?
************************************************** *
html page:
<form method=Post action=get.asp>
valley secretary<br>
<input type="text" name="t1" size="20"><p>
<input type=submit value=Submit></form>
************************************************** *
asp page:
<%
Dim t1name,t1
t1name = "valley secretary"
t1 = Request.Form("t1")
Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "kklimarchuk@supremecouncil.org"
ObjMail.From = "kklimarchuk@supremecouncil.org"
ObjMail.Subject = "Form Submission"
ObjMail.Body = t1name & vbcrlf&_t1
ObjMail.Send
Set ObjMail = Nothing
Response.Write"Thank You"
%>
Here are the two pages html and calling the asp. As you can see I am new to this. I also had our Network Admin make sure CDONTS was installed correctly on IIS. Any help would be awesome. I have been trying to create an email form for months now......
View Replies
ADVERTISEMENT
I ran some script and confirmed tht CDONTS exists on the server...which runs on Win2k and has IIS 5.0 When i run my email script,no error is displayed ,but i NEVER get the emails im trying to send. What could be the problem.
View Replies
View Related
I'm trying to send email through a form I created and everything works except the email portion. It's not sending the text message. Code:
View Replies
View Related
I am having a problem formatting an email message which comes from a form.
I am currently having difficulty with the <br> tag which I am using for line spaces within my email. I am getting an expected statement error message which is pointing to the line which is underlined below. I can't think what is causing this.
The code for my processing page is below:-
View Replies
View Related
I contacted my hosting people and they said they're running Windows 2003, which uses CDOSYS and not CDONT. So, I followed the advice on the sitepoint site for converting to CDOSYS and have concocted the following script: ....
View Replies
View Related
I made an contact form, and an asp script for the email, but my messages get sent to the mail/queue folder in inetpub. I have a hunch it has something to do with the email address I put in the "from" area since it's just made up.
I'm using cdonts object, and registered the dll, and it works fine. I also opened port 25 on my router, and tested if it really was open, and it is. Code:
View Replies
View Related
How to I wrap this to process the information as HTML EMail?
I have enabled all the HTML options in the script but I still get a text email:....
View Replies
View Related
i recently finished a tutorial on cdonts and finished putting together the page and form etc. now ive been reading and it seems cdonts is being discontinued and cdosys is taking over. does this mean that my cdonts will not work and i have to trnasfer it to cdosys ?
how can i transfer it to cdosys ? or do i have to make a completely new mail script?
Code: ....
View Replies
View Related
I have Road Runner cable internet access and Im working in a local development environment (writing .ASP) and have a site running on my network on a windows xp pro machine via IIS with CDONTS installed.
When I try to send a confirmation email (simple text) via CDONTS the message is built but remains on the server in the QUEUE folder ... how can I tweak the SMTP settings on the server to allow me to send email out from the server...
just the occassional test as I develop sites - not looking to spam and have a fairly full featured router to block external access to SMTP machine so its not abused.
View Replies
View Related
I'm using IIS 5 on a win xp machine for all my testing, before I upload to our live server. I've installed the SMTP service and it's running with no errors.
Dose anyone know anything about the above set-up not supporting "CDONTS.NewMail" for sending email using ASP..?
I get the following error message: "Server object, ASP 0177 (0x800401F3) Invalid class string".
View Replies
View Related
I have set up a simple form that takes a users email, name, address etc. It is working fine when I test it using various email addresses with a yahoo.com or hotmail.com etc style address - but when I test it with a .ws ending email (a valid account), the message never arrives at its intended location?
It seems to only work occasionally - it's not consistently working? Does anyone have any ideas why this could be?
View Replies
View Related
can anyone see why this wouldn't work...it's driving me nuts
Set objcdmail = Server.CreateObject("CDONTS.NewMail")
objcdmail.From = "me@mydomain.com"
objcdmail.To = "me@mydomain.com"
objcdmail.Subject = "test"
objcdmail.Body = "testing"
objcdmail.send
Set objcdmail = Nothing
I have copied this from another page that I have. The original page takes
the details from a form on another page, so the results above are all
request.form("whatever") etc, and the original works!!
but if I try to put fixed values in as above it fails to work and I can't
see why?
I've even tried a response.write to check the values..and they look right,
but no mail is sent
I'm running win XP pro but have taken the CDONTS.DLL from my win 2000 pc and
done the regsv32 etc etc
maybe I should try to use CDOSYS but
a) I haven't a clue how and so
b) I copied a script directly from a help page which didn;'t work either!
c) the eventual host server is running NT4
View Replies
View Related
Can anybody tell me how to send unicode mails using ASP and CDONTS.
Here is what I tried but it will display ??? for special characters in outlook.
I want to send email in lithunian and russian languages.
MY Server is MS 2003 running IIS6 .....
View Replies
View Related
I am trying to run a test sending mail using CDONTS on my W2K3 machine.
It works fine running from my WXP Pro, but I don't recieve the mail if
run the W2K3 machine.
Both machines have IIS configured essentially the same. Code:
View Replies
View Related
i used the following script but it won't send the email. any suggestions why?
<%
Dim TBdy
Dim MyCDO
CR = Chr(13)
Set MyCDO = Server.CreateObject("CDONTS.NewMail")
MyCDO.From = "person@something.org"
MyCDO.To = "allstar@aol.com"
MyCDO.Subject = "collegebound info"
TBdy = Request.Form("cb_name")
MyCDO.Body = TBdy
MyCDO.Importance = 1 (Normal)
MyCDO.Send
Set MyCDO = nothing
%>
View Replies
View Related
I am using CDONTS component to send email in ASP.
The code is some thing like this:
Dim Mail
Set Mail = Server.CreateObject("CDONTS.Newmail")
mail.From = "abc@hotmail.com"
mail.to = "xyz@hotmail.com"
mail.subject = "Test Email Subject"
mail.body = "This is Email body message"
mail.send
Now the question is that this code will use the Default Virtual SMTP Server in IIS, but I want to use my ISP's SMTP server. please tell me how to do this. I have used my ISP's email server in Outlook express and it is working fine. Please do not suggest to use "CDO" or "CDOSYS" to use for sending emails because I must have to use "CDONTS".
View Replies
View Related
I have a .asp page which returns a list of people according to a search. When the page is built by the apps server, it loops through the email addresses and puts them into a mailto href.Everything works fine for most of the time, but if the search returns a large number of record (600?) it stops working, with no error.Is there a limit on the number of character in an href? If so, how could I get around this problem?
View Replies
View Related
what does it mean when I don't get an error, but I also don't recieve the email?
View Replies
View Related
I'm doing a website for a Japanese client and he needs to send out batch emails to his subscribers every month. So I used CDONTS to create and send the emails.
The problem is when I send out the emails in my company's internal server,everything turns out fine but when I use the external mail server, the Japanese email suject turns garbled. I've been trying to get this done for ages and my deadline is nearing now.
View Replies
View Related
I am using CDONTS component to send email in ASP. The code is some thing like this:
Dim Mail
Set Mail = Server.CreateObject("CDONTS.Newmail")
mail.From = "abc@hotmail.com"
mail.to = "xyz@hotmail.com"
mail.subject = "Test Email Subject"
mail.body = "This is Email body message"
mail.send
Now the question is that this code will use the Default Virtual SMTP Server in IIS, but I want to use my ISP's SMTP server. please tell me how to do this. I have used my ISP's email server in Outlook express and it is working fine. Please do not suggest to use "CDO" or "CDOSYS" to use for sending emails because I must have to use "CDONTS".
View Replies
View Related
I'm having an issue sending email to AOL accounts using CDONTS on my server. The emails always fail. Has anyone else had this problem? Email is always delivered to other accounts problem free, I just dont know why AOL is rejecting the mail.
View Replies
View Related
I am trying have a feed back page and created an ASP page to send an email. But I get the following error:
Error Type: Server object, ASP 0177 (0x800401F3)
Invalid class string
The line in the page is as follows:
Set Mailer = Server.CreateObject("CDONTS.Mailer") .
View Replies
View Related
I am trying to send an email using CDONTS, and I am having troubles with newlines. There was a past thread a while back that said to use vbNewLine to insert a break in the message, but I still can't get it to work.
I used vbNewLine, vbCrLf, chr(10) & chr(13) and my text still continues to flow right along. I want to keep it plain text rather than HTML.
View Replies
View Related
Just curious... Some webapps that I develop could be deployed on older NT
systems OR Win2K3...
Is there a simple test for CDO/CDONTs that I can use in code so I could
implement both routines and use the one that's existing on the server?
View Replies
View Related
my CDONTS email isn't sending.. I think the code is set up correctly but I'm not positive. Is there a way to specify a mail server, if necessary? It seems to be going through without a hitch but the emails are never arriving, to any box I send them to. So perhaps our server needs some sort of authentication before permitting outgoing mails, I'm not really sure. Is there a way to check this?
I have our form set up on a standard html page, with a "action=process.asp" command..
here's the process.asp file..
<%
'Option Explicit
Dim objIndexMail
Set objIndexMail = Server.CreateObject("CDONTS.NewMail")
objIndexMail.From = Request.Form("email")
objIndexMail.To = "me@myemail.com"
objIndexMail.Cc = "me@myhotmail.com"
objIndexMail.Subject = "New Inquiry from" & Request.Form("parents")
Response.Write("Ready to create body")
objIndexMail.Body = "bunch of body text here"
Response.Write("body Created")
objIndexMail.Send
Response.Write("Sent")
Set objIndexMail = Nothing
Response.Write("Thank You")
%>
it gets to the thank you message every time, but nothing ever arrives in my mailboxes...
View Replies
View Related
I am rather new to cdonts and using email. I am planing an email site, however I am not sure how the email is stored on the server nor do i know how to read it from the server. I would guess that it is stored in a database, if so how would it be populated?
View Replies
View Related
I have a form that needs to handle international characters withing the UTF-8
character set. I have tried all the recommended strategies for getting utf-8
characters from form input to email message and I cannot get it to work. I
need to stay with classic asp for this.
Here are some things I tried:
'CDONTS
Call msg.SetLocaleIDs(65001)
'CDOSYS
msg.HTMLBodyPart.Charset = "utf-8"
I included the following meta tag in the email HTML:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
I also tried modifying the CharSet and CodePage of all involved Request and
Responses.
I was able to Response.Write the form content on post back to the screen and
it was properly rendered. However, none of my efforts can get the email to
render with the correct codebase. I have tried opening the email in Outlook
and Thunderbird. Neither one picks up on the UTF-8 charset meta tag.
View Replies
View Related
I've tried to send a mail using CDONTS.DLL but the mail goes in to
C:InetpubmailrootQueue"
Here is my code
Dim Mailer
Set Mailer = Server.CreateObject("CDONTS.NewMail")
Mailer.To = "testemail@hotmail.com"
Mailer.From = "expediteur@email.com"
Mailer.Subject = "Titre du message"
Mailer.Body = "Le texte qui sera envoyé"
Mailer.Importance = 0
Mailer.BodyFormat = 0
Mailer.MailFormat = 0
if not Mailer.Send then
response.write ("mail envoye")
else
response.write ("Mail non envoyé. Erreur : ") & Err.Description
end if
Set Mailer = Nothing
I work with win xp pro, do can I use CDONTS or CDO?
I work on local (the webserver is located:C:Inetpubwwwroot)
View Replies
View Related
I am trying to help out my friend by creating a invoicing page in ASP for his business, basically consisting of 3 pages :
(no sensitive info will be asked for.. )
1.info submission page -cust enters his info
2.info summary -cust info summarised plus quote calculated
3.invoice page -quote emailed for invoicing.
At present I have made the initial set up and it works fine. However, I am using CDONTS 1.2 to email the gathered cookies with the following code:
View Replies
View Related
I am using the following set of commands to send a formatted email:
"AllTopQuestions" actually pulls out formatted text (including all html tags and inverted commas). - - If this text is ascii and not formatted, the mail goes out fine. But, once the text in the database gets formatted, the outgoing mail contains no body at all. Code:
View Replies
View Related
Can someone review and give me some hints. Also when I define my mail object using, "Dim objCDOMail As CDONTS.NewMail", I receive an http error. Code:
View Replies
View Related
I have a script that I've been using for years that emails my customer a confirmation, and bcc's me a copy. It's just a standard CDONTS script, nothing tricky, and I'm sure that it's scripted correctly. I've been having intermitant problems for the better part of a year where on occasion I won't get the email, but the customer will.
This problem seems to come in spurts where it will 'be down' for a few days, and then it will work again, with no change by anyone. Most of the time when it goes down, I get an email about a day later that is a bounce, saying that my address doesn't exist, and it's being returned to sender (which is me, at the same address!). I think there is something screwy with the way my provider has either our server or email server setup, but after at least a dozen trouble tickets, they don't seem to have fixed anything.
Has anyone ever seen this? Bottom line is what could cause the script to work every time to an outside address but intermitantly not to one within the domain?
View Replies
View Related
how to restrict email attachment file type as well as file size? If anybody has idea about it.?
View Replies
View Related