Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send Email using CDONT From ASP

Status
Not open for further replies.

amardesai2005

Programmer
Sep 1, 2005
14
US
In my ASP application, i need to send mail to the registered person.
i am not able to receive mail to my other id's (Like ....> yahoo id or hotmail id ). But i am getting mail to my company id

Please advise me
Thanks
AD
Here is the sample code which i am using.

DIM strEmail, strName, strCompany, strAddress, strCity, strState
DIM strZipcode, strPhone, strFax, mail, reply, objMail
strName = request.form("Name")
strCompany = request.form("Company")
strEmail = request.form("Email")
strAddress = request.form("Company Address")
strCity = request.form("City")
strState = request.form("State")
strZipcode = request.form("Zipcode")
strPhone = request.form("Phone")
strFax = request.form("Fax")

mail = "AD@yahoo.com"
reply = request.form("Email")
Response.Write reply
Set objMail = Server.CreateObject("CDONTS.NewMail")
Response.Write "Hello"
objMail.From = reply
objMail.Subject = "Contact Form"
objMail.To = mail
objMail.Body = "Name:" & strName & "Company
objMail.Body = "Name: " & strName
objMail.Send
Set objMail = nothing
 
It maybe that the emails are eniding up in the SPAM box(es). What is the originating email domain?

Bastien

I wish my computer would do what I want it to do,
instead of what I tell it to do...
 
How do i know if it's in the SPAM Box(es). Originating email ??

Coyld you please tell me in detail about "originating email domain"?

I really don't get it.

AD
 
when you get the email at whatever address that you DO receive it, what does it show as the originating domain? ie admin@mysite.com or admin@localhost

To see if it makes it into the spam box. open the email and check it...

Bastien

I wish my computer would do what I want it to do,
instead of what I tell it to do...
 
Chances are the email from your CDONTS is bouncing off your company's mail server and that server is configured not to act as an open relay.

Test this by seeing what you can do when the FROM line of the email has an email address on your company's mail server.

PS: CDONTS has been discontinued, consider using CDO instead.
 
PS: CDONTS has been discontinued, consider using CDO instead.

Funny, that's what our NetWeb team here tell us. But they never actually bothered to setup CDOSYS on our servers so we cant. *Sigh*

Paranoid? ME?? WHO WANTS TO KNOW????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top