Welcome Guest, Not a member yet? Register   Sign In
Problem send mail with Email class
#1

[eluser]joe_h[/eluser]
Hi boys, I have a problem, I try send mail with Email class but .. PROBLEM

A PHP Error was encountered
Severity: Notice
Message: fwrite() [function.fwrite]: send of 9 bytes failed with errno=10054 Se ha forzado la interrupciĆ³n de una conexiĆ³n existente por el host remoto.
Filename: libraries/Email.php
Line Number: 1846

My controller is:
Code:
$this->load->library('email');
  
$config['smtp_user'] = '[email protected]';
$config['smtp_pass'] = 'pass';
  
$this->email->initialize($config);

$this->email->from('[email protected]');
$this->email->to('[email protected]');
$this->email->subject('Email de Prueba');
$this->email->message('Probando la Clase Email.');
$this->email->send();
  
echo $this->email->print_debugger();

and config properties in Email class is:

Quote:var $useragent = "CodeIgniter";
var $mailpath = "/usr/sbin/sendmail"; // Sendmail path
var $protocol = "smtp"; // mail/sendmail/smtp
var $smtp_host = "10.18.1.3"; // SMTP Server. Example: mail.earthlink.net
var $smtp_user = ""; // SMTP Username
var $smtp_pass = ""; // SMTP Password
var $smtp_port = "465"; // SMTP Port
var $smtp_timeout = 5; // SMTP Timeout in seconds
var $smtp_crypto = "tls"; // SMTP Encryption. Can be null, tls or ssl.
var $wordwrap = TRUE; // TRUE/FALSE Turns word-wrap on/off
var $wrapchars = "76"; // Number of characters to wrap at.
var $mailtype = "text"; // text/html Defines email formatting
var $charset = "utf-8"; // Default char set: iso-8859-1 or us-ascii
var $multipart = "mixed"; // "mixed" (in the body) or "related" (separate)
var $alt_message = ''; // Alternative message for HTML emails
var $validate = FALSE; // TRUE/FALSE. Enables email validation
var $priority = "3"; // Default priority (1 - 5)
var $newline = "\n"; // Default newline. "\r\n" or "\n" (Use "\r\n" to comply with RFC 822)
var $crlf = "\n";

Please tell me something.... sorry for my english...




Theme © iAndrew 2016 - Forum software by © MyBB