So as I feared, although I no longer get any error messages when I send my email, the email never actually gets delivered, and I’m getting no feedback as to what is the cause. Keep in mind this all worked before upgrading to Php 5.4.
I’m pretty sure there is nothing wrong with this code, but I provide it for your inspection:
require_once( ‘Mail.php’ );
define( MAIL_PORT_NO, “587” );
define( SMTP_HOST, “mail.example.net” );
define( SMTP_USET, "email@example.com" );
define( SMTP_PASS, “xxxxxx” );
$aSMTPLogin = array (
‘auth’ => true,
‘port’ => MAIL_PORT_NO,
‘host’ => SMTP_HOST,
‘username’ => SMTP_USER,
‘password’ => SMTP_PASS
$aHeaders = array (
‘From’ => $sFromEmail,
‘Return-Path’ => $sFromEmail,
‘To’ => $sSendTo,
‘Subject’ => $sSubject,
‘MIME-Version’ => “1.0”,
‘Content-Type’ => “text/html; charset=iso-8859-1”
$smtp = Mail::factory( ‘smtp’, $aSMTPLogin );
$mail = $smtp->send( $sSendTo, $aHeaders, $sMessage );
All variables are legally define (this use to work). So I suspect there is something wrong with my Pear installs??? If anyone has any suggestions I’m all ears. As it is right now, my sites no longer have email, and according to Dreamhost, they won’t support Pear (although they have it install). Exactly what are they trying to tell the customer??? Because I’m picking it up loud and clear.
Does anyone recommend another ISP beside Dreamhost. I’ve been having issue with their email system for about two years, and their support has been horrible. Took me about four months of back and forth emails, and jumping through hoops, just to get them to raise my quota, and even now they never could resolve my issue that bounced email doesn’t come back to my mailbox; instead it gets stuck in Maildir/new and it’s up to me to shell in and try to inspect them. And even then the folder gets so full of emails, I can’t view it or delete them via ftp. I’ve been a customer since forever (1998?), so it is going to be a major pain to move all my sites; but it has gotten that bad.