Advertisement
Draven

Find my email

Aug 31st, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1.         # Get the name and email of the recipient
  2.         foreach($results['To'] as $to)
  3.         {
  4.             $domain = strstr($to['address'], '@');
  5.             if($domain == '@my_domain.com')
  6.             {
  7.                 $toName = $to['name'];
  8.                 $toEmail = $to['address'];
  9.             }
  10.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement