<% ' Sample code for sending e-mail with ASP (file attachments can be sent as well): ' This code is for customers of WEBMASTERS.COM on Windows 2000 servers (for Linux server syntax, please see http://www.designsamples.com/aspmail_linux.txt). Set Mail = Server.CreateObject("Persits.MailSender") Mail.Host = "55.55.555.55" ' Your Primary DNS Server IP Mail.From = "you@yourname.com" ' Sender's address Mail.FromName = "Your Company Name" ' Sender's real name (optional) Mail.AddAddress "anyone@anywhere.com", "Joe Anyone" ' Recipient's e-mail address and name ' Mail.AddAddress "someone@somewhere.com" ' Additional names are optional Mail.AddReplyTo "you@yourname.com" ' Sender's reply to address ' Mail.AddAttachment "f:\webspace\ntadmin\your_user_name\yourdomainname.com\www\file.pdf" ' This statement sends file attachments (optional) Mail.Subject = "Your subject goes here" ' Subject Mail.Body = "Dear Sir:" & Chr(13) & Chr(10) & _ "Thank you for your business." On Error Resume Next Mail.Send If Err <> 0 Then Response.Write "Error: " & Err.Description End If %>