Date:  05/03/2018 08:14:46 PM Msg ID:  004946
From:  FoxWeb Support Thread:  004942
Subject:  Re: ASPSmartMail
Here's the code:
 

<HTML>

<BODY BGCOLOR="white">

 

<H1>aspSmartMail : Sample 1</H1>

<HR>

<%

mySmartMail =CREATEOBJECT("aspSmartMail.SmartMail")

 

*SMTP Mail Server

mySmartMail.Server = "mail.yourdomain.com"

 

*From

mySmartMail.SenderName = "Your Name"

mySmartMail.SenderAddress = "youremail@yourdomain.com"

 

*To

mySmartMail.Recipients.Add("yourfriend@anydomain.com", "Friend's name")

 

*Message

mySmartMail.Subject = "aspSmartMail Sample 1"

mySmartMail.Body = "This mail has been sent with aspSmartMail."

 

* Capture send errors

SendFailed = .F.

OldErr = ON("ERROR")

ON ERROR SendFailed = .T.

 

*Send the message

mySmartMail.SendMail

 

* Reset error handler

ON ERROR &OldErr

IF SendFailed

Response.write("Failed to send e-mail.  The error message was:<br>" + MESSAGE())

ELSE

Response.write("An e-mail has just been sent to " + mySmartMail.Recipients.Item(1).Name)

ENDIF

%>

</body>

</html> 

 
 
FoxWeb Support Team
support@foxweb.com email
Sent by Joe Goldsmiith on 05/03/2018 06:39:00 AM:
<p>
&nbsp;I wanted to have a look at ASPSmartMail but do not seems to have a sample directory in FoxWeb folder. Can someone post the code in the SmartMail sample for me to look over or email the sample to me?
</p>
<p>
djrollon@gmail.com
</p>
<p>
&nbsp;
</p>
<p>
Joe&nbsp;
</p>