Send e-mail message

With this type of scheduled task selected, Advanced Task Scheduler sends an e-mail message.

Click the E-mail button to open the properties window where you can define one or more e-mail addresses separated by comma or semicolon, SMTP server address and port number. Also you can define sender address and message subject.

An attachment can be added to the message. Professional and Network Editions: Several attachments can be added to a single message.

Professional and Network Editions: Since version 4.0 you can include the return code of the previous action in email body. To do so, the following arguments can be used in email body:

%actionschedule% Will be replaced by name of the action that caused task execution.
%actiontime% Will be replaced by time of start of task execution.
%actionsource% Will be replaced by action source information.
%actionsourceextra% Will be replaced by action source extra information.
%lasterrorcode% Will be replaced by LastErrorCode.
%lastexitcode% Will be replaced by LastExitCode.

The %lasterrorcode% and %lastexitcode% arguments depend on the previous shortcut type and you can find their meanings in the corresponding shortcut type description.

Using Gmail to send e-mail messages:
E-Mail Address: your email address ( or
SMTP server:
SMTP port number: 587
Authorization: checked
User name: your full email address (including or
Password: your Gmail password
Connection security: STARTTLS
Note: If you get an error like "Username and Password not accepted", you may need to change settings in your Google Account to allow less secure apps. Go to Google Account | Security | Less secure app access and change the "Allow less secure apps" to "Allow less secure apps: ON".

Returning codes
Error code: Error code of starting the command
Exit code: Error code of sending the e-mail

Categories: Manual, Shortcut type

Leave a Reply

About us   Cookie policy   Privacy policy   Terms of use   Link to us