ive been trying to create a form and use the mail() function to send out an email but I cant seem to get it to work.
$mail_header = "From: ".$name." <".$email.">\n"; $mail_header .= 'MIME-Version: 1.0' . "\r\n"; $mail_header .= "Content-Type: text/plain"; mail($mailto,$mail_subject,$text,$mail_header);
$mailto, $mail_subject, $text, are all gathered from the form. All variables are all defined but when I click my send button it runs the code and nothing sends. I think its not connecting to a server. Im not really sure how to work this function.
I was looking in the PHP.INI and I was just wondering if there is anything I need to setup in there for this to work?
; For Win32 only.
SMTP = localhost
smtp_port = 25
Thanks for any help