AddRecipient (Email subroutine): Difference between revisions
Jump to navigation
Jump to search
m (Created page with "This method lets you add an SMTP mail recipient to the SMTP request that is sent to the server. ==AddRecipient syntax== <p class="pre"> %email:AddRecipient(name, [nickname]) </p>...") |
m (Created page with "This method lets you add an SMTP mail recipient to the SMTP request that is sent to the server. ==AddRecipient syntax== <p class="pre"> %email:AddRecipient(name, [nickname]) </p>...") |
||
Line 1: | Line 1: | ||
{{Template:Email:AddRecipient subtitle}} | |||
This method lets you add an SMTP mail recipient | This method lets you add an SMTP mail recipient | ||
to the SMTP request that is sent to the server. | to the SMTP request that is sent to the server. | ||
== | ==Syntax== | ||
{{Template:Email:AddRecipient syntax}} | |||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
Line 20: | Line 20: | ||
</td></tr></table> | </td></tr></table> | ||
==Usage | ==Usage notes== | ||
<ul> | <ul> | ||
<li>Mail servers should be able to accept as many as 100 or more distinct | <li>Mail servers should be able to accept as many as 100 or more distinct | ||
Line 27: | Line 27: | ||
The recipient count is the sum of all e-mail addresses added with the <var>AddRecipient</var>, | The recipient count is the sum of all e-mail addresses added with the <var>AddRecipient</var>, | ||
<var>[[AddCc (Email subroutine)|AddCc]]</var>, and <var>[[AddBcc (Email subroutine)|AddBcc]]</var> methods. | <var>[[AddCc (Email subroutine)|AddCc]]</var>, and <var>[[AddBcc (Email subroutine)|AddBcc]]</var> methods. | ||
<li>Recipients added with the <var>AddRecipient</var> method appear in the “To:” | <li>Recipients added with the <var>AddRecipient</var> method appear in the &ldquo;To:&rdquo; | ||
header in the e-mail. | header in the e-mail. | ||
</ul> | </ul> | ||
==See also== | |||
{{Template:Email:AddRecipient footer}} |
Revision as of 21:41, 5 July 2011
Add a mail recipient (Email class)
This method lets you add an SMTP mail recipient
to the SMTP request that is sent to the server.
Syntax
email:AddRecipient( name, [nickname])
Syntax terms
A previously declared Email object. | |
name | A string expression that contains an email address:
a userid, followed by an at sign (@), followed by a domain name. |
nickname | An optional string expression that contains a familiar name associated
with the e-mail address. |
Usage notes
- Mail servers should be able to accept as many as 100 or more distinct recipients for a single mail message, though stricter limits may be imposed by some mail servers. The recipient count is the sum of all e-mail addresses added with the AddRecipient, AddCc, and AddBcc methods.
- Recipients added with the AddRecipient method appear in the “To:” header in the e-mail.