Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: save sent mail Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Itzik
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 20 June 2005 at 4:38am | IP Logged Quote Itzik

Hi Alex,

How do I save out going mail in .eml file?

Thank you,
Itzik
Back to Top View Itzik's Profile Search for other posts by Itzik
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 20 June 2005 at 9:06am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide