InMotion Hosting Support Center

PHP Sendmail via External Mail Server

2013-01-29 10:25 am EST

Hits: 2,290
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?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User


9,968 Points
2013-01-29 10:55 am EST
Hello launchnest, and thanks for your question.

Typically when trying to use an external SMTP mail server we would recommend using the PHP phpMailer class. That link has full information on how to set it up.

Alternatively under the Software/Services section of cPanel you can click on PHP PEAR Packages and I believe Net_SMTP 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.

- Jacob

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Social Media Login

Social Login Joomla

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!