text/plain
text/html
html
plain
text
Message-Context
Apparently-To
Approved-By
Fax
Telefax
For-Approval
For-Comment
For-Handling
Mail-System-Version
Mailer
Originating-Client
X-Mailer
X-Newsreader
X-MimeOLE
User-Agent
Originator-Info
Phone
X-Envelope-From
Envelope-To
X-Envelope-To
X-Face
X-RCPT-TO
X-Sender
X-X-Sender
Posted-To
X-Admin
Errors-To
Return-Receipt-To
Read-Receipt-To
X-Confirm-reading-to
Return-Receipt-Requested
Register-Mail-Reply-Requested-By
Abuse-Reports-To
X-Complaints-To
X-Report-Abuse-To
Content-Alias
Delivered-To
X-Loop
Translated-By
Translation-Of
X-UIDL
X-URI
X-URL
X-IMAP
X-OriginalArrivalTime
Precedence
X-MSMail-Priority
X-Priority
Content-Length
Content-Conversion
Content-Class
Content-SGML-Entity
X-MIME-Autoconverted
List-Digest
Mailing-List
X-Mailing-List
List-Software
List-URL
X-Listserver
X-List-Host
Fcc
Speech-Act
Status
X-No-Archive
attachment
attachment
inline
The SMTP server details are provided through the Administrator. This example attaches a file. Use the full path of the file.
<cfmail to="recipient@example.com" from="sender@example.com" subject="Example email">
<cfmailparam file="/#attachment#">
Your Email Message!!
</cfmail>
The SMTP server details are provided through the Administrator. This example attaches a file. Use the full path of the file. Set the MIME type of the file by using the optional type parameter.
<cfmail to="recipient@example.com" from="sender@example.com" subject="Example email">
<cfmailparam file="/#attachment#" type="text/plain">
Your Email Message!!
</cfmail>
The SMTP server details are provided through the Administrator. This example sets an optional X-Header. Check with your email server or service provider to find out what headers are supported.
<cfmail to="recipient@example.com" from="sender@example.com" subject="Example email">
<cfmailparam name="X-Priority" value="#priority#">
Your Email Message!!
</cfmail>
The SMTP server details are provided through the Administrator. This example attaches a file using cfscript. Use the full path of the file.
cfmail(
to="recipient@example.com",
from="sender@example.com",
subject="Example email"
) {
cfmailparam( file="/#attachment#" )
writeOutput( "Your Email Message!!")
};
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.