RSS Forums RSS
Please support our ASP advertiser: Lunarpages ASP Web Hosting

sending e-mail with ASP

Join Date: Sep 2007
Posts: 1,075
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 62
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: sending e-mail with ASP

  #4  
Feb 11th, 2008
Set mailObj = Server.CreateObject("JMail.SMTPMail")
mailObj.Silent = true
mailObj.ServerAddress = "mail.spinweb.ph"
mailObj.Sender = noel_c_cadiz@yahoo.com
mailObj.ReplyTo = noel_c_cadiz@yahoo.com
mailObj.Subject = "Giraffe Stamps - Order Details"
mailObj.AddRecipient n.cadiz@spinweb.ph
mailObj.Body = "Hello"
The problem here is that your sender's, replyto, etc. is not within quotes. So it willl not recognize it. Also, you can only send 1 email to 1 address at a time.

Try replacing this line, with the following:
mailObj.AddRecipient n.cadiz@spinweb.ph

with

mailObj.AddRecipient "noel_c_cadiz@yahoo.com"
And remember, "sender" is just the name of the person 'sending' the email, and "replyto" is the email address of the 'sender'.

Recipients are the only ones who will receive the email, and you can only send it to one recipient at a time.
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:27 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC