Mail()
elhem.
Messages postés
30
Date d'inscription
Statut
Membre
Dernière intervention
-
nag95 Messages postés 22 Date d'inscription Statut Membre Dernière intervention -
nag95 Messages postés 22 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
je suis bloqué ,je ne trouve pas une solution pour envoyer un mail je toujours cette erreur "Warning: mail() [<a href='function.mail'>function.mail</a>]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. q13sm3556899wie.0 - gsmtp in C:\wamp\www\php\mail.php on line 5" et voilà le code :
<?php
$sujet = 'Sujet de l\'email';
$message = "Bonjour,Ceci est un message texte envoyé grâce à php.merci ;)";
$to = 'elhemghanney@gmail.com';
mail($to, $sujet, $message);
?>
et un extrait de php.ini:
[mail function]
; For Win32 only.
; https://www.php.net/manual/en/mail.configuration.php#ini.smtp
SMTP = smtp.gmail.com
; https://www.php.net/manual/en/mail.configuration.php#ini.smtp-port
smtp_port = 25
; For Win32 only.
; https://www.php.net/manual/en/mail.configuration.php#ini.sendmail-from
sendmail_from = elhemghanney@gmail.com
svp aidez moi c'est urgent .merci d'avance .
je suis bloqué ,je ne trouve pas une solution pour envoyer un mail je toujours cette erreur "Warning: mail() [<a href='function.mail'>function.mail</a>]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. q13sm3556899wie.0 - gsmtp in C:\wamp\www\php\mail.php on line 5" et voilà le code :
<?php
$sujet = 'Sujet de l\'email';
$message = "Bonjour,Ceci est un message texte envoyé grâce à php.merci ;)";
$to = 'elhemghanney@gmail.com';
mail($to, $sujet, $message);
?>
et un extrait de php.ini:
[mail function]
; For Win32 only.
; https://www.php.net/manual/en/mail.configuration.php#ini.smtp
SMTP = smtp.gmail.com
; https://www.php.net/manual/en/mail.configuration.php#ini.smtp-port
smtp_port = 25
; For Win32 only.
; https://www.php.net/manual/en/mail.configuration.php#ini.sendmail-from
sendmail_from = elhemghanney@gmail.com
svp aidez moi c'est urgent .merci d'avance .
A voir également:
- Mail()
- Publipostage mail - Accueil - Word
- Windows live mail - Télécharger - Mail
- Créer une adresse mail hotmail - Guide
- Comment télécharger un mail - Guide
- Cegetel mail ✓ - Forum Mail