SMTPMail Object

Description

Use this to send email to a smtp server.

Read the article listed at the bottom of the page for more information about the functionality of this component.

This component can send very complex email that many mail clients can not read. Always be conservative when sending mail when you are unsure what mail client the recipients will be using. All the features work with Outlook, most with Eudora.

Methods

AddRecipient

AddCCRecipient

AddBCCRecipient

AddHeader

AddAttachmentFile

AddAttachmentText

AddAttachmentBinary

AddPictureFile

AddPictureBinary

SetFrom

AddBody

SetSubject

Send

Example

set s = createobject("Toolsack.SMTPMail")
s.AddRecipient "feedback@toolsack.com", "Toolsack Feedback"
s.SetSubject "Here is some feedback"
s.SetFrom "me@nowhere.com", "me"
s.AddBody "Toolsack Baseline is the greatest product I've ever seen!" & vbCrLf & "Keep up the good work."
s.Send "smtphost"
 

Samples

Articles

Advanced SMTP Mail - Describes how to send HTML bodies, embedded pictures, different character sets and more.

SMTP Troubleshooting - Describes the SMTP protocol and how to spy on it to track down problems.



We always want to hear your feedback. Send to feedback@toolsack.com.
© 2000-2001 Toolsack Software Ltd.