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
Share on other sites

Yeah the 'to' field is already defined as a variable (ie $toAddress = "someone@domain.com"). 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
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.