Ver Mensaje Individual
  #9 (permalink)  
Antiguo 16/02/2010, 15:10
Avatar de Italico76
Italico76
 
Fecha de Ingreso: abril-2007
Mensajes: 3.303
Antigüedad: 17 años, 1 mes
Puntos: 292
Topcat y demas amigos: mi hosting me confirmó que estan en una "lista negra" y me sugirieron use Gmail con Google Applications y me dieron unas instrucciones..... que estoy tratando de seguir

He configurado todo viendo ejemplos pero sigue SIN funcionar en el sentido de que a MSN llega como basura y Yahoo no llega

Código PHP:
<?php
// para Gmail

require 'path/class.phpmailer.php';

try {
    
$mail = new PHPMailer(true); //New instance, with exceptions enabled
    
    
$body             "Mensaje inicial para ver como funka la clase phpmailer";        
    
$body             preg_replace('/\\\\/',''$body); //Strip backslashes

    
$mail->IsSMTP();                          
    
$mail->SMTPAuth   true;               
    
$mail->Port       465;                   // antes 25
    
$mail->Mailer "smtp";                  // agregada 
    
$mail->Host       "ssl://smtp.gmail.com";        // antes "localhost"
    
$mail->Username   "aaa";            
    
$mail->Password   "*****";              

    
$mail->IsSendmail();  // tell the class to use Sendmail

    
$mail->AddReplyTo("[email protected]","directorio");

    
$mail->From       "[email protected]";
    
$mail->FromName   "directorio";

    
$to "[email protected]";

    
$mail->AddAddress($to);

    
$mail->Subject  "Como estas amigo";

    
$mail->AltBody    "To view the message, please use an HTML compatible email viewer!"// optional, comment out and test
    
$mail->WordWrap   80// set word wrap

    
$mail->MsgHTML($body);

    
$mail->IsHTML(true); // send as HTML

    
$mail->Send();
    echo 
'Message has been sent.';
} catch (
phpmailerException $e) {
    echo 
$e->errorMessage();
}
?>
He puesto bien todas las entradas MX a los DNSs.. será que puede tardar ??? sera eso ?? o me falta algo en el script ?

Cita:
Hello,

Many e-mail providers such as Hotmail, AOL, Yahoo and most others use aggressive spam filtering technology, this technology has a higher rate of blocking genuine non-spam e-mail from sites or e-mail accounts on a shared-hosting server.

There are many reasons why an ISP or provider may block, flag or filter genuine e-mail and often, there is nothing you as the sender or we as the host can do to prevent this from occurring.

(...)

What is a site owner to do?

The best known and most highly recommended solution is to dispatch your e-mails through a third-party provider such as Google which has a higher probability of being received than any other provider.

E-mails received by Yahoo, AOL or Hotmail from Google are less likely to encounter a high filter rate as Google is considered a trusted provider and sender to each of these services and smaller providers or self-hosted services just cannot obtain the same level of trust and quality of e-mail delivery as Google.

How do you get started?

1) Create a Google Apps for Domains Standard account: http://google.com/a

2) Verify your account with Google

3) To set the MX records simply do the following...

- Login to cPanel
- Click on MX Entry next to the domain you are changing
- Remove any existing MX records for your domain
- Add ASPMX.L.GOOGLE.COM
- Set the Priority to 10
- Save it and that's it :)

4) Create your e-mail accounts with Google Apps and refer to Google Apps help documentation for assistance

5) Configure a special Gmail account (eg: noreply) for sending via scripts and enable it to send via POP/SMTP (help: http://tinyurl.com/popaccess)

6) Next in your script you would configure it for the following configuration or similar:

Use SMTP Server for E-mail: Yes
SMTP Server Address: ssl://smtp.gmail.com
SMTP Server Port: 465
Authentication Method: PLAIN
SMTP username: [email protected] (replace example.com with your Google Apps domain)
SMTP password: [Your E-mail Account password]


That's it really, in those six steps you have switched to Google Apps, created your e-mail accounts and learned how to send e-mail through Google Apps from your website scripts :)

Regards,
Support
pilucho: gracias.......voy a ver que son esos scripts

Aguien sabe que significa esto y como modifica el script (llamada a metodos)

Cita:
Authentication Method: PLAIN
__________________
Salu2!

Última edición por Italico76; 16/02/2010 a las 18:42