
xandehenrique
(usa Ubuntu)
Enviado em 15/09/2016 - 08:19h
Olá Lucas,obrigado pela ajuda,mas esqueci de mencionar,eu estou configurando um painel(CSPADM),e dentro do diretório cspadm possui o diretório PHPMailer_v5.1,que possui já os arquivos class.phpmailer.php e class.smtp.php,seriam estes arquivos que deveria estar editando?Vou colocar abaixo o script editado por mim para vc dar uma olhada.Vou colocar somente a parte que editei pois o script é grande.
/////////////////////////////////////////////////
// PROPERTIES FOR SMTP
/////////////////////////////////////////////////
/**
* Sets the SMTP hosts. All hosts must be separated by a
* semicolon. You can also specify a different port
* for each host by using this format: [hostname:port]
* (e.g. "smtp1.example.com:25;smtp2.example.com").
* Hosts will be tried in order.
* @var string
*/
public $Host = 'localhost';
/**
* Sets the default SMTP server port.
* @var int
*/
public $Port = 25;
/**
* Sets the SMTP HELO of the message (Default is $Hostname).
* @var string
*/
public $Helo = 'smtp.gmail.com';
/**
* Sets connection prefix.
* Options are "", "ssl" or "tls"
* @var string
*/
public $SMTPSecure = '587';
/**
* Sets SMTP authentication. Utilizes the Username and Password variables.
* @var bool
*/
public $SMTPAuth = false;
/**
* Sets SMTP username.
* @var string
*/
public $Username = 'meuemail@gmail.com';
/**
* Sets SMTP password.
* @var string
*/
public $Password = 'senha do meu email';
/**
* Sets the SMTP server timeout in seconds.
* This function will not work with the win32 version.
* @var int
*/
public $Timeout = 10;
/**
* Sets SMTP class debugging on or off.
* @var bool
*/
public $SMTPDebug = false;
/**
* Prevents the SMTP connection from being closed after each mail
* sending. If this is set to true then to close the connection
* requires an explicit call to SmtpClose().
* @var bool
*/
public $SMTPKeepAlive = false;
/**
Desde já agradeço.