Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Get the name and email of the recipient
- foreach($results['To'] as $to)
- {
- $domain = strstr($to['address'], '@');
- if($domain == '@my_domain.com')
- {
- $toName = $to['name'];
- $toEmail = $to['address'];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement