FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
|
#1
|
||||
|
||||
Hola el error es el siguienete.
No se puede enviar el correo a los siguientes destinatarios: CORREO el error es provocado por SMTP su conexion siempre marca error, si lo pudieras correr seria de mucha ayuda los datos puestos son los de verdad ya que este archivo fue echo pára prueba de eso q son datos correctos. |
#2
|
|||
|
|||
HOLA aams01
Mira yo solucione lo del e-mail de la siguiente manera:
Código:
<?php require_once("vcl/vcl.inc.php"); //Inclusiones use_unit("comctrls.inc.php"); use_unit("Zend/zmail.inc.php"); use_unit("forms.inc.php"); use_unit("extctrls.inc.php"); use_unit("stdctrls.inc.php"); //Definición de clase class Unidad4 extends Page { public $Edit1 = null; public $ZMailTransportSendmail1 = null; public $zmCustom = null; public $zmtSMTP = null; public $reBody = null; public $edSubject = null; public $Label5 = null; public $cbIncludeAttachments = null; public $cbPlainTextOnly = null; public $meBcc = null; public $Label4 = null; public $meCC = null; public $Label3 = null; public $Label2 = null; public $meTo = null; public $edFrom = null; public $Label1 = null; public $Button1 = null; function zmCustomCustomizeAttachment($sender, $params) { $result=array(); list($key, $attachment)=each($params); if ($attachment=='mail.php') { $result['mimetype']=Zend_Mime::TYPE_TEXT; $result['disposition']=Zend_Mime::DISPOSITION_INLINE; } return($result); } function Button1Click($sender, $params) { $this->zmtSMTP->Host=$this->Edit1->Text; $this->zmCustom->FromEmail=$this->edFrom->Text; $this->zmCustom->Subject=$this->edSubject->Text; $this->zmCustom->BodyText=strip_tags($this->reBody->Text); if (!$this->cbPlainTextOnly->Checked) $this->zmCustom->BodyHTML=$this->reBody->Text; else $this->zmCustom->BodyHTML=''; if (count($this->meTo->Lines)>=1) $this->zmCustom->To=array_combine($this->meTo->Lines, array_fill(0,count($this->meTo->Lines),"")); if (count($this->meCC->Lines)>=1) $this->zmCustom->Cc=array_combine($this->meCC->Lines, array_fill(0,count($this->meCC->Lines),"")); if (count($this->meBcc->Lines)>=1) $this->zmCustom->Bcc=array_combine($this->meBcc->Lines, array_fill(0,count($this->meBcc->Lines),"")); if ($this->cbIncludeAttachments->Checked) { $this->zmCustom->Attachments=array(0=>'mail.php',1=>'mail.xml.php'); } else { $this->zmCustom->Attachments=array(); } $this->zmCustom->send(); } } ZMailTransportSendmail1 ZMailTransportSMTP: en sus propiedades tengo->Authentication:saLogin,host(lo que tienes en host),Username(nombre de tu usuario),UserPassword(Tu password). ZMail: en la propiedad Transport:va ligado con ZMailTransportSMTP. Espero te sea de ayuda. |
#3
|
||||
|
||||
Cita:
SMTP -> FROM SERVER:220 mx.google.com ESMTP wo11sm2454916icb.20 SMTP -> FROM SERVER: 250-mx.google.com at your service, [189.231.222.45] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250 ENHANCEDSTATUSCODES SMTP -> ERROR: AUTH not accepted from server: 530 5.7.0 Must issue a STARTTLS command first. wo11sm2454916icb.20 SMTP -> FROM SERVER:250 2.1.5 Flushed wo11sm2454916icb.20 SMTP -> FROM SERVER:530 5.7.0 Must issue a STARTTLS command first. wo11sm2454916icb.20 SMTP -> ERROR: MAIL not accepted from server: 530 5.7.0 Must issue a STARTTLS command first. wo11sm2454916icb.20 SMTP -> FROM SERVER:250 2.1.5 Flushed wo11sm2454916icb.20 Problemas enviando correo electrónico a dragondeagua01@gmail.com La(s) siguiente(s) direcciones de remitente fallaron: angel.mendez.saucedo@gmail.com |
#4
|
||||
|
||||
aams01,
Te pongo un ejemplo que uso: Código PHP:
También debes asegurarte que tu servidor tiene instalada la extensión openssl de php. // Saludos |
#5
|
||||
|
||||
Hola ya logre solucionar el problema era como tu decias Roman era cuestion de configurar el php.ini faltaba retirar ";" extension=php_openssl.dll
Dejo el archivo y su configuracion por si a alguien le ayuda, tomando encuenta que se utilizo la clase de phpmailer tal cual se descargo sin modificar, la cuenta gmail fue configurada en su seccion configuracion (Reenvío y correo POP/IMAP) Solamente Habilitar IMAP: Código PHP:
|
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Configuracion D4php | llonigualker | Internet | 0 | 03-03-2009 17:58:14 |
Emails, error de conexion en algunas PC | nfrfabian | Internet | 1 | 19-09-2007 17:03:29 |
d4php No funciona en la web | brandolin | PHP | 2 | 06-07-2007 18:57:20 |
enviar emails | jmlifi | Varios | 9 | 25-11-2005 21:16:37 |
Cadenas de emails | santana | Humor | 1 | 06-09-2004 16:38:00 |
|