predator12341 Posted September 16, 2011 Share Posted September 16, 2011 Hi all, I am using the mail function to send an email and when I send the email it goes through fine with one email address, but if I try to send it to a different email address it does not. However, the mail function still reports back that it was sent successfully. I have looked in the spam folder and I cannot see them there. Any one got any ideas? Cheers Mark Quote Link to comment https://forums.phpfreaks.com/topic/247288-mail-issue/ Share on other sites More sharing options...
AyKay47 Posted September 16, 2011 Share Posted September 16, 2011 post the relevant code Quote Link to comment https://forums.phpfreaks.com/topic/247288-mail-issue/#findComment-1269987 Share on other sites More sharing options...
predator12341 Posted September 16, 2011 Author Share Posted September 16, 2011 it is just a standard mail call mail("me@mydomain.com", "web form request", $msg, $headers); like I said, it works with one email address, but if I try to put a different email address in its place it fails. I did forget to say that the other email I try to send it to is on a different domain, but I have tried 3 email address and it is only one particular domain that messages appear not to be going to. Quote Link to comment https://forums.phpfreaks.com/topic/247288-mail-issue/#findComment-1269989 Share on other sites More sharing options...
voip03 Posted September 16, 2011 Share Posted September 16, 2011 it is only one particular domain that messages appear not to be going to. Quote Link to comment https://forums.phpfreaks.com/topic/247288-mail-issue/#findComment-1269991 Share on other sites More sharing options...
AyKay47 Posted September 16, 2011 Share Posted September 16, 2011 so you don't receive a mail() error? what exact domain does not work? Quote Link to comment https://forums.phpfreaks.com/topic/247288-mail-issue/#findComment-1269995 Share on other sites More sharing options...
predator12341 Posted September 16, 2011 Author Share Posted September 16, 2011 Nope there is no error returned it states that it sent it correctly the domain is i-heatservices.co.uk Quote Link to comment https://forums.phpfreaks.com/topic/247288-mail-issue/#findComment-1270061 Share on other sites More sharing options...
predator12341 Posted September 16, 2011 Author Share Posted September 16, 2011 Its ok people. The issue was with the virtual host and how it directed mx records. made the correction and it now works fine. (I did have a feeling, it was going to be something like that) btw this happened as the server thought the email was on the local box it was trying to send it to, so it does not send it and instead tries to just pass it along to the required service. But, the email is in-fact hosted on a google app's account and therefore once you disable the setting on the server it works fine. Quote Link to comment https://forums.phpfreaks.com/topic/247288-mail-issue/#findComment-1270075 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.