Support
- Advanced Backup
- Client Side
- Cloud Enterprise
- ColdFusion
- Captcha
- Cf Faq
- Cfc
- Cfcontent
- Cfmail
- Cfobject
- Cfsqlinjection
- Cftags
- Cfximagecr
- Customtag
- Dsnless
- Flash_form
- Reserved Words
- Tagsfunctions
- Cfusion
- Upgrade JVM for ColdFusion on Windows
- ColdFusion Error: Server monitoring and API is not available in this edition of ColdFusion Server
- Create a CFIDE mapping under IIS7
- Reset the ColdFusion Administrator password
- CFIDE FAQ
- Microsoft Access DSN in ColdFusion for 64-bit machines
- Using cfexchange tag with Hosted Messaging and Collaboration
- Create a CFIDE mapping under IIS6
- Use a Redirect Script in ColdFusion
- Access DSN on 64bit Windows ColdFusion
- Browseserver
- Configure Log Rotation for ColdFusion -out Logs
- Control Panel
- cPanel
- Customer Portal
- DNS Information
- Dedicated Servers
- DirectAdmin
- Domain Name
- dotDefender
- Dreamweaver
- FileCatalyst
- Front Page
- FTP
- General Information
- Hosted Exchange & SharePoint
- IIS6
- IIS7
- Juniper Netscreen Firewalls
- Linux
- List Server
- MIVA Merchant
- MySQL
- Patching / Server Updates
- phpMyAdmin
- Plesk
- Policies and Procedures
- Premium Spam Filtering
- Programming
- Ruby on Rails
- Search Engine Submission
- SharePoint 3
- SharePoint 2010
- SiteDesigner
- SmarterMail 3
- SmarterMail 4
- SmarterMail 5
- SmarterMail 6
- SmarterMail 7
- SmarterStats
- SmarterTrack
- SQL Server
- Secure Socket Layer (SSL)
- Uploading Your Website
- Video Tutorials
- Windows Server 2003
- Windows Server 2008
- Web Design
- WordPress
- Advanced Monitoring
- MediaWiki
- Enkompass
- Microsoft Outlook 2010
- Android
- Outlook Web Access
- Critical Availability Service
- NAS Data Transfer
- Customer Portal Demos
- Joomla
- Moodle
- Cloud Dedicated
- Gallery CMS
- phpBB
- Standard Monitoring
- Righteous Restore
- NAS (Network Attached Storage)
- Networking
- SmarterMail 8
- PCI Security Scan
- LinkTiger
- Windows Cloud VPS
- Linux Cloud VPS
- Linux VPS
- Windows VPS
- Hyper V
- ENSIM
- Alert Logic
- Webmin
- e107
- Vbulletin
- VPN
- Visual Vault
- Mozilla Thunderbird
- PyroCMS
- Active Directory
- Vmware Related
- Drupal
How do I use the CFMail tag to send mail from my ColdFusion pages?
The following article explains how to use the CFMail tag. This tag allows you to send email messages through your website. This tag is available for use on all of our shared hosting accounts and VPS website hosting accounts that support ColdFusion.
The syntax of the tag is very simple. Within the tag you add the pertinent information including the to address, the from address, a subject line and the server name. The server name will be mail.yourdomain.com. The message of the email is placed between the cfmail tags.
Below is an example of the CFMail tag for versions of ColdFusion starting with ColdFusion 5.0
CFMail tag using Coldfusion 5.0
<cfmail
to = "name@yourdomain.com"
from = "name@yourdomain.com"
subject = "Example of CFMail Tag using Coldfusion 5.0"
server = "mail.yourdomain.com">
Email Message
</cfmail>
For more detailed information about CFMail on Coldfusion 5 you can view Adobe's livedocs website here.
CFMail tag using Coldfusion MX 6.1 / 7.0 / 8
<cfmail
to = "name@yourdomain.com"
from = "name@yourdomain.com"
subject = "Example of CFMail Tag using Coldfusion"
server = "mail.yourdomain.com"
username = "name@yourdomain.com"
password = "password">
Email Message
</cfmail>
Coldfusion MX 6.1/CFMX 7/CF 8 allows for SMTP Authentication by use of a username and password. The username and password must be a valid email address from your mail account.
For more detailed information about CFMail on Coldfusion MX 6.1 you can view Adobe's livedocs website here.
For more detailed information about CFMail on Coldfusion MX 7.0 you can view Adobe's livedocs website here.
For more detailed information about CFMail on ColdFusion 8 you can view Adobe's livedocs website here.
