Jump to content

my mail() function does not work


mrmossel

Recommended Posts

ive paid for my hosting but the mail() function does not seem to work... i am trying to make a form....

 

this is the complete file:

<?php

$to = '[email protected]';

$subject = $_REQUEST['quote'];

$email = $_REQUEST['email'] ;

$message = $_REQUEST['comments'] ;

$headers = '$email';

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

if($sent)

{print "Your mail was sent successfully"; }

else

{print "We encountered an error sending your mail"; }

?>

 

can anyone help PLEASE?!!!

thank you...

Link to comment
https://forums.phpfreaks.com/topic/68403-my-mail-function-does-not-work/
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.