PHP Sendmail via External Mail Server
Category: Send Email From A Page
My site is on a shared linux server. PHP sendmail is working fine from the website currently, but the emails are originating from the shared server address. I would like to use an external mail server to pass the emails through. It looks like PHP mail on linux does not offer this option by default. Are there other options available to me on a shared linux server? Is the PEAR mail package available for use on a shared server?
Best answer chosen by User
Typically when trying to use an external SMTP mail server we would recommend using the <a href="http://www.inmotionhosting.com/support/email/send-email-from-a-page/using-phpmailer-to-send-mail-through-php" target="_blank">PHP phpMailer</a> class. That link has full information on how to set it up.
Alternatively under the <strong>Software/Services</strong> section of cPanel you can click on <strong>PHP PEAR Packages</strong> and I believe <strong>Net_SMTP</strong> is the package you would be looking for.
Please let us know if you had any troubles at all getting phpMailer to work, or if you had any further questions at all.
Like this Question? Tweet