Author |
|
Itzik Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 20 June 2005 at 4:38am | IP Logged
|
|
|
Hi Alex,
How do I save out going mail in .eml file?
Thank you,
Itzik
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 20 June 2005 at 9:06am | IP Logged
|
|
|
For example, you can use the following code:
' Assume we already set FromAddr, ToAddr, Subject, etc.
' Send mail
If SMTP.Send Then
' Sent successfully, save .eml
SMTP.Message.SaveMessage "C:\1.eml"
End If
SMTP.Disconnect
As you can see, SMTP.Message references the message being sent by SMTP object. For example, when you set SMTP.FromAddr, you implicitly set SMTP.Message.FromAddr. Thus, SMTP.FromAddr is just a shorter syntax for SMTP.Message.FromAddr. The same applies to all other properties and methods like AddAttachment, SaveMessage, etc.
Regards,
Alex
|
Back to Top |
|
|