php mail confirmation

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
javedkarim
Forum Newbie
Posts: 3
Joined: Fri Jun 27, 2008 6:48 am

php mail confirmation

Post by javedkarim »

hi,
I have successfully send the email to the user through php mail function.
ie. mail("somebody@example.com","My subject",$txt);
Now the problem is i want to confirm that whether the user has received the email or not.
is there any method or code for confirmation of the send email.
User avatar
dyluck
Forum Commoner
Posts: 54
Joined: Thu Jun 26, 2008 1:44 pm

Re: php mail confirmation

Post by dyluck »

If you are sending emails to a POP3 email address, there is no way to verrify the email was read...
I would simply set an error handler for your outgoing email to ensure that the email was at-least sent to the applicable email address (does not guarantee that the email address exists).

This would be a dream for php mailers, if we could verrify that the address was vaild before even sending the email would be awesome but there is no way as of now nor the abililty to know if a message was read/received. We can only check for correct syntax and for a valid domain...

Why don't you create a database and send a "Validate your email address" email and have it set a variable in your database based on a link you send with a post variable. This will ensure that before you send out your core email that they have a vaild email address and that there is a high chance they will read your core email.
javedkarim
Forum Newbie
Posts: 3
Joined: Fri Jun 27, 2008 6:48 am

Re: php mail confirmation

Post by javedkarim »

Thanks for your reply!! :)
There is no other way around !!!
Post Reply