RE: Link for Email To Friend - 3/14/2001 23:53:00
I use this script below to send any auto-response type emails that are generated from our website:<% sFrom = "Somebody@Somewhere.com" sTo = Request.Form("email") sSubject = "Check Out This Cool Website" sBody = "Check Out My Website At http://www.yourdomain.com Set myCDONTSMail = CreateObject("CDONTS.NewMail") myCDONTSMail.BodyFormat = 0 myCDONTSMail.MailFormat = 0 myCDONTSMail.Importance = 1 myCDONTSMail.Send sFrom,sTo,sSubject,sBody Set myCDONTSMail = Nothing %> This script must be placed on an .asp page. Have a form where the user can put in there friend's email address and have that form post to the .asp page w/ the above script on it (notice I named the form field for email, "email" and just requested the form field info for the To: line). You could have the .asp page display a message like "Your friend has been told about this website." or something like that. I am using Windows 2000 Server to run our site, I'm not sure if that script will work on a unix webserver. [This message has been edited by KevinB (edited 03-14-2001).]
|