Click to See Complete Forum and Search --> : send info through email


chrismartz
06-26-2003, 10:43 PM
Hi I've got a form on my website and I'm trying to get the data sent to the users email address. I've played around with the code a bit but can't seem to get anything to happen. How can I do this??

chrismartz
06-27-2003, 08:53 AM
http://www.brinkster.com is where my site is hosted.

chrismartz
06-27-2003, 10:15 PM
This is the code that brinkster gave me but how am I supposed to send the user id and password using this e-mail:

Set oMail = Server.CreateObject("SMTPsvg.Mailer")
oMail.FromName = "John Doe"
oMail.FromAddress= "John@YourDomain.com"
oMail.RemoteHost = "mail.YourDomain.com"
oMail.AddRecipient "", "Betty@ToDomain.com"
oMail.Subject = "Testing"
oMail.BodyText = "Testing email"
If oMail.SendMail Then
Response.Write "Email sent successfully.<br>"
Else
Response.Write "Mail not sent, send failure. Error was " & oMail.Response & "<br>"
End If
oMail.ClearAllRecipients
oMail.ClearBodyText
Set oMail = Nothing