Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/197228-help/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/197228-help/#findComment-1035249
Share on other sites

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!

Link to comment
https://forums.phpfreaks.com/topic/197228-help/#findComment-1035252
Share on other sites

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?

Link to comment
https://forums.phpfreaks.com/topic/197228-help/#findComment-1035255
Share on other sites

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

 

 

Link to comment
https://forums.phpfreaks.com/topic/197228-help/#findComment-1035263
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.