-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.cfm
More file actions
29 lines (28 loc) · 1.74 KB
/
index.cfm
File metadata and controls
29 lines (28 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<h1>sendEmail()</h1>
<p>This plugin extend the sendEmail() with the option to remove attachment files (if any) after the mail is successfully delivered. </p>
<h2>Parameters added</h2>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top">remove</td>
<td valign="top">boolean</td>
<td valign="top">No</td>
<td valign="top">No</td>
<td valign="top">If yes, ColdFusion removes attachment files (if any) after the mail is successfully delivered.</td>
</tr>
</tbody>
</table>
<h2>Examples</h2>
<p><code class="block"><span id="formatted_code_5CE2597B4D59E33F34C3B33B4B5A8CD3" style="color:#000"><span style="color:#676767; background-color: #fff;"><!--- Get a member and send a welcome email, passing in a few custom variables to the template ---></span><br><span style="color:#990033"><cfset<span style="color:#000000"> newMember = model(<span style="color:#006600">"member"</span>).findByKey(params.member.id)</span>></span><br><span style="color:#990033"><cfset<span style="color:#000000"> sendEmail(<br> remove="yes",<br><br> to=newMember.email,<br> template=<span style="color:#006600">"myemailtemplate"</span>,<br> subject=<span style="color:#006600">"Thank You for Becoming a Member"</span>,<br> recipientName=newMember.name,<br> startDate=newMember.startDate<br>)</span>></span><br></span></code></p>
<p> </p>
<h2>Project Home</h2>
<a href="https://github.com/bizonbytes/inWords">https://github.com/bizonbytes/sendEmailPlus</a>