Hello, I have this current asp script below (this is a portion of it) where when someone fills out a registration form the info is sent to me. I'm now needing to add in the email address wfaries@ambient-design.com as well, along with the wesley@ambient-design.com email address I currently have in there. I tried several ways adding in the wfaries@ but it still only goes to my wesley@ address. Any suggestions with how to insert that string to where it goes to both addresses.
Thank you in advance!!!! ----------------------------------------------------- Dim myMail, frommail frommail = Request.Form("email") Set myMail = Server.CreateObject("CDONTS.NewMail") myMail.MailFormat =0 myMail.Bodyformat = 0 myMail.From = frommail myMail.to = "wesley@ambient-design.com" myMail.Subject = "New Registration Request to view Manual" 'commented out by infomatika Mail.AddAddress "wesley@ambient-design.com" myMail.Body= BodyStr 'Mail.IsHTML = False myMail.Send Set myMail=nothing
' Const MailServerName="10.0.0.55" 'For clients' web sites 'Const MailServerName="172.16.0.3" 'For in-house only (LiveWorld etc)
' set Mail=Server.CreateObject("Persits.Mailsender") ' Mail.Host=MailServerName ' Mail.FromName = "Manual Registration Form" 'Mail.From = "wesley@ambient-design.com" 'Mail.Subject = "New Registration Request to view Manual" 'Mail.AddAddress "wesley@ambient-design.com" ' Mail.Body= BodyStr ' Mail.IsHTML = False ' Mail.Send ' Set Mail=nothing end sub %>
That's a good idea Doug, we'll eventually have more email address added.
You're right Eric, these are great. I worked on this for 2 hours before writing. I wrote and got your solution in matter of minutes. Next time I'll write first!