SendEmail
- send an e-mail message

Miscellaneous functions
(AmiBroker 5.90)


SYNTAX SendEmail(''subject'', ''message'', ShowUI = False )
RETURNS NOTHING
FUNCTION Send an e-mail to an address defined in the Preferences/Alert page.
A direct version of functionality already provided by AlertIF. This function sends e-mail unconditionally and it is easier to use if you don't need state logic provided by AlertIf.

Note that "From" and "To" addresses as well as SMTP email configuration should be done in Tools->Preferences, "Alerts" page. Without configuring E-mail settings first this function will not work.

E-mails are sent asynchronously (so function returns BEFORE e-mail is actually sent, sending occurs in the background)

ShowUI parameter decides whenever user interface of e-mailer program is shown after sending e-mail or not.

EXAMPLE SendEmail( "This is subject", "Hello world\n\nHere we are sending the body of the email\n\nBest wishes" );
SEE ALSO AlertIf() function

References:

The SendEmail function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.