home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 1999 November / PCW9911.BIN / sharewar / prx / wscripts / aspemail.exe / SampleBody.asp < prev    next >
Encoding:
Text File  |  1999-06-17  |  501 b   |  17 lines

  1. <HTML>
  2. <BODY>
  3. <!-- This script illustrates the usage of AppendBodyFromFile methog 
  4. as well as AddEmbeddedImage. The files SampleBody.htm and margin.gif are included -->
  5. <%
  6.     Set Mail = Server.CreateObject("Persits.MailSender")
  7.     Mail.Host = "smtp.mycompany.com"
  8.     Mail.From = "jsmith@persits.com"
  9.     Mail.AppendBodyFromFile "d:\dir\SampleBody.htm"
  10.     Mail.AddEmbeddedImage "d:\dir\margin.gif", "My-Background-Image"
  11.     Mail.AddAddress "someaddress@mycompany.com"
  12.     Mail.Send
  13. %>
  14.  
  15. </BODY>
  16. </HTML>
  17.