CFmail question

Posted on 2005-04-18
Last Modified: 2013-12-24
when I use cfmail there is any way not showing the actual email address, just show the sender name, for security reason
so like from only show the name

any idea
Question by:asamuel
    LVL 5

    Expert Comment

    you mean .... to be able to do anonymous emailling ?  

    or just not be abel to show what address the email is being sent from or who its being sent too?

    Author Comment

    I just want to say  from (just the name ) not the email address
    LVL 5

    Expert Comment

    oh... i think you can do something like "Name to display" email address, like this

       FROM = "John Smith <>"
       TO = "List Members <>"
       SUBJECT = "List Mailing">Your e-mail here</CFMAIL>

    Author Comment

    this way email address will not be shown to the sender
    LVL 35

    Accepted Solution

    It will always show the email address.  You cannot hide this.

    There is no way to prevent a person from seeing the email address the email was sent from unless you forge it with a phony address.

    CFMail requires a valid email address to be entered inthe from.

    Some email clients (i.e. on the person's machine who is reading the email) can set it so that if they know the person only the person name shows and not the email address (i.e. Outlook), but they still can choose show headers and see the emial if they want.

    Assisted Solution

    You can't "HIDE" the email, not with any client because the email is always delievering party is always attached. But you can do what asamuel is asking. A user will still be able to click on the properties of the name and get the email address though.

    just like kkhipple said, you can set the from to be "John Smight <>" That way only "John Smith" will show in the from line. This also only works with the type attribute set to HTML. Plain-text emails generally show the email address rather than the name only.

    I have used this method many times and via database values. With using database values you can make it more dynamic by even outputing the name to the page without the <> because it's treated as an html tag that doesn't exist and is ignored. so the output would only be the name.

    Hope that helps!
    LVL 35

    Expert Comment

    dougokc, you said
    >>you can set the from to be "John Smight <>" That way only "John Smith" will show in the from line.

    Again this depends on your email client settings

    Certain email clients DO understand that notation and display the email address wit the name.

    It is entirely dependent on the program being used to read the email - it is not in the control of the person sending the email.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Article by: kevp75
    Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
    Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    732 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

    25 Experts available now in Live!

    Get 1:1 Help Now