Emails sent from/to addresses on same domain not working

Asked by:
HubFans / n/a Points
Time:
2016-03-02 9:43 pm EST
Category:
Email
Hits:
1,687
Hello!

I've got a Wordpress site using Ninja Forms for their contact form. The form submission script is configured to send emails from an address NOT on the site's domain, and send to 3 different addresses, 2 on the domain and 1 being a gmail address. Only the gmail address is getting the submissions. If I configure it so the "from" address is on the domain, like noreply@, nobody gets an email.

What must we configure in cPanel to get our PHP-based mail scripts to work using addresses on the domain of the hosting? I recall running into this issue with cPanel before and that the solution is a checkbox buried in a corner of the hosting panel.

Thoughts?
Mark

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

arnelc
Staff
17,314 Points
2016-03-02 10:22 pm EST
Hello Mark,

Sorry for the problems with the email being sent from your WordPress site. All mail must be verified with an account, so in the case of your form, it would need to use an established email account created in the cPanel. This way the mail can be sent using SMTP based with that account. Configuration for the email in WordPress is done in the php.ini file (see Updating your Local PHP settings for more info). You'll need to make sure these settings are in the file:

SMTP = mail.example.com
smtp_port = 587
username = info@example.com
password = yourmailpassord
sendmail_from = info@example.com


You can create the email account in cPanel. If you don't want email to be sent to that address, create a forwarder for that specific email address, then click on "Discard and send an error " option for the forwarder. You can even designate the message that is seen.

I hope this helps to answer your question, please let us know if you require any further assistance.

Regards,
Arnel C.

To submit a comment on this answer, please first login.

This problem persists, and following all of these prescriptions hasn't helped.

I've confirmed that I can send a basic PHP-scripted email from an address on the domain to any address NOT on the domain, but the same script sending to an address on the domain fails.

All addresses intended for use have been added in cPanel and the email routing for the domain has been configured to use a remote mail exchanger. Still nothing.

I find it silly, given all of the functionality and configuration that cPanel provides, that one would need to directly edit the php.ini for any reason.

Does anybody have some insight?

Mark
mkanning
3 Points

2016-03-03 2:21 am EST
Hello Mark,

Sorry for the continued problem with the form. I was looking at your account notes and it appears that you spoke with a tech, made mail routing remote and set your php.ini local. Can you verify that you're still having a problem after making those changes? Please let us know and we can look into it further.

Regards,
Arnel C.
arnelc
17,314 Points
Staff
2016-03-03 1:25 pm EST
Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

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

Not a Customer?

Get web hosting from a company that is here to help.
}