Sending email via SMTP on OS X with PHP

How to set up OS X 10.2 (Jaguar)’s Apache / PHP environment to process scripts which send email out over the internet. This is really good for those who are having problems with the PHP Mail function.
Introduction

How to set up OS X 10.2 (Jaguar)’s Apache / PHP environment to process scripts which send email out over the internet. This is really good for those who are having problems with the PHP Mail function.

PHP EMAIL SOLUTION:

Here is a link to a site that contains a php class and sample email test script that will communicate directly with your ISP’s SMTP server:

http://www.phpguru.org/smtp.html

1. Download the file and place it anywhere in your website directory. 2. Edit the example test php script to use SMTP parameter values valid for your ISP account, and format a test message to a valid email address.

3. Execute the sample php script (which uses the PHP ‘include’ function to access the SMTP class script sitting in the same directory.

This should work just fine. If you are having problems finding the right information to edit the SMTP values, contact your internet service provider to uptain your e-mailing info.

Leave a Reply

Your email address will not be published. Required fields are marked *