wwProcess::SendAdminEmail

Sends an email using the configured Email settings in <yourApp>.ini file.

You can use this method to easily send emails from your process class code as long as you can use the credentials from from <yourApp>.ini.

This method uses wwSmtp in .NET mode to send emails.

o.SendAdminEmail(lcTitle,lcMessage,
                   lcRecipients,lcSender, 
                   llHtml,llAsync,
                   @lcRefErrorMessage)

Parameters

lcTitle
The header for the message.

lcMessage
Plain text for the message to send.

lcRecipients
Comma delimited list of recipients to send to. Email addresses or email addresses and name can be used. ex: test@test.com,John Doe <doeboy@johndoe.com>

lcSender
Optional - The senders email address: Jim Doe <doe2@johndoe.com>. If not specified uses AdminEmail from server configuration.

llHtml
Determines if the message body should be sent as HTML

llAsync
Determines whether the message should be send asynchronously without error checking.

@lcRefErrorMessage
A reference parameter you can pass in which receives error information if the method returns false. Not only applies when sending synchronously.


See also:

Class wwProcess

© West Wind Technologies, 1996-2024 • Updated: 02/16/18
Comment or report problem with topic