Using SMTP to send email with HTML or Attached Files

How can I send attached files or HTML text in the body of my message?

Date Entered: 6/5/2002    Last Updated: 6/4/2004

The easiest way to do this is with the HTMLMailer control in V6 of IPWorks. This component includes an AddAttachment method which takes a filename as input, and automatically encodes the file into the outgoing email. It also includes a MessageHTML property that allows you to specify the html part of the email.

If you do not use the HTMLMailer or FileMailer control - you'll need to use the MIME object in conjunction with the SMTP control and MIME encode your message.


We appreciate your feedback.  If you have any questions, comments, or suggestions about this entry please contact our support team at kb@nsoftware.com.