Email Issue in PHP Code
Posted: Mon Sep 18, 2006 6:15 pm
feyd | Please use
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
The problem I have come across is with this registration page I have been working on. It appears that the registration email is not being sent out. Intially it was only sending to any address outside of aol.com or aim.com addresses. I thought I had isolated the issue to underscores and alpahnumeric email addresses. But then it just all of a sudden completely stopped working and wouldnt send to anyone. Can someone take a gander at the code below. Has anyone heard of anything like this I am at the end of my rope I have tried everything I can think of.
Thank you all for your helpCode: Select all
include('Mail.php');
$recipients = '$email';
$headers['From'] = 'abcd@abcd.com';
$headers['To'] = $email;
$headers['Subject'] = abc activation required...';
$params['sendmail_path'] = '/usr/lib/sendmail -t -i';
// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory('sendmail', $params);
$mail_object->send($recipients, $headers, $body);feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]