Jump to content

SMTP from PHP on Mac OS X Leopard with no forwarding server


KenDRhyD

Recommended Posts

More and more it seems that ISPs are adding restrictions to their mail support to prevent you from using other mail services or from improperly using theirs.

 

I am running Mac OS 10.5.6 Leopard in-house, with Rogers Cable (Canada) as my service provider. They provide n SMTP mail server and it works fine when accessed from a mail client. Unfortunately they do not seem to provide support for "smart host" or forwarding mode, which means that even if I properly configure the local postfix settings, any mail send via php reports some error from their mail server and all of the entries simply remain in the mail queue forever (or until I manually remove them individually).

 

Rogers requires that all email sent use an authenticated account (email and password) and that the originator of the email must be the email account or some other email address that has been explicitly defined as a legal mail sender for that account; otherwise the mail is rejected.

 

Is there a way to edit php.ini to convince it to communicate directly with the Rogers SMTP server, using my account and password? All of the notes that I see indicate this might work for Windows, but that UN!X based systems should go through local mail -- but since mail forwarding is not working this is broken. I want to be able to indicate the Rogers SMTP mail server, the account and password, and then have PHP send the mail as the Apple Mail client would.

 

Is this possible? Or am I SOL with this ISP?

To use SMTP Authentication, you need to use one of the php mailer classes - phpmailer, swiftmail, or pear::mail.

 

The php mail() function does not support SMTP authentication, so it can only be used when the mail server has been configured to "trust" the server where php is running. This has nothing to do with the operating system.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.