logicours44
New Member
- Messages
- 1
- Reaction score
- 0
- Points
- 0
hi,
I am unable to send a mail via the php function mail(). Is it possible? How?
my code is
<?php
$headers ='From: "nom"<adresse@fai.fr>'."\n";
$headers .='Reply-To: adresse_de_reponse@fai.fr'."\n";
$headers .='Content-Type: text/plain; charset="iso-8859-1"'."\n";
$headers .='Content-Transfer-Encoding: 8bit';
if(mail('logicours@live.fr', 'Sujet', 'Message de test', $headers))
{
echo 'yes';
}
else
{
echo 'no';
}
?>
I am unable to send a mail via the php function mail(). Is it possible? How?
my code is
<?php
$headers ='From: "nom"<adresse@fai.fr>'."\n";
$headers .='Reply-To: adresse_de_reponse@fai.fr'."\n";
$headers .='Content-Type: text/plain; charset="iso-8859-1"'."\n";
$headers .='Content-Transfer-Encoding: 8bit';
if(mail('logicours@live.fr', 'Sujet', 'Message de test', $headers))
{
echo 'yes';
}
else
{
echo 'no';
}
?>