Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Request Delivery Report when Sending Email
VB.NET example program to send email with a delivery-report requested. ' Send an email with a request for a delivery report.
mailman.UnlockComponent("Anything for 30-day trial")
mailman.SmtpHost = "smtp.comcast.net"
' Set your SMTP username/password if needed:
'mailman.SmtpUsername = "myUsername"
'mailman.SmtpPassword = "myPassword"
Dim email As New Chilkat.Email
email.AddTo("Chilkat Support", "support@chilkatsoft.com")
email.From = "Matt Fausey <fausey@chilkatsoft.com>"
email.Subject = "Test email to request a delivery report"
email.SetHtmlBody("<html><body><h1>This email is a test to request a MDN delivery report.</h1><p>Hello World!</p></body></html>")
' Request a delivery report.
email.ReturnReceipt = True
' Send bounced emails to "bounce-handler@chilkatsoft.com"
email.BounceAddress = "bounce-handler@chilkatsoft.com"
Dim success As Boolean
success = mailman.SendEmail(email)
If (Not success) Then
MessageBox.Show(mailman.LastErrorText)
End If
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2007 Chilkat Software, Inc. All Rights Reserved.