Prb au niveau de fichier php.ini
adoula_007
-
chihi -
chihi -
Bonjour,
moi je travaille sur le local voici mon fichier php :
<?php
$recipient = 'snteran@hotmail.com';
$subject = 'Mail Test';
$message = 'Greetings,'
."\n\n\t".'This is a test of mail functionality.'
."\n\n".'Thanks';
$headers = 'From: snteran@hotmail.com'."\r\n"
.'Reply-To: snteran@hotmail.com'."\r\n";
if (mail($recipient, $subject, $message, $headers)) {
echo 'Mail Sent';
} else {
echo 'Mail NOT Sent';
}
?>
et il m'apparaitre le message d'erreur suivant:
Warning: mail() [function.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 C:\Program Files\EasyPHP 2.0b1\www\Mail\test.php on line 11
Mail NOT Sent
je sais qu'il fallait modifier le continu du fichier php.ini mais j'ignore cette phase, ou l'utilisation de ini_set(), merci de m'aider c'est urgent pour mon application
moi je travaille sur le local voici mon fichier php :
<?php
$recipient = 'snteran@hotmail.com';
$subject = 'Mail Test';
$message = 'Greetings,'
."\n\n\t".'This is a test of mail functionality.'
."\n\n".'Thanks';
$headers = 'From: snteran@hotmail.com'."\r\n"
.'Reply-To: snteran@hotmail.com'."\r\n";
if (mail($recipient, $subject, $message, $headers)) {
echo 'Mail Sent';
} else {
echo 'Mail NOT Sent';
}
?>
et il m'apparaitre le message d'erreur suivant:
Warning: mail() [function.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 C:\Program Files\EasyPHP 2.0b1\www\Mail\test.php on line 11
Mail NOT Sent
je sais qu'il fallait modifier le continu du fichier php.ini mais j'ignore cette phase, ou l'utilisation de ini_set(), merci de m'aider c'est urgent pour mon application
A voir également:
- Prb au niveau de fichier php.ini
- Fichier bin - Guide
- Fichier epub - Guide
- Fichier rar - Guide
- Comment réduire la taille d'un fichier - Guide
- Fichier .dat - Guide