Jump to content

Recommended Posts

I have a script that sends an email of an order when one is placed on the site. It is sent to the user and to an admin.

I have been having some issues with the emails to the admin going astray, which is a big problem

 

The person I made the site for has a number of other sites too, all for business' he runs from a building in the city. He uses some IT guys to rent the hosting space etc. for his websites, and they also set up his servers in the office for the pc's in the shops.

They configured the email on the different domains to point to just one domain, and that then deals with all the email that is recieved from the different sites, dishing it out to who ever needs it. This is somewhat confusing to me, but there you go.

I mention to the IT guys that we are having emails go astray, and go to the wrong places - usually it ends up going to the default address on the domain that gets all the mail re-routed to it.

 

so I get this in an email:

"It appears from the header that the emails are routing to the webserver – bg.com, which is strange, because the primary mail server (mail.bg.com) points to the EH Server. Ive tested this and also sent an email to [email protected] which went straight to the EH server. I can only guess it may be the PHP script automatically routing to the webserver’s mail server. Maybe because that’s where the php script resides?

 

The best way to determine this is by changing the script to route through a different mail server, possibly the EH mail server? Could you modify the PHP script to do this?"

 

And my first reaction to that is... how the hell am I supposed to do that?!?

 

So I am having a look at the PEAR smtp stuff, and generally flaling around the internet to see what I might need to learn in order to do this. I have no real idea where to start.

Can anyone point me in the right direction with suggestions?

 

Cheers!

 

I guess i am looking for a way to specify the server that is sending the email?

or looking for a way to force it to be seen as being sent from a different domain? (which just sounds duplicitous to me - I don't care if the domains are owned by the same person or not)

 

I can't see why the email would not be sent properly from the domain, even if it's mail server was routed to the other domain...

 

the domains in question are blackgum.com.au and ellisonhawker.com.au . I originally took some of the domain info out at a stab at a bit of privacy for those business', but now I realise that what i am asking actually sounds dodgy, as if  I was planning a spam campaign or the like, I guess this kind of thing could come in handy to implicate a different web server.

 

I don't need the headers to say that it was coming from the EH mail server, I would prefer it to be only referenced to the blackgum one. I am just trying to figure out if I can actually re-route it through the script, or wether it is something these guys need to deal with because of the way they have set up the mail handling...

 

Cheers :D

 

EDIT -- Thanks teamatomic, I'll check it out and have a play with it :D

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.