[mail function] ; For Win32 only. ; http://php.net/smtp SMTP = smtp.live.com ; http://php.net/smtp-port smtp_port = 25 ; For Win32 only. ; http://php.net/sendmail-from sendmail_from = fmpf_stage@hotmail.fr
fichiertestmail.php <?php $to = 'fmpf_stage@hotmail.fr'; $subject = 'le sujet'; $message = 'Bonjour !'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question