Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending CFMAIL with Attachments

Status
Not open for further replies.

adrite

Programmer
Dec 15, 2000
1
US
Is it possible to send attachments with CFMAIL and if so, how?#-)
 
This is one out of the manual. Just use the mimeattach field as in:

<cfmail
to=&quot;me@isp.com&quot;
from=&quot;recipient@isp.com&quot;
subject=&quot;File&quot;
mimeattach=&quot;c:\myfile.txt&quot;
>
Here's the file
</cfmail>

The only problem is that cfmail didn't support multiple attachments until version 4.5 I believe.
 
The basic way is to use the MIMEATTACH parameter of the <CFMAIL> tag. Set MIMIATTACH=&quot;Path and file&quot;. You can also use the <CFMAILPARAM> tag to attach the file. The FILE param is the only one you need to specify. EX. <CFMAILPARAM FILE=&quot;path/file&quot;>

CFMAILPARAM can also be used if you want to attach multiple files. Just put in a CFMAILPARAM tag for each one of the files you want to attach. Andrew
amayer@sonic.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top