Solved

attribute of cfmail

Posted on 2004-09-20
3
191 Views
Last Modified: 2013-12-24
Hi, I was wondering
with cfmail can one use an attribute like
smtp.FromName which is used with asp mail?
this is used to display a name in the from field on the mail header instead of/and showing the e-mail address
thanks
0
Comment
Question by:MMsabry
  • 2
3 Comments
 
LVL 21

Expert Comment

by:pinaldave
ID: 12104839
Hi MMsabry,
you can use from to display any text to the receipient...
how to use and what is that... http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-pta.htm

Regards,
---Pinal
0
 
LVL 21

Expert Comment

by:pinaldave
ID: 12104846
Hi MMsabry,
<cfmail
   to = "recipient"
   from = "sender"
   cc = "copy_to"
   bcc = "blind_copy_to"
   subject = "msg_subject"
   replyto = "reply_to_addr"
   failto = "fail_message_addr"
   username = "user name"
   password = "password"
   wraptext = "column number"
   charset = "character encoding"
   type = "msg_type"
   mimeattach = "path"
   query = "query_name"
   group = "query_column"
   groupcasesensitive = "yes" or "no"
   startrow = "query_row"
   maxrows = "max_msgs"
   server = "serverspecs"
   port = "port_id"
   mailerid = "headerid"
   timeout = "seconds"
   spoolenable = "yes" or "no">

(Optional) Mail message body and/or cfhttpparam tags

</cfmail>

Regards,
---Pinal
0
 
LVL 17

Accepted Solution

by:
anandkp earned 125 total points
ID: 12109421
I suppose this is what ur looking for ?

<CFMAIL FROM="anandkp <anandkp@hotmail.com>" to="MMsabry <MMsabry@domainname.com>" subject="" type="html">      
      Hi test email !      
</CFMAIL>

This wld have the From name [anand] show up in the email - instead of email address [anandkp@hotmail.com]
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now