Jump to content

[SOLVED] Retun-Mail: problem


sniperscope

Recommended Posts

Hi guys,

I have a mail issued problem and i am honestly hopeless. I can send an e-mail with mail function and returns with result to specified address but i don't know how to read that data to put a flag into that mail address for mark it  as not valid mail.

The code i am using is below so far it works fine but i can not read return mail.

Please help.

 

Regards

 

<?php

$returnMail = "jdavide22@hotmail.com";

$value    = "jdavide2sdjhflkasjdf2@ezweb.ne.jp";
$_body    = "Test Body";
$header   = "From: info@example.com\n";
$header  .= "Reply-To: info@example.com\n";
$header  .= "Return-Path: jdavide22@hotmail.com\n";
$header  .= "MIME-Version: 1.0\n";
$header  .= "Content-Type: text/plain; charset=\"ISO-2022-JP\"\n";
$header  .= "Content-Transfer-Encoding: 7bit\n";
$header  .= "X-mailer: PHP/" . phpversion();
$_subject = "test_title";

$a = mail( $value, $_subject, $_body, $header, "-f " . $returnMail ."" );
?>

Link to comment
Share on other sites

$a = mail( $value, $_subject, $_body, $header, "-f " . $returnMail ."" );

in this code sends mail to jdavide2sdjhflkasjdf2@ezweb.ne.jp which is never exist mail. So, mail function returns a 550 code to the $returnMail = "jdavide22@hotmail.com";

And i want to know how can i read that return code because i want to mark wich maill address is exists and which is not.

i search whole net and php.net/manuals nothing found to work. :'( :'(

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.