 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
chifliiiii
Joined: 02 May 2008 Posts: 3
|
Posted: Fri May 23, 2008 1:01 pm Post subject: Pear mail and Gmail -- Or how to pop before smtp [HELP] |
|
|
Hello i´ve been trying to use a gmail account with pear without success . I always get the same error.
debug okDEBUG: Recv: 220 mx.google.com ESMTP d4sm5333148fga.4 DEBUG: Send: EHLO localhost DEBUG: Recv: 250-mx.google.com at your service, [87.218.227.97] DEBUG: Recv: 250-SIZE 28311552 DEBUG: Recv: 250-8BITMIME DEBUG: Recv: 250-AUTH LOGIN PLAIN DEBUG: Recv: 250 ENHANCEDSTATUSCODES DEBUG: Send: AUTH LOGIN DEBUG: Recv: 334 VXNlcm5hbWU6 DEBUG: Send: *****EDITED***** DEBUG: Recv: 334 UGFzc3dvcmQ6 DEBUG: Send: *****EDITED***** DEBUG: Recv: 235 2.7.0 Accepted DEBUG: Send: EHLO localhost DEBUG: Recv: 250-mx.google.com at your service, [87.218.227.97] DEBUG: Recv: 250-SIZE 28311552 DEBUG: Recv: 250-8BITMIME DEBUG: Recv: 250-AUTH LOGIN PLAIN DEBUG: Recv: 250 ENHANCEDSTATUSCODES DEBUG: Send: MAIL FROM: DEBUG: Recv: 530-5.5.1 Authentication Required. Learn more at DEBUG: Recv: 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 d4sm5333148fga.4 debug2
unable to set sender to [myemailaddress]
I use the following code
function mandaremail($de,$para,$sujeto,$mensaje){
require_once ("Mail/mime.php");
require_once "Mail.php";
$headers['From']=$de;
$headers['To'] =$para;
$headers['Subject']= $sujeto;
$crlf = "\n";
$mime = new Mail_mime($crlf);
$parametros['host']='ssl://smtp.gmail.com';
$parametros['port']=465;
$parametros['auth']=true;
$parametros['username']='****@gmail.com';
$parametros['password']='********';
$parametros['debug']=true;
$parametros['persist']=true;
$smtp =& Mail::factory('smtp',$parametros);
$mime->setHTMLBody($mensaje);
$body= $mime->get();
$headers=$mime->headers($headers);
$mail=$smtp->send($to, $headers, $body);
print 'debug2';
if (PEAR::isError($mail)) {
echo("<p>" . $mail->getMessage() . "</p>");
}
}
I tried with another email account but i get another problem
debug okDEBUG: Recv: 220 post.webmailer.de [klopstock mo18] ESMTP RZmta 16.38 ready; Fri, 23 May 2008 12:58:32 +0200 (MEST) DEBUG: Send: EHLO localhost DEBUG: Recv: 250-post.webmailer.de [klopstock mo18] greets localhost DEBUG: Recv: 250-ENHANCEDSTATUSCODES DEBUG: Recv: 250-8BITMIME DEBUG: Recv: 250-PIPELINING DEBUG: Recv: 250-DELIVERBY DEBUG: Recv: 250-SIZE 104857600 DEBUG: Recv: 250-AUTH PLAIN LOGIN CRAM-MD5 DEBUG: Recv: 250-STARTTLS DEBUG: Recv: 250 HELP DEBUG: Send: AUTH LOGIN DEBUG: Recv: 334 VXNlcm5hbWU6 DEBUG: Send: *****EDITED***** DEBUG: Recv: 334 *****EDITED***** DEBUG: Send: *****EDITED***** DEBUG: Recv: 235 2.0.0 OK Authenticated DEBUG: Send: EHLO localhost DEBUG: Recv: 250-post.webmailer.de [klopstock mo18] greets localhost DEBUG: Recv: 250-ENHANCEDSTATUSCODES DEBUG: Recv: 250-8BITMIME DEBUG: Recv: 250-PIPELINING DEBUG: Recv: 250-DELIVERBY DEBUG: Recv: 250-SIZE 104857600 DEBUG: Recv: 250-AUTH PLAIN LOGIN CRAM-MD5 DEBUG: Recv: 250-STARTTLS DEBUG: Recv: 250 HELP DEBUG: Send: MAIL FROM: DEBUG: Recv: 451 4.1.8 To send mail, first check your mail with a valid POP3 account; this prevents unauthorized spam relaying. debug2
This one is a strato email account .Reading the FAQS it says that if i check the "This smtp server requires auth" in outlook it will work without the pop3 login . Im suppose the auth=true is the same but for some reason is not working.
I appreciate any help i just need one of the accounts workings.
Thanks and hi from Spain |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|