Bonjour,
J'ai un petit soucis avec ma fonction mail(), je souhaiterais envoyer un email à une personne et envoyer aussi cet email à 4 autres personnes en Bcc.
Lorsque j'execute le script, la fonction mail me retourne bien OK mais aucun email n'est envoyé.
Je ne vois vraiment pas d'où vient le probleme.
Merci pour votre aide :
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 $headers = "From: Nom<contact@domaine.com>\n"; $headers .= "Reply-To: contact@domaine.com\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: text/html; charset=\"iso-8859-1\";\n"; $headers .= "Return-Path: contact@domaine.com\n"; $headers .= "Bcc: c1@domaine.com, c2@domaine.com, c3@domaine.com \n"; if ( mail('contact@domaine.com', 'sujet', 'corps', $headers) ) { echo 'OK'; } else { echo 'Problème'; }