Do you have a question? Post it now! No Registration Necessary. Now with pictures!
September 4, 2004, 3:43 pm
rate this thread
directory. I tested a simple php page with just :
and the page displayed properly so I assume that means my page can see that
directory - I might be wrong.
Here's the code for sending the mail:
$recipients = 'email@example.com';
$headers['From'] = 'firstname.lastname@example.org';
$headers['To'] = 'email@example.com';
$headers['Subject'] = 'Test message';
$body = 'Test message';
$params["host"] = 'smtp.mydomain.com';
$params["auth"] = True;
$params["username"] = 'loginID';
$params["password"] = 'password';
$mail_object =& Mail::factory('smtp', $params);
$mail_object->send($recipients, $headers, $body);
It gets through 2 then does NOT display 3. So, it is not executing the send
command. (I am using smtp mail for a purpose).
How can I test or troubleshoot form this point? Any ideas what is going on
or not going on?
- » Causes for $_SESSION to be only visible to current page?
- — Previous thread in » PHP Scripting Forum