11-08-2006, 03:43 PM
If sending mail fails, SendMail generates error.
SendMail ...
err
,out "failed"
By default, sent messages are not saved. To save, use SendMail flag 0x800 (will save in "$my qm$\SmtpMail"), or instead of SendMail use functions of SmtpMail class.
SmtpMail mail
mail.AddMessage(...)
mail.SetSaveFolder(...)
mail.Save()
mail.Send()
SendMail ...
err
,out "failed"
By default, sent messages are not saved. To save, use SendMail flag 0x800 (will save in "$my qm$\SmtpMail"), or instead of SendMail use functions of SmtpMail class.
SmtpMail mail
mail.AddMessage(...)
mail.SetSaveFolder(...)
mail.Save()
mail.Send()
