Author Topic: [SOLVED] Retun-Mail: problem  (Read 313 times)

0 Members and 1 Guest are viewing this topic.

Offline sniperscopeTopic starter

  • Enthusiast
  • Posts: 224
  • Gender: Male
    • View Profile
[SOLVED] Retun-Mail: problem
« on: July 04, 2009, 12:34:30 AM »
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

Code: [Select]
<?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 ."" );
?>


Offline The Eagle

  • Enthusiast
  • Posts: 128
  • Gender: Male
  • I can assist you!
    • View Profile
    • Vazzer
Re: Retun-Mail: problem
« Reply #1 on: July 04, 2009, 01:01:19 AM »
What is the issue you're receiving/having?
- E-mail me at maniac@vazzer.net

Offline sniperscopeTopic starter

  • Enthusiast
  • Posts: 224
  • Gender: Male
    • View Profile
Re: Retun-Mail: problem
« Reply #2 on: July 04, 2009, 01:04:46 AM »
$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. :'( :'(
« Last Edit: July 04, 2009, 01:07:12 AM by sniperscope »

Offline sniperscopeTopic starter

  • Enthusiast
  • Posts: 224
  • Gender: Male
    • View Profile
Re: Retun-Mail: problem
« Reply #3 on: July 04, 2009, 03:44:49 AM »
Isn't nobody knows how to read return code ?

Offline sniperscopeTopic starter

  • Enthusiast
  • Posts: 224
  • Gender: Male
    • View Profile
Re: Retun-Mail: problem
« Reply #4 on: July 04, 2009, 04:22:43 AM »
forget it.