Discussion:
CFmail....help please!!!!!!!
(too old to reply)
fareed100
2009-02-13 04:44:44 UTC
Permalink
I am sending a URL link using cfmail to be clicked on direclty and the person
who receive it can go directly to the link without the need to cut and paste in
the browser. It work for some members but not for the others. Some, but not all
of those who have problems with it, use their e-mail through either "Group
Wise" or a "Safari" browser.

Here is the code I used for the cfmail:


<cfmail
query="getemails"
from="EP forum Admin"
to="#getemails.email#"
replyto="***@hotmail.com"
failto="***@hotmail.com"
subject='New comment on "#get_current_case.title#"'
charset="utf-8"
server="localhost"
spoolenable="yes"
<cfmailpart
type="text"
wraptext="74">
A new comment was entered - click here to check
it:http://67.59.160.70/mywebsite/index.cfm
</cfmailpart>

<cfmailpart
type="html">
<p>case title:[B]"#get_current_case.title#"[/B]</p>
<p>comment submitted
by:[B]#getusername.first_name#getusername.last_name#[/B]</p>
<p>http://67.59.160.70/mywebsite /index.cfm</p>
</cfmailpart>

</cfmail>


<cfmail
query="getemails"
from="EP forum Admin"
to="#getemails.email#"
replyto="***@hotmail.com"
failto="***@hotmail.com"
subject='New comment on "#get_current_case.title#"'
charset="utf-8"
server="localhost"
spoolenable="yes"
<cfmailpart
type="text"
wraptext="74">
A new comment was entered - click here to check
it:http://67.59.160.70/mywebsite/index.cfm
</cfmailpart>

<cfmailpart
type="html">
<p>case title:<strong>"#get_current_case.title#"</strong></p>
<p>comment submitted
by:<strong>#getusername.first_name#getusername.last_name#</strong></p>
<p>http://67.59.160.70/mywebsite /index.cfm</p>
</cfmailpart>

</cfmail>
Azadi
2009-02-13 05:17:02 UTC
Permalink
how exactly does it "not work" for others? you have to be more specific
than just "does not work":

no link displayed? link is not clickable? link spans several text lines
and is thus broken (leads to a wrong page)? or they don't get your email
at all?

in general, it is always a good idea to also include link in plain text
and put a note for recipients to make sure they copy and paste the whole
link into the browser if the link spans several lines.

different email applications will display links in different ways, and
even more so for links in plain text emails... to complicate matters
even more, most email programs allow users to select if and how they
want to display the links.

*more to your actual code*: it is a VERY bad practice to use IP address
in a link, especially in email - most of such emails will be marked as
spam immediately by either server or email application spam filter.
always use a fully qualified domain name in links.

if the problem is links being too long and breaking over 2 text lines,
consider utilizing a url shortening service like tinyurl.com (90+ others
here: http://mashable.com/2008/01/08/url-shortening-services/)

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
fareed100
2009-02-14 05:44:37 UTC
Permalink
Thanks Azadi. The link when it gets to some members is not clickable, so they
cut and paste it in the browswer, and I want to make it clickable if possible.
For the IP, I am using that intentionally if I can, unless you think that what
trigger the filters of those members and make it not clickable.
Apprecaite your help
NineCooL
2009-02-17 09:56:03 UTC
Permalink
probably, users who are using may be text mail users, who can't see Rich HTML
content. another possible issue may be that I don't see you are using pure HTML
content,

your URL does not content <a href=""></a> wrappers. try sending URL like this

<cfmailpart
type="text"
wraptext="74">
A new comment was entered - click here to check it: <a
href="http://67.59.160.70/mywebsite/index.cfm">http://67.59.160.70/mywebsite/ind
ex.cfm</a>
</cfmailpart>


That should do the trick... and I don't see your mail headers having the mail
content type (text/html)
fareed100
2009-02-21 22:07:34 UTC
Permalink
Sorry for the late reply. I was out of town and did not check on this!!!

This fixed my problem and looked great!!!!

NineCooL.....You are the best!!!!!

Loading...