Exontrol ExEMail Component
® Copyright 1999-2005 by Exontrol Software, Inc. All Rights Reserved.
A built from the ground up using 100% ATL-based code, The ExEMail can be dropped into any language that supports ActiveX thus enabling an application to support full mail and file attachment transfers. ExEmail is fully SMTP RFC-compliant and provides support for binary (MIME) attachments and HTML email.
What does ExEMail provide and other SMTP components doesn't?
The ExEMail is able to find the SMTP server where the email message should be sent, from the recipent's email address, by queering a DNS server. The ExEMail doesn't block your application while delivering a message. It provides a range of events to let you know how the email message is delivered. The object model is intuitive, rich and flexible.
How an email message is delivered, using the ExEMail component?
Here are the steps that ExEMail component follows in order to deliver an email message:
Here's a sample how to send an email message using non-blocking mode:
Dim WithEvents e As EMail Private Sub e_EndSend(ByVal Msg As EXEMAILLibCtl.IMessage) If Msg.LastError = 0 Then MsgBox "The message was succesfully delivered." End If End Sub Private Sub Form_Load() Set e = New EMail Dim m As New Message Set m.Notifier = e m.Send "email@example.com", "firstname.lastname@example.org", "Test", "This is a test message", "c:\winnt\system32\setup.exe" End Sub
The non-blocking mode does not block your application during delivering the messages, and your application can handle each message' notifications ( events ).
The following sample shows how to send an email message using blocking mode:
Private Sub Form_Load() Dim m As New Message If (0 = m.Send("email@example.com", "firstname.lastname@example.org", "Test", "This is a test message", "c:\winnt\system32\setup.exe")) Then MsgBox "The message was succesfully delivered " End If End Sub
The blocking mode blocks your application during delivering the message, and it doesn't fire any event. In order to create EMail and Message object for your application you have to use NewEmail and NewMessage properties that manages to license the objects at runtime.
ExEMail is a trademark of Exontrol Software, Inc.