forward fails for emails sent from wordpress

derekseabrooke

Registered
Jun 24, 2020
4
0
1
Toronto
cPanel Access Level
Website Owner
I am using cPanel on my GoDaddy economy hosting package. I have setup a forward for my email address which works fine when it receives email from an external sender but for some unknown reason the forwarder fails whenever the email is generated by the local wordpress. What makes it all the more baffling is that this applies no matter how I configure the email within wordpress. I currently have it routed through gmail and it always fails yet the forwarder works fine when I create the email from the gmail interface.
 

jdpuglisi

Active Member
Apr 24, 2020
41
9
8
NYC USA
cPanel Access Level
Root Administrator
WordPress uses the wp_mail() function which is based on the PHPMailer class. Are you sure your WordPress settings are configured to send email to you assuming you're an administrator? Here's an easy way to troubleshoot. In a text editor, create a php file and put this in it.
PHP:
include '/home/cpanelID/public_html/wp-load.php';
wp_mail(['[email protected]'], 'Test from WordPress', 'test');
Edit the include line to point to wherever your WordPress root directory is. Call the file through your browser and see if you get an email. If so, it's your WordPress settings, if not, something's really amiss in your WordPress setup.
 

derekseabrooke

Registered
Jun 24, 2020
4
0
1
Toronto
cPanel Access Level
Website Owner
I think you guys are misunderstanding my problem. The wordpress can send emails and they arrive at the intended inbox. The problem is that the forward function I setup through cPanel fails to forward the email to another address in this case when it works in others. This doesn't make any sense at all! In fact I did try to use a plugin to send via gmail with the same result. It's driving me crazy.