Hi
Im trying to set up a really super simple email contact form, but every time I send a test email it comes up with Warning: mail(): Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in …. The email it’s meant to be sending to is a gmail account. The instructions I had to build the form originally were really simple and never mentioned anything to do with a php.ini or ini_set() so maybe its just the lack of those that’s causing the problem???
My code so far is:
[php]<?php ini_set("error_reporting",E_ALL &~E_NOTICE); ?>
Contact Number: $phone
Message: $notes
From: $visitor ($visitoremail)"; $from = "From: $visitoremail"; mail($mail, $subject, $message, $from); $mail="[email protected]"; ?>
Thank You : <?php echo $visitor ?> ( <?php echo $visitoremail ?> )
Contact Number: <?php echo $phone ?>
Attention: <?php echo $attn ?>
Message:
<?php echo $notes ?>
Any help would really be appreciated