Mail automatique
samof02
Messages postés
51
Statut
Membre
-
samof02 Messages postés 51 Statut Membre -
samof02 Messages postés 51 Statut Membre -
Bonjour,
Je voulais envoyer un mail automatique, mais j'arrive pas à envoyer à cause de cet probleme. Il m'affiche : "
Your message was not sent: authentication failure [SMTP: SMTP server does not support authentication (code: 250, response: BLU0-SMTP66.blu0.hotmail.com Hello [62.212.120.16] TURN SIZE 35840000 ETRN PIPELINING DSN ENHANCEDSTATUSCODES 8bitmime BINARYMIME CHUNKING VRFY TLS STARTTLS OK)]"
Par contre j'ai bien configure mon server local :
[mail function]
; For Win32 only.
SMTP = smtp.live.com
smtp_port = 25
; For Win32 only.
sendmail_from = optimacarlton@live.fr
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = optimacarlton@live.fr
Et je comprends pas d'où le problème viennent.
Je voulais envoyer un mail automatique, mais j'arrive pas à envoyer à cause de cet probleme. Il m'affiche : "
Your message was not sent: authentication failure [SMTP: SMTP server does not support authentication (code: 250, response: BLU0-SMTP66.blu0.hotmail.com Hello [62.212.120.16] TURN SIZE 35840000 ETRN PIPELINING DSN ENHANCEDSTATUSCODES 8bitmime BINARYMIME CHUNKING VRFY TLS STARTTLS OK)]"
Par contre j'ai bien configure mon server local :
[mail function]
; For Win32 only.
SMTP = smtp.live.com
smtp_port = 25
; For Win32 only.
sendmail_from = optimacarlton@live.fr
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = optimacarlton@live.fr
Et je comprends pas d'où le problème viennent.
A voir également:
- Mail automatique
- Réponse automatique thunderbird - Guide
- Windows live mail - Télécharger - Mail
- Réponse automatique gmail - Guide
- Sommaire automatique word - Guide
- Comment télécharger un mail - Guide
5 réponses
pas trop compris la question ? mail automatique ?
réponse automatique ou envoyer des mails déjà prêts ???
réponse automatique ou envoyer des mails déjà prêts ???
ceci est mon code qui permet d'envoyer le mail
/***************************MAIL.PHP************************/
<?php
ini_set( "include_path", "C:\wamp\bin\php\php5.2.9-1\PEAR");
include('Mail.php');
include('Mail/mime.php');
// Adresse de l'expéditeur
$sender = "<optimacarlton@live.fr>"; // Your email address
// Adresse du destinataire
$recipient = "<samof02@gmail.com>"; // The Recipients name and email address
$subject = "Merci de votre visite"; // Subject for the email
$text = 'L\'hôtel machin vous remercie de votre visite.'; // Text version of the email
$html = '<html><body><p>L\'hôtel machin vous remercie de votre visite.</p></body></html>'; // HTML version of the email
$crlf = "\n";
$headers = array('From' => "Hotel machin ".$sender, 'Return-Path' => $sender, 'Subject' => $subject);
// Creating the Mime message
$mime = new Mail_mime($crlf);
// Setting the body of the email
$mime->setTXTBody($text);
$mime->setHTMLBody($html);
// Set body and headers ready for base mail class
$body = $mime->get();
$headers = $mime->headers($headers);
// SMTP authentication params
$smtp_params["host"] = "smtp.live.com";
$smtp_params["port"] = "25";
$smtp_params["auth"] = true;
$smtp_params["username"] = "optimacarlton@live.fr";
$smtp_params["password"] = "miagecarlton";
// Sending the email using smtp
$mail =& Mail::factory("smtp", $smtp_params);
$result = $mail->send($recipient, $headers, $body);
if(!Pear::isError($result))
{
echo("Your message has been sent!");
}
else
{
echo("Your message was not sent: " . $result);
}
?>
/****************************************************************************/
/***************************MAIL.PHP************************/
<?php
ini_set( "include_path", "C:\wamp\bin\php\php5.2.9-1\PEAR");
include('Mail.php');
include('Mail/mime.php');
// Adresse de l'expéditeur
$sender = "<optimacarlton@live.fr>"; // Your email address
// Adresse du destinataire
$recipient = "<samof02@gmail.com>"; // The Recipients name and email address
$subject = "Merci de votre visite"; // Subject for the email
$text = 'L\'hôtel machin vous remercie de votre visite.'; // Text version of the email
$html = '<html><body><p>L\'hôtel machin vous remercie de votre visite.</p></body></html>'; // HTML version of the email
$crlf = "\n";
$headers = array('From' => "Hotel machin ".$sender, 'Return-Path' => $sender, 'Subject' => $subject);
// Creating the Mime message
$mime = new Mail_mime($crlf);
// Setting the body of the email
$mime->setTXTBody($text);
$mime->setHTMLBody($html);
// Set body and headers ready for base mail class
$body = $mime->get();
$headers = $mime->headers($headers);
// SMTP authentication params
$smtp_params["host"] = "smtp.live.com";
$smtp_params["port"] = "25";
$smtp_params["auth"] = true;
$smtp_params["username"] = "optimacarlton@live.fr";
$smtp_params["password"] = "miagecarlton";
// Sending the email using smtp
$mail =& Mail::factory("smtp", $smtp_params);
$result = $mail->send($recipient, $headers, $body);
if(!Pear::isError($result))
{
echo("Your message has been sent!");
}
else
{
echo("Your message was not sent: " . $result);
}
?>
/****************************************************************************/
pour l'envoie de mails déja prêt il e faut un répondeur ,et ce répondeur il faut le paramètrer !
si tu veux des adresses de répondeur fais le savoir !
si tu veux des adresses de répondeur fais le savoir !
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question