Email Sending Problem With CDONTS
Hey all, I'm having trouble getting email to be sent using CDONTS. I've done this many times before with no problem, but this one just seems to want to be a pain..
The site is just on an IP address right now, but it still has access to a mail server and all. Everything seems to go correctly, but the mail server has no logs of cdonts trying to send anything. the script isn't generating any errors though.
<%@ language="VBscript" %>
<%
'Option Explicit
Dim objIndexMail
Dim body
Set objIndexMail = Server.CreateObject("CDONTS.NewMail")
objIndexMail.From = Request.Form("email")
objIndexMail.To = "my email address"
objIndexMail.Subject = "New Inquiry from" & Request.Form("parents")
Response.Write("Ready to create body <br><br>")
body = "bunch of body text here"
objIndexMail.Body = body
Response.Write("body Created <br><br>")
Response.Write(body & "<br><br>")
objIndexMail.Send
Response.Write("<br><br>Thank You")
%>
Anyone see any problems? there are no messages waiting to be sent in the outbox, and nothing is getting delivered to the badmessages folder either..
View Replies
ADVERTISEMENT
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
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'm running Win2K... and have an ASP script that uses the CDONTS object properties to send email from a web-enabled ASP form. Problem is, the page is loading fine, with no errors. However, when I check the '/queue' folder in my Inetpub directory, I see all my mail queued there. It never gets sent. There are no emails in the '/badmail' folder, or in any other folder in '/mailroot'. What gives?
I'm kinda vague on how SMTP works exactly, in Win2K. What I'm trying to do is to send email over a LAN to a client. I want to avoid installing MS Exchange Server if possible. Am just trying to have a client on the LAN send email, and then have the client's Outlook retrieve said mail. All this done offline, without ever connecting to the Net.
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 have a web form where a client can select which site members to send
an email to.
This form is populated from the contents of the member table, so the
form can have 0-x names listed on it depending on member expiration dates.
When the form is submitted, the code loops through the form contents and
sends an email to those members that meet the selected criteria.
All this worked perfectly when I was sending text emails, but since I
changed, it sends the message correctly, but the last person gets
everyone else as well. For example, if I have three members (mem1, mem2
and mem3) to send emails to, here is what happens
mem1 gets the correctly formatted message
mem2 gets mem1's correctly formatted message plus mem2's message - one
right after the other. Code:
View Replies
View Related
I am using CDONTS object to send emails to a person when he is registered with the web portal,but the problem is the mail is getting filtered as a spam or junk mail, and does not land in the Inbox,how to send this auto generated email into the inbox and not as a spam or bulk mail.
View Replies
View Related
I am writing an ASP page for sending mails using CDONTS component. Is there any way to capture errors if the components fails to send mails?
View Replies
View Related
I am trying to send e-mails to customers in a database. Each e-mail is customised for each customer, so I cannot simply copy all customers on the same e-mail. My logic loops through the appropriate recordset and attempts to send a notification e-mail to each customer. The problem is that about 10 - 20% of the e-mails do not get sent! (I know this because I :bcc myself on all the e-mails.) I also know that there is no problem with the e-mail addresses because when I try again to run the program with the same addresses but a smaller list of customers, those mails go out just fine.
The program generates a report which shows that it tried to send all the appropriate e-mails, but in reality several of the mails were not sent. What's interesting is that all of the e-mails near the beginning of the program execution get sent. But as the program goes on, more and more get skipped. It seems that CDONTS cannot keep up with the program execution.
Does anyone know of a way to solve this? What would be great would be a DO... WHILE loop that kept trying until the e-mail was sent successfully. But, for that approach to work, there would have to be some way for the program to check if the e-mail had gone out successfully. Another option would be a loop that waited until the *previous* e-mail had been sent successfully before attempting to send the next one.
Does anyone know of a way to test either of those conditions or of an alternate approach to avoid this problem I am having?
View Replies
View Related
I'm sending Russian text in an email generated from the website which displays in the email as ??
The website is set to codepage 65001 and the charset to utf-8.
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 use the following code to send email from an ASP page:
<%
Dim objSendMail
Set objSendMail = Server.CreateObject("CDONTS.NewMail")
objSendMail.From = "abc@abc.com"
objSendMail.To = "abc@abc.com"
objSendMail.Subject = "Form Results - Get a Quote"
objSendMail.Body = "This is the Body text of this test mail."
objSendMail.Send
Set objSendMail = Nothing
%>
Of course, the the email addresses above are real on my ASP page.
After the above code is executed, I don't receive any email.
What is the problem?
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 few queries regarding on email. Currently my web hosting provider uses Windows 2003 Server IIS 6.0 to host my ASP websites. In my own PC, I am also currently using Win XP Profession IIS 6.0 to run my ASP files.
I would like to create a pogram that would automatically sent out an email. But the problem is I have know that CDONTS do not work for Windows 2003 Server or XP Professional. It only currently work for Win 2000 Server.
Please help and perhaps show me the code of sending an email out automatically. Is there a code that can work for all servers?
View Replies
View Related
I have a form which will be processed by being sent to an ASP page. I would
like the ASP page to take the data from the Request.QueryString (which I
know how to do) and format it so I can have it emailed to me in a nicer
format. My problem is that I do not know how to have ASP send an email. I
know how to send an email using the mailto: protocol by making it look
something like the following:
MAILTO:username@mydomain.com?SUBJECT=mysubject?MES SAGE=mymessage
However, this will usually take the user to their default email client and
ask them to send an email by putting the specified subject and message in
for them, but wait for them to do any desired editing and click their send
button. I simply want the email to be sent straight from ASP. Is this
possible?
View Replies
View Related
Can anyone provide me with an example how I can send an email through ASP.NET!
View Replies
View Related
I have made a .asp file in order to send email to my Join Bytes!:
<%
Set mail = Server.CreateObject ("CDONTS.NewMail")
mail.To = "email@email.com"
mail.From = "mail@mail.com"
mail.Subject = "email subject"
mail.Body = "email body"
mail.Send
%>
The smtp function have been installed with the IIS, there is no error and the .asp seems running properly but I can't receive any email, any wrong?
View Replies
View Related
i have to do a project regarding employee transfer in which sending email to concerned employees yet to be transferred play a pivot role.
View Replies
View Related
I've been using CDO to send email from my web server for a while now but
today the emails aren't being sent. They are in the queue folder on my
server. I've restarted SMTP service but that didn't work. How can I get
these sent?
View Replies
View Related
how can send email using ASP?
View Replies
View Related
Im have made up a form that sends the information via email to an email address. Whenever I test the form though, the email does not display in HTML format. The email displays the html code but I want it to display as an html page.
View Replies
View Related
Set ObjMail = CreateObject("CDONTS.NewMail")
ObjMail.From = emlFrom
ObjMail.To = emlAddress
ObjMail.Subject = emlSubject
ObjMail.Body = emlBody
ObjMail.Send
Set ObjMail = Nothing
I recently upgraded my webserver from NT4.0 to Windows 2003 Web Edition. Now, the above code no longer works. It worked great on NT4
What do I need to do to make it work with my new server?
View Replies
View Related
I am trying to send an email to someone as the person clicks on a link...i have been trying the CDO, CDONTS, JMail and other methods but none of them work!!an example is as follows:
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.TextBody="This is a message."
myMail.Send
I Im getting this error:
CDO.Message.1 error '80040220'
The "SendUsing" configuration value is invalid.
View Replies
View Related
I need a way to send an email using a normal HTML form and then taking those values and sending them to myself.
View Replies
View Related
Could someone advise me on the best way to send email either using asp or html? I'm not sure which way would be best. Basically I have a page confirming that data has been entered into a database and displaying what has been entered. I then want to have a link to email the information to someone. The email address has already been entered into the database.
View Replies
View Related
I asked how to send an email using CDO instead of CDONTS and got several responses. They were all good, I tested the code and it works well. However, I forgot to mention that I need to set the email body to be in HTML rather than in plain text format. Would appreciate if someone could post a complete example on how to do this.
View Replies
View Related
I have tried to use this peace of code to send test email
If Request.form("submit")="Submit" Then
Set objMail = CreateObject("CDONTS.NewMail")
objMail.To = "alex@alex"
objMail.From = "alex@alex"
objMail.Subject = "Feedback"
objMail.BodyFormat = "0" ' -- HTML format
objMail.Body = "Name: "
objMail.Send
Set objMail = Nothing
end if
It works fine but when I go to the drop folder it is filling it with hundreds of emails. When I look inside pickup folder there is only one email message. Does anyone knows why the drop folder is constantly filling with new email messages?It looks like it repeats it all the time like some kind of loop.I am using it locally for testing only
View Replies
View Related
I am using an asp page to send email from a access database. I would like it to send an HTML version if it can, and if not then it will send plaintext. I have seen this feature before, but not sure if asp can handle it.
View Replies
View Related
I have written a code to send email through asp. I want to make particular text bold or underline in the main body of the message. Code:
View Replies
View Related
I want to test my mail method, when i was setting up IIS i installed stmp so thats ok. When i send the mail it goes into the mailroot folder and into a folder called queue but it does'nt actual send to the address?
Set EnquiryMail = CreateObject("CDONTS.NewMail")
EnquiryMail.From = "admin@nci.ie"
EnquiryMail.To = Email
EnquiryMail.Subject = "Access to NCI Recruitment"
EnquiryMail.Body = BodyText
EnquiryMail.Send
Set EnquiryMail = Nothing
View Replies
View Related
how to send emails ..thru asp code?
View Replies
View Related
I have made one site for me, I have created one contact us page where user can fill the form and send his message to us. I am using SMTP to send email to my domain and I also want to send confirmation email to visitor but email does not go specially when domain are hotmail and yahoo etc.
I am using code like this:
Dim emailMessage As New Mail.MailMessage
emailMessage.From = "visitorsEmailAddress"
emailMessage.To = "myEmailAddress"
emailMessage.Subject = "Email from web"
emailMessage.Body = "Message here"
SmtpMail.SmtpServer = "myServerAddress"
SmtpMail.Send(emailMessage)
Can some body tell me how I can configure SMTP to send 2 way emails from my web page?
View Replies
View Related