PHP Mail

Status
Not open for further replies.

leigh_rendle38

New Member
Messages
20
Reaction score
0
Points
0
Is the Php mail function still working with free accounts as I am unable to get my script to run properly.

If it is still available to use with the free hosting would some one please offer me some help, this would be greatly appreciated. thank you.
 
Last edited:

stpvoice

Community Support Rep
Community Support
Messages
5,987
Reaction score
212
Points
63
Hello,

php mail() should be working correctly on your server. Please note that:
a) there are known issues with sending to Windows Live addresses because of past abuse
b) the content-type header must be present and set to text/plain.

Thanks.
 

leigh_rendle38

New Member
Messages
20
Reaction score
0
Points
0
Please will some one tell me why this is not working on this server ?


<?php

$to = "leigh_rendle@blueyonder.co.uk";

$subject = "Web Contact";

$email = $_REQUEST['Email'] ;
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $email";

$message = $_REQUEST['Enqiury'] ;

$sex = $_REQUEST['Sex'] ;

$firstname = $_REQUEST['Firstname'] ;

$Surname = $_REQUEST['Surname'] ;

$country = $_REQUEST['Country'] ;

$type = $_REQUEST['Type'] ;



$body ="

From:$sex $firstname $Surname \r

Email: $email \r

Country: $country \r

Your Enqiury: $type \r

Message: $message \n

" ;

$sent = mail($to, $subject, $body, $headers) ;


if($sent)

echo

Do this or that

Thank you
 
Last edited:
Status
Not open for further replies.
Top