Solved

<CFMAIL>: detect incorrect TO field

Posted on 2002-06-04
6
251 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
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to generate a csr to request an intermediate ca on os x 3 34
Script 12 155
Recipient address rejected: User unknown in virtual alias table 1 294
DNS @ Naked Domain Record 5 84
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 …
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

777 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