Solved

attribute of cfmail

Posted on 2004-09-20
3
199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

733 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