Difference between revisions of "Activity:SendEmail (Activity)"
m (moved SendEmail (Activity) to SendEmail (Activity): Text replacement - "(.*)\(Activity\)" to "Activity:$1(Activity)") |
(→Example) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | The SendEmail Activity sends an Email via SMTP, using a server it connects to. It also supports attachments, HTML bodies and Email templates. | ||
+ | |||
+ | = Description = | ||
{{ActivityInfoBox | {{ActivityInfoBox | ||
| title = Send Email | | title = Send Email | ||
Line 9: | Line 12: | ||
| version = 2.1.15+ | | version = 2.1.15+ | ||
}} | }} | ||
− | |||
− | ==Arguments== | + | ===Arguments=== |
{| class="wikitable sortable" | width = "50%" | {| class="wikitable sortable" | width = "50%" | ||
|- | |- | ||
Line 22: | Line 24: | ||
| Body|| {{String_MSDN}}|| In || The body text of the Email | | Body|| {{String_MSDN}}|| In || The body text of the Email | ||
|- align="left" | |- align="left" | ||
− | | BodyTemplateFilePath|| {{String_MSDN}}|| In || Path to the template to be used | + | | BodyTemplateFilePath|| {{String_MSDN}}|| In || Path to the template to be used; backslashes must be escaped |
|- align="left" | |- align="left" | ||
| Cc|| {{String_MSDN}}|| In || A ';' separated list of copy recipients | | Cc|| {{String_MSDN}}|| In || A ';' separated list of copy recipients | ||
Line 40: | Line 42: | ||
| Subject|| {{String_MSDN}}|| In || The subject of the Email | | Subject|| {{String_MSDN}}|| In || The subject of the Email | ||
|- align="left" | |- align="left" | ||
− | | TestDropPath|| {{String_MSDN}}|| In || A path to write the Email to as a file, instead of sending it | + | | TestDropPath|| {{String_MSDN}}|| In || A path to write the Email to as a file, instead of sending it; backslashes must be escaped |
|- align="left" | |- align="left" | ||
| TestMailTo|| {{String_MSDN}}|| In || A test recipient to send the Email to; will overrule the ''To'' argument if set | | TestMailTo|| {{String_MSDN}}|| In || A test recipient to send the Email to; will overrule the ''To'' argument if set | ||
Line 53: | Line 55: | ||
|} | |} | ||
− | ==Usage== | + | [[Category:Activities|SendEmail (Activity)]] |
+ | |||
+ | ===Usage=== | ||
This activity is typically used to send Emails during the execution of a workflow. | This activity is typically used to send Emails during the execution of a workflow. | ||
Line 59: | Line 63: | ||
{{Hint|Sending is always asynchronous, so this activity will not block the execution of the workflow}} | {{Hint|Sending is always asynchronous, so this activity will not block the execution of the workflow}} | ||
− | + | =Example= | |
− | + | ||
Send an EMail with the number of MetaClasses that derive (direct and indirect) from the MetaClass of a given object. Use a (fictional) Gmail account. | Send an EMail with the number of MetaClasses that derive (direct and indirect) from the MetaClass of a given object. Use a (fictional) Gmail account. | ||
Line 71: | Line 74: | ||
|- align="left" | |- align="left" | ||
| Body|| With kind regards from your Workflow! | | Body|| With kind regards from your Workflow! | ||
+ | |- align="left" | ||
+ | | -or-|| | ||
+ | |- align="left" | ||
+ | | BodyTemplateFilePath|| C:\\MyTemplates\\TemplateBody.txt | ||
|- align="left" | |- align="left" | ||
| Cc|| <source lang = "vbnet">"TESTCC <testcc@augmensys.com>; whobert@augmensys.com"</source> | | Cc|| <source lang = "vbnet">"TESTCC <testcc@augmensys.com>; whobert@augmensys.com"</source> | ||
Line 94: | Line 101: | ||
| Tokens||<source lang = "vbnet">new System.Collections.Generic.Dictionary(Of String, String) From {{"?NAME?", "Joe"},{"?SENDER?","Doe"}}</source> | | Tokens||<source lang = "vbnet">new System.Collections.Generic.Dictionary(Of String, String) From {{"?NAME?", "Joe"},{"?SENDER?","Doe"}}</source> | ||
|} | |} | ||
+ | |||
+ | {{Activity/End}} | ||
==See also== | ==See also== | ||
* [[Workflow Designer]] | * [[Workflow Designer]] | ||
− | + | [[Category:Activities|SendEmail (Activity)]] |
Latest revision as of 13:40, 15 February 2018
The SendEmail Activity sends an Email via SMTP, using a server it connects to. It also supports attachments, HTML bodies and Email templates.