Dear All
First post here-looks like a great site
Anyway, I have a form that i have successfully used on 3 sites. On site number 4 it doesn't want to work.
Here is the basic code -
//create the message:
$message = 'email message from '.$first_name.' '.$last_name."\n";
$message .='contact phone (if left) '.$phone."\n";
$message .='email address = '.$email_one."\n\n\n";
$message .='Enquiry = '.$comment;"\n";
$to = "edward@x.x.co.uk";
$subject = "Enquiry from lea Valley High School Website";
$headers = "From: ".$email_one;
- which is a bit newbie, but then I am!
Anyway, the host tells me that I need to add a relay and gave me an line to add.
I have put it thus:
//set the ini file to deal with SMTP
[COLOR="Red"]ini_set("SMTP","inbound1.equinoxit.net");[/COLOR]
//create the message:
$message = 'email message from '.$first_name.' '.$last_name."\n";
$message .='contact phone (if left) '.$phone."\n";
$message .='email address = .....
I now get the following error message.
PHP Warning: mail(): SMTP server response: 550 Relaying not permitted (3.7):
What should I do? Is it a problem with the server - they tell me to set up a relay and then their server says "Sorry, no relays here" or is it that I have set it up wrong?
Any helkp would be greately appreciated
thanks in advance
Edward