mcollyns Posted April 1, 2010 Share Posted April 1, 2010 HI all I know, my first post and already begging for help. But the thing is, I have a wordpress site right, and in it a contact form using the php mail function to send mail. One one server it's all fine, but on another it's not working. I contacted the webhosts are suggested t them that it might be something in MXentry settings, but they refuse to believe that. They keep asking me what smtp settings I'm using and what email server has been specified. can anyone shed any light on it for me before I get back to them? thanks! mark Quote Link to comment https://forums.phpfreaks.com/topic/197228-help/ Share on other sites More sharing options...
Deoctor Posted April 1, 2010 Share Posted April 1, 2010 just u check these basic things first for that domain telnet <host name> 21 if this shows some error then that host cannot send mails ordinarily. if u are using an smtp server check whether the smtp server has any ip restrictions placed. Quote Link to comment https://forums.phpfreaks.com/topic/197228-help/#findComment-1035248 Share on other sites More sharing options...
JonnoTheDev Posted April 1, 2010 Share Posted April 1, 2010 The mail server should be on the webserver where you are hosting the site. The mail transer agent is probably sendmail or exim. It will have nothing to with your MX record. By the sounds of it they are trying to help you with sending mail from your own pc, not from your website. The first thing to check is the mail headers that are being used in php's mail() function. Some servers require additional switches or the mail will not go out. If you have a control panel on your hosting account I would assume you can access the mail log and see any errors. Quote Link to comment https://forums.phpfreaks.com/topic/197228-help/#findComment-1035249 Share on other sites More sharing options...
mcollyns Posted April 1, 2010 Author Share Posted April 1, 2010 The mail server should be on the webserver where you are hosting the site. The mail transer agent is probably sendmail or exim. It will have nothing to with your MX record. By the sounds of it they are trying to help you with sending mail from your own pc, not from your website. The first thing to check is the mail headers that are being used in php's mail() function. Some servers require additional switches or the mail will not go out. If you have a control panel on your hosting account I would assume you can access the mail log and see any errors. Cheers for the reply. yeah the website is in the same server. it's the place i work for to be honest and for some reason they have no access to the c-panel, only the people who run the entire server do. i asked for access to it, but haven't gotten anything back. i asked them to have a look at the mail log like you suggested. hoping that will show whatever problem it is. thanks for the help! Quote Link to comment https://forums.phpfreaks.com/topic/197228-help/#findComment-1035252 Share on other sites More sharing options...
JonnoTheDev Posted April 1, 2010 Share Posted April 1, 2010 If this is your companies server are you even sure that the mail server is running? Quote Link to comment https://forums.phpfreaks.com/topic/197228-help/#findComment-1035254 Share on other sites More sharing options...
mcollyns Posted April 1, 2010 Author Share Posted April 1, 2010 Btw, This is the message I got from them last: I’m not up to speed on php but like any application that wants to sendor receive email you must specify an email server. Are you aware of what email server has been specified? I'm not abel to answer the guy really. All I know is, I use the same wordpress theme, with the same wordpress plugin on another server and had no problems. But with this server I am. I can only think that its something to do with the php function. problem is that I can't explain anything well enough to this guy so he'll actually listen to me...any help? Quote Link to comment https://forums.phpfreaks.com/topic/197228-help/#findComment-1035255 Share on other sites More sharing options...
mcollyns Posted April 1, 2010 Author Share Posted April 1, 2010 If this is your companies server are you even sure that the mail server is running? No I'm not to be honest. is there anyway for me to check that without asking them ? Quote Link to comment https://forums.phpfreaks.com/topic/197228-help/#findComment-1035257 Share on other sites More sharing options...
mcollyns Posted April 1, 2010 Author Share Posted April 1, 2010 ok, just got this reply from them: Ok, I think I have got to the bottom of this. You are using php5 as oppose to php4. Php5 is now setup for an smtp relay through our smart host antispam2.barlan.ie Mark thought he already set this up. In your sendmail php file you will need to specify who the mail is being sent from Quote Link to comment https://forums.phpfreaks.com/topic/197228-help/#findComment-1035263 Share on other sites More sharing options...
mcollyns Posted April 1, 2010 Author Share Posted April 1, 2010 I'm still having problems with the mail not sending. what should I mail back to this guy at the webhost? ask for an error log? Quote Link to comment https://forums.phpfreaks.com/topic/197228-help/#findComment-1035270 Share on other sites More sharing options...
ignace Posted April 1, 2010 Share Posted April 1, 2010 I'm still having problems with the mail not sending. what should I mail back to this guy at the webhost? ask for an error log? Or a proffesional Quote Link to comment https://forums.phpfreaks.com/topic/197228-help/#findComment-1035272 Share on other sites More sharing options...
mcollyns Posted April 1, 2010 Author Share Posted April 1, 2010 I'm still having problems with the mail not sending. what should I mail back to this guy at the webhost? ask for an error log? Or a proffesional i'm bad, but not *that* bad mate :-\ Quote Link to comment https://forums.phpfreaks.com/topic/197228-help/#findComment-1035273 Share on other sites More sharing options...
ignace Posted April 1, 2010 Share Posted April 1, 2010 I was not referring to you Rather to the person from the hosting company. It's strange that they don't have an in-house professional that can deal with PHP problems as they are offering PHP hosting.. Quote Link to comment https://forums.phpfreaks.com/topic/197228-help/#findComment-1035278 Share on other sites More sharing options...
mcollyns Posted April 1, 2010 Author Share Posted April 1, 2010 I was not referring to you lol I didn't want to say it but thats excatly how I feel about these eejits Quote Link to comment https://forums.phpfreaks.com/topic/197228-help/#findComment-1035279 Share on other sites More sharing options...
mcollyns Posted April 1, 2010 Author Share Posted April 1, 2010 ok, still not working despite him saying that he sorted it. he's asking me to do something i never had to do on other servers with the same plugin: edit some php file to have a send address. anyone have an idea whats he's talking about? Quote Link to comment https://forums.phpfreaks.com/topic/197228-help/#findComment-1035287 Share on other sites More sharing options...
mcollyns Posted April 1, 2010 Author Share Posted April 1, 2010 i sorted it myself. sheesh! and we pay these people? thanks for all your help!!! Quote Link to comment https://forums.phpfreaks.com/topic/197228-help/#findComment-1035289 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.