[ZendTo] Re: invalid email addresses

Naz Snidanko nsnidanko at harperpowerproducts.com
Thu Apr 21 14:52:08 BST 2011


Yes, we had to address this issue as well: users make spelling mistake
in the address and make a dropoff which results in complains to the
helpdesk. Remote MTA rejects mail right away since such user doesn't
exist in its recipient table.  

This is caused by improperly generated Return-Path: header.

If you look at the early posts of this mailing list you will find it was
a limitation of that specific php function. 

This can be fixed by using the following workaround in the function
deliverEmail().

$tmp_msg_string = "To: $toAddr\nSubject:  $subject\n\n$content\n";
        $tmp_handle = popen ("/usr/lib/sendmail -f$fromAddr $toAddr",
"w");
        fwrite ($tmp_handle, $tmp_msg_string);
        $result = pclose ($tmp_handle);

Regards,

Naz Snidanko
Desktop & Network Support
Harper Power Products Inc.
(p) 416 201- 7506
 nsnidanko at harperpowerproducts.com
 
-----Original Message-----
From: zendto-bounces at zend.to [mailto:zendto-bounces at zend.to] On Behalf
Of Jules
Sent: April 21, 2011 9:34 AM
To: ZendTo Users
Subject: [ZendTo] Re: invalid email addresses



On 20/04/2011 06:05, Damian Mendoza wrote:
> Hi,
>
> I noticed if I send to an invalid email address I'm not receiving any
type of notification. Should I receive an error message if I send to an
invalid email address
Depends what you mean by invalid email address. There is a test to check

that the email addresses entered follow the basic rules of a correct 
email address (i.e. it has an @ sign in it for starters, among other 
things), but there is no way to check that the address exists at the 
time of entry.

You only find that out after you have tried to deliver the message and 
it has failed (which legitimately can easily take 5-7 days). You 
probably don't want to wait a week for the page to load while it checks 
that the email message got through. :-(

Jules

-- 
Julian Field MEng CITP CEng
www.Zend.To

Follow me at twitter.com/JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

'Teach a man to reason, and he will think for a lifetime.' - Phil Plait
'All programs have a desire to be useful' - Tron, 1982

_______________________________________________
ZendTo mailing list
ZendTo at zend.to
http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto



More information about the ZendTo mailing list