PDA

View Full Version : No support for the Mail() function, excessive spam


rog4679
11-06-2009, 11:28 AM
I've been working with my host to get the universal email to send.

After three days with support tickets and phone calls, I've received this from the hosting service. He asked me to request an alternative mail function.

Here's his message -
Hello,

I spoke with you on the phone this morning.

After speaking with you, I'm aware of the problem that is with your script

It looks like it uses a function called mail();
eNom's servers do not support the Mail() function due to excessive spam.

Jason Byrnes
11-06-2009, 11:58 AM
Universal Email Supports the PEAR Mail for SMTP. On the general tab of Universal Email, select the PEAR Mail for SMTP mail object.

rog4679
11-06-2009, 12:25 PM
Jason -

Here are the files that I created with just one server behavior - Send Universal Email.

I've attached the files. These are the same files sent to the host and I'm told this function is not supported. They have asked that I get an alternative mail function from webassist.

Jason Byrnes
11-06-2009, 12:48 PM
Pear mail for SMTP does not use the mail() function to send the email.


In the PEAR_Mail_using_SMTP_PHP.php file, the lne that sends the email is:


$mailObj = $theMailer->send(str_replace(";", ",", $mailTo),$headerArray,$mailBody);




If you where to use the Mail email object, that Does use the mail function. The line that sends the email in the mail_PHP.php file is:
$mailObj = mail($mailTo,$mailSubject,$mailContent,$mailHeader );


The only two mail objects we support are mail or Pear mail for smtp. The pear mail for SMTP uses the onlly alternative mail function we offer.

rog4679
11-06-2009, 01:04 PM
Jason-

I'm sure this is an error with the host, but Enom is a large hosting company and they have had my files 3 days now. Was there anything in my files that would cause the pear function to not work?

Jason Byrnes
11-06-2009, 01:15 PM
I dont see anything in the files that would cause the email not send.


I cant say whether they support Pear mail or not, they *should, but they would know for sure.

rog4679
11-06-2009, 01:26 PM
Jason -

I need the ecart functions to work properly with Universal Email.

Is there no alternative mail code to Pear?

Jason Byrnes
11-06-2009, 01:50 PM
Universal Email offers two mail objects for PHP:
Mail
Pear Mail for SMTP