Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Setting a MDN / Bounce Email Address
Delphi example program showing how to specify an email address where bounce notifications (MDN's) should be sent. {
To send an email with a separate MDN (bounce) address, set the
email.BounceAddress property. This will cause message delivery notifications
(MDN) bounces to be sent to the email address specified by BounceAddress.
}
procedure TForm1.Button22Click(Sender: TObject);
var
email: IChilkatEmail2;
ok: Integer;
begin
ChilkatMailMan21.UnlockComponent('Anything for 30-day trial');
ChilkatMailMan21.SmtpHost := 'smtp.comcast.net';
email := ChilkatMailMan21.NewEmail();
email.Subject := 'Email with separate MDN address sent from a Delphi program!';
email.From := 'Chilkat Support <support@chilkatsoft.com>';
email.AddTo('Chilkat Admin','admin@chilkatsoft.com');
email.Body := 'This email was mailed from a Delphi program and has a separate bounce address';
email.BounceAddress := 'bounce-handler@chilkatsoft.com';
ok := ChilkatMailMan21.SendEmail(email);
if (ok = 0) then
ChilkatMailMan21.SaveLastError('errorLog.xml');
end;
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2007 Chilkat Software, Inc. All Rights Reserved.