sendmail SaveToFile method
Return to Introduction  Previous page  Next page
Applies to
SendMail component.  

Declaration
function SaveToFile(const FileName: String): Boolean;  

Description
The SaveToFile property generates the e-mail message (including encoded attachment) and stores it to the file (specified in FileName parameter). Set Unsent parameter to True to add "X-Unsent: 1" field (which means that message not yet sent) to the stored message.  
 
Function returns True if message has successfully saved, or False if it could not be stored by specified FileName.  
 
tip The created message has standard format (.eml) which can be easily viewed and sent by MS-Outlook e-mail clients.  

See also
Send property.  
File not found.