Jump to content

Mail() problems


WierdGoku

Recommended Posts

Hi,

 

I've written s acript that takes a name, email address, subject and body from a HTML form and uses the mail() function to send it to a pre-defined email address. Problem is is that it does not send it to the recipient and returns false. Any suggestions are greatly appreciated

 

The script is http://www.jqt-chinesemedicine.com/contact.php

The form is http://www.jqt-chinesemedicine.com/contact.html

and the phpinfo file is http://www.jqt-chinesemedicine.com/info.php

 

Thanks for your help

WierdGoku

Link to comment
https://forums.phpfreaks.com/topic/91559-mail-problems/
Share on other sites

Yeah the 'to' field is already defined as a variable (ie $toAddress = "[email protected]"). I'm not using a mysql database as it is only going to one address. I've checked the address and it seems to be correct but it's still not going anywhere.

 

the call to mail i'm using is:

 

if (mail ('$toName<$toAddress>', $subject, $message, 'From: $fromName<$fromAddress>'. "\r\n"))

 

php doesn't seem to be spilling out any errors but i'm unable to get into the server to change the config settings for that. there also doesn't seem to be any errors in the error log either  ???

Link to comment
https://forums.phpfreaks.com/topic/91559-mail-problems/#findComment-469067
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.