Solved

<CFMAIL>: detect incorrect TO field

Posted on 2002-06-04
6
256 Views
Last Modified: 2013-12-24
Hi,

I send email from a page to people who want to register, but sometimes people insert a non-existing e-mail adres.

How can I detect that a mail has bounced? And should the <cfmail>-example I insert result in a mail to myemail@blabla.nl that nobody@1234.QQQ does not exist?

Tanx,
Floris.

<CFMAIL TO= "nobody@1234.QQQ"
               CC=""
               FROM= "myemail@blabla.nl"
               SUBJECT= "Registration information" >test</CFMAIL>

0
Comment
Question by:florisb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Expert Comment

by:winningl
ID: 7054168

go there and try if the little program can help.

The package includes detailed documentation and examples (for most major programming languages) for integrating Advanced Maillist Verify into Internet/Intranet servers based on Active Server Pages technology from Microsoft and ColdFusion from Allaire.



http://www.mailutilities.com/amv/

winningl
0
 
LVL 2

Author Comment

by:florisb
ID: 7055622
Thanx, but that's not an option.

I could parse the log, but I was hoping for a simple CF solution.

Floris.
0
 
LVL 16

Accepted Solution

by:
duncancumming earned 25 total points
ID: 7078315
If the email address has a syntax error, eg no @, spaces in the domain name, etc, then Coldfusion will not deliver it, and the mail will be sent to the Undelivr folder.  You could check this from time to time.  Valid mail also ends up here occasionally, eg if your mailserver isn't working.  In which case drag it back into the Spool.  Probably you could set something up (combination of CFSchedule, CFDirectory?) to check this at regular intervals.

If the email address has a valid syntax, eg fdfdsfdsf@hotmail.com, Coldfusion will happily pass it to your mailserver, which will then try to send it.  What happens next depends on the mailserver you are sending to, and probably also your own mailserver.  The From address will probably get a reply back, eg if the address wasn't found at that domain, or the domain name doesn't exist.  

I suspect some mail that doesn't get sent won't give you an error back, but don't have any evidence of this.

0
 
LVL 6

Assisted Solution

by:dash420
dash420 earned 25 total points
ID: 7298193
I think it is quite impossible. as CFMAIL only check mailid should be valid. means there should be @. in the mail id. but if user type
test@test.com it will accept and cann't catch the error though coldfusion. colfusion server just send the mail to smtp mail server. mail server duty to send mail. wheather mail sent sucessfully colffusion server unaware of it.
0
 
LVL 35

Expert Comment

by:mrichmon
ID: 10794111
No comment has been added lately, so it's time to clean up this question.
I will leave the following recommendation in the Cleanup topic area:

Split duncancumming & dash420

Please leave any comments here within the next four days.

mrichmon
EE Cleanup Volunteer
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

707 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