Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Reply-To Header Field Different than FROM Email Header Field
This VB6 example shows how to send an email where the Reply-TO header field is different than the FROM header field. ' Send an email where the reply-to email address is different
' than the FROM address.
Private Sub Command8_Click()
' Create an instance of the mailman for the purpose of unlocking.
Dim mailman As New ChilkatMailMan2
mailman.UnlockComponent "Anything for 30-day trial"
' Create a new email object...
Dim email As New ChilkatEmail2
email.Subject = "This is a test"
email.Body = "This is the mail body"
email.AddTo "Chilkat Support", "support@chilkatsoft.com"
email.From = "Chilkat Sales <sales@chilkatsoft.com>"
email.ReplyTo = "admin@chilkatsoft.com"
' Let's review the MIME...
MsgBox email.GetMime()
' We can send the email like this:
mailman.SmtpHost = "smtp.comcast.net"
success = mailman.SendEmail(email)
If (success = 0) Then
MsgBox mailman.LastErrorText
Else
MsgBox "Mail Sent!"
End If
End Sub
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.