• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

admin config for wrong mail syntax?

Explorer ,
Jul 17, 2007 Jul 17, 2007

Copy link to clipboard

Copied

Hello Everyone,

I recently had to reinstall coldfusion on our server, and came across an error i hadn't noticed before

when sending a mailing with cfmail, if the mail address in the to had an incorrect syntax i get a error message:
This exception was caused by: javax.mail.SendFailedException: Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 550 Requested action not taken: mailbox unavailable or not local .

i could just check the mail address before using it, but i wondered if there's a possibility to configure the administrator to send a warning to the sender to inform him an email used was not correct, but without stopping to process the cfm page.

tnx for any help!

Greetz, yannovich
TOPICS
Advanced techniques

Views

336

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 17, 2007 Jul 17, 2007

Copy link to clipboard

Copied

But what if it was the sender's email that was wrong?

You're going to have to peform validations on the emails used before using the cfmail tag.

Client Side: use CFFORM validation
http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFu...

I still suggest server side validation as well.
UDF: isEmail(email)
http://www.cflib.org/udf.cfm?ID=216

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 17, 2007 Jul 17, 2007

Copy link to clipboard

Copied

LATEST
use the replyto param in your application

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation