Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.Timeout = 3600 'Optional
IgnoreMalformedAddress = True 'Optional
IgnoreRecipientErrors = True 'Optional
Mailer.FromName = SendersName
Mailer.FromAddress = SendersEmail
Mailer.AddReplyTo = SendersEmail
Mailer.RemoteHost = "Your Relay goes here!!" 'IMPORTANT
Mailer.AddRecipient EmailRecipient, EmailRecipient 'Need both! Usually name would go first
Mailer.ContentType = "text/html"
Mailer.Subject = EmailSubject
Mailer.BodyText = "<HTML><BODY> " & strMessage & " </BODY></HTML>"
on error resume next '## Ignore Errors
SendOk = Mailer.SendMail
If not(SendOk) <> 0 Then
Err_Msg = Err_Msg & "<li>Your request was not sent due to the following error: " & Mailer.Response & "</li>"
End if
Set Mailer = Nothing
In Body text note strMessage. That's where your text would go. I already made a "Send Article to a Friend" if you want a look at it, use it, whatever.
@tomic
http://www.skepticfriends.org
Edited by - @tomic on 01 May 2002 16:55:47