Jump to content

Return Mail Address


StormTheGates

Recommended Posts

Hey all, having a very odd problem Ive never encountered.

 

I am trying to send mails via PHP's built in mail function. I set the From and Reply-To like so:

 

<?php
$headers = "From: noreply@contractortraining.energy.gov\r\n";
$headers .= "Reply-To: noreply@contractortraining.energy.gov\r\n";

 

Now here is when things get weird. When this email sends the return email gets changed to noreply@doe.golearnportal.org. Oddly enough it only happens when the From is "contractortraining.energy.gov". For example:

 

If I send with these headers the email comes in as doe.golearnportal.org

 

However if I change the headers to be something like "sometest.org" or "nowhere.golearnportal.org" or anything other than "contractortraining.energy.gov" it will come through using the specified headers. It is only when I use "contractortraining.energy.gov" that the headers get changed.

 

Any ideas what could be responsible for this type of behavior? I dont think its a PHP issue at the moment, and this code is working successfully on several other servers.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.