| | |
Cfmail problem when sending to yahoo recipients
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2007
Posts: 29
Reputation:
Solved Threads: 0
Hi,
I've set up a "Send Page to Friend" function using a script that I donwloaded.
It works fine if I use my email as the recipient address, but I receive the following error when I try to send it to a Yahoo address:
Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 550 5.7.1 <blahblah@yahoo.com>... Relaying denied. IP name lookup failed
I'm able to send a regular email to Yahoo through our mail server, so I'm wondering if the error is coming from the Yahoo mail server because I'm submitting a form? Is there a better way to create a "send page to friend" function other than cfmail?
Thank you!
I've set up a "Send Page to Friend" function using a script that I donwloaded.
It works fine if I use my email as the recipient address, but I receive the following error when I try to send it to a Yahoo address:
Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 550 5.7.1 <blahblah@yahoo.com>... Relaying denied. IP name lookup failed
I'm able to send a regular email to Yahoo through our mail server, so I'm wondering if the error is coming from the Yahoo mail server because I'm submitting a form? Is there a better way to create a "send page to friend" function other than cfmail?
Thank you!
•
•
Join Date: Mar 2007
Posts: 28
Reputation:
Solved Threads: 0
What sender address are you using? It sounds like its being rejected, possibly as an anti-spam measure. Though I don't know if its from your mail server or from yahoo. Check their faq's http://help.yahoo.com/l/us/yahoo/mai...basics-55.html
Personally I use a regular <a href="mailto:..."> link instead of cfmail. I'd rather emails are sent through the user's email client instead of my mail server. That way I don't have to worry about rejected emails or people sending spam through my application. The disadvantage of using "mailto:" is that the user cannot send email unless they have a web client like outlook, etc installed.
Personally I use a regular <a href="mailto:..."> link instead of cfmail. I'd rather emails are sent through the user's email client instead of my mail server. That way I don't have to worry about rejected emails or people sending spam through my application. The disadvantage of using "mailto:" is that the user cannot send email unless they have a web client like outlook, etc installed.
Last edited by cfAllie; Apr 28th, 2007 at 1:04 am. Reason: formatting
•
•
Join Date: Apr 2007
Posts: 29
Reputation:
Solved Threads: 0
I agree with you, CFAllie. But now I have another problem! When I try to include the URL, including a query string, in the body of the message, it won't include anything with ? or &. I tried setting the variable for the link and then including the variable in the body, but it doesn't work for me.
Thanks!
Thanks!
•
•
Join Date: Apr 2007
Posts: 29
Reputation:
Solved Threads: 0
Hi,
Thanks for all your good advice. I've given up on the query string part. We're just going to email from pages without query strings.
Here's the code:
<CFSET pagename = cgi.script_name>
<cfoutput>
<a href="mailto:?subject=Look at this information on #variable.blahblah# &body=http://www.#pagename#">Send this page to a friend</a>
</cfoutput>
Do I need to worry about harvesting /spamming if the mailto: is blank?
Thanks again!
Thanks for all your good advice. I've given up on the query string part. We're just going to email from pages without query strings.
Here's the code:
<CFSET pagename = cgi.script_name>
<cfoutput>
<a href="mailto:?subject=Look at this information on #variable.blahblah# &body=http://www.#pagename#">Send this page to a friend</a>
</cfoutput>
Do I need to worry about harvesting /spamming if the mailto: is blank?
Thanks again!
•
•
Join Date: Mar 2007
Posts: 28
Reputation:
Solved Threads: 0
I didn't test it but I think something like this should work
A blank mailto: is good. Harvesting/spam are only an issue if the mailto: contains a real email address.
ColdFusion Syntax (Toggle Plain Text)
<cfset blahblah = "whatever site" /> <cfset subjectText = "Look at this information on #blahblah#" /> <cfset linkText = "http://www.domain.com#cgi.script_name#"> <cfif len(cgi.query_string)> <cfset linkText = linkText &"?"& URLEncodedFormat(cgi.query_string) /> </cfif> <cfoutput> <a href="mailto:?subject=#subjectText#&body=#linkText#">Send this page to a friend</a> </cfoutput>
A blank mailto: is good. Harvesting/spam are only an issue if the mailto: contains a real email address.
•
•
Join Date: Mar 2007
Posts: 28
Reputation:
Solved Threads: 0
Google turned up a lot of issues with mailto and Lotus notes, primarily character limitations.
http://www.thescripts.com/forum/thread154837.html
http://www-1.ibm.com/support/docview...id=swg1LO07827
Unfortunately, the only 100% foolproof way I know of is to use your original idea (cfmail).
http://www.thescripts.com/forum/thread154837.html
http://www-1.ibm.com/support/docview...id=swg1LO07827
Unfortunately, the only 100% foolproof way I know of is to use your original idea (cfmail).
![]() |
Similar Threads
- cannot delete or send e-mails when using yahoo mail (Viruses, Spyware and other Nasties)
- Problem submitting/sending (Yahoo Mail, forums, etc) (Web Browsers)
Other Threads in the ColdFusion Forum
- Previous Thread: Smith goes open-source
- Next Thread: Cleaning up my code.
| Thread Tools | Search this Thread |





