% Set JMail = Server.CreateObject("JMail.SMTPMail") JMail.ServerAddress = Request.Form("SMTP") JMail.ISOEncodeHeaders = False JMail.Sender = "sample@securedata.net" JMail.Subject = "Web Site Inquiry" JMail.AddRecipient Request.Form("Email") 'JMail.AddRecipient "info@casapulula.com" 'JMail.AddRecipient Request.Form("Email") JMail.Body = "This is a test Email from a J-Mail Script." 'Or you might need to add text later after a generic greeting, 'in which case you'd append text to the body like this... JMail.Body = JMail.Body & " Have a nice day!" 'You can also append text with the AppendText method...again, 'note the lack of an = sign here because you're using a method, 'not setting a property 'JMail.AppendText "Have a nice day!" 'If you have some text stored in a file, you can also use the 'contents of that file to set the body of the message, as 'follows... 'JMail.AppendBodyFromFile "c:\webserver\yourdomain\htdocs\mytext.txt" JMail.Execute %>
| |||||||||||||||||||