Set the importance(High) of the mail

could u guys tell me how to set the importance of the mail to High in CFMAIL tag
smuniasamyAsked:
Who is Participating?
 
dapperryConnect With a Mentor Commented:
Ok - this worked for me,

<cfmail from="test@franchisesolutions.com"
            to="dperry@fransol.com"
            subject="Hello there - High
X-PRIORITY: 2 (High)">

This is a test
</cfmail>

Email has been sent.

Make sure that the line break is in there before X-PRIORITY, and that X-PRIORITY is at the beginning of the line.

:) dapperry
0
 
bdemarzoCommented:
There's no way to do this using the CFMAIL tag, even with the latest version of CF (4.5).
0
 
smuniasamyAuthor Commented:
I am not sure. I would like to wait for other experts to say something about this
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
dapperryCommented:
You would just add a new line to the SUBJECT attribute for it.  Heres an example:

        <cfmail to="joe@bazooka.com" from="me@me.com"
        subject="Hi there
Importance: High">

You can also use this method for other 'unattainable' attributes such as BCC and REPLY-TO.  Example=

        <cfmail to="joe@bazooka.com" from="me@me.com"
        subject="Hi there
Importance: High
BCC: secretadmirer@me.com
REPLY-TO: mymother2me.com">

Now I hope I have the syntax right.  If it doesn't work just change the colons to equal signs (Its 1 of those), so it might be Importance= High.  But I think its the former.

:) dapperry
0
 
smuniasamyAuthor Commented:
I am afraid that ur way is not correct. It takes everything as the subject till it meets the quote. I tried : or = and all possible answers. I am still waiting. Thanks,

0
 
dapperryCommented:
Sorry about that.  Its than darn Outlook which won't show me the real name of the header.  You want to use the same strategy but use:

X-Priority: 1 (Highest)
or
X-Priority: 2 (High)
or
X-Priority: 3 (Normal)
or
X-Priority: 4 (Low)
or
X-Priority: 5 (Lowest)

If it works for you, (as it should), you can just accept my comment as an answer.

:) dapperry
0
 
smuniasamyAuthor Commented:
I am afraid that the proposed way way is not working the way it is expected. It takes everything as the subject till it meets the quote. I tried : or = and all possible answers. I am still waiting.

P.S I even tried in the outlook directly by inserting X-Prioity: 1 . But there is no luck

If things work for u, could please send me the actual <cfmail> code.
Thanks,
0
 
smuniasamyAuthor Commented:
drappery.. Thank u very much. It works very good. Could u tell me how this things are working from coldfusion side/MS Outlook side.

Thanks,
Samy.
0
 
dapperryCommented:
I believe (don't quote me on this) that the mail server handles the hard carriage return in such a way that a new message header line is started.

:) dapperry
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.