Function.mail php
Résolu
hamza
-
Adri1infos Messages postés 628 Date d'inscription Statut Membre Dernière intervention -
Adri1infos Messages postés 628 Date d'inscription Statut Membre Dernière intervention -
Bonjour tout le monde
S'il vous plait c quoi la solution a ce probleme,verifier smtp mais comment ??
Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "smtp.gmail.ma" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\association\edit.php on line 12
voila mon code et merci
<?php
ini_set('SMTP','smtp.gmail.ma');
$to = '***@***';
$subject = 'le sujet';
$message = 'Bonjour !';
$headers = 'From: ***@***' . "\r\n" .
'Reply-To: ***@***' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
S'il vous plait c quoi la solution a ce probleme,verifier smtp mais comment ??
Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "smtp.gmail.ma" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\association\edit.php on line 12
voila mon code et merci
<?php
ini_set('SMTP','smtp.gmail.ma');
$to = '***@***';
$subject = 'le sujet';
$message = 'Bonjour !';
$headers = 'From: ***@***' . "\r\n" .
'Reply-To: ***@***' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
A voir également:
- Function.mail php
- Easy php - Télécharger - Divers Web & Internet
- Expert php pinterest - Télécharger - Langages
- Retour a la ligne php - Forum Webmastering
- Alert php - Forum PHP
- Retour a la ligne php ✓ - Forum PHP
je lai change mais malheureusement :/ . ca fonctionne pas :(
Après tu peux l'insérer dans n'importe quelle page php.
merci