The SendMail function sends the mail.
Purpose:
This function sends the mail. Using SMTP, the SMTP server is directly
used. Using MAPI, the default mailer software is called to create
the mail. The user must press the "send" button to send the mail.
Syntax with SMTP:
CALL ui.Interface.frontCall("WinMail","SendMailSMTP", [ id ], [result] )
Syntax with MAPI:
CALL ui.Interface.frontCall("WinMail","SendMailMAPI", [ id ], [result] )
Note:
- id is the message identifier.
- result is TRUE in case of success; use GetError to
get the description of the error when needed.
Important:
- MAPI needs to log in to the mailer software. The first login could
take time, depending on the mailer software. Your Genero application
will be blocked until MAPI returns.
- MAPI depends on the mailer software for error management. For
instance, Mozilla Thunderbird returns "success" when the mail is created,
but Outlook 2002 only returns "success" when the mail is sent.