Welcome Guest, Not a member yet? Register   Sign In
Mail sending error, please help me out
#4

[eluser]ivantcholakov[/eluser]
[quote author="noideawhattotypehere" date="1375266466"]Isnt gmails smtp port 587? At least thats what im using with ssmtp...[/quote]

A Gmail configuration example, using port 587:

application/config/email.php:

Code:
<?php defined('BASEPATH') OR exit('No direct script access allowed.');

$config['useragent'] = 'PHPMailer'; // Mail engine switcher: 'CodeIgniter' or 'PHPMailer'
$config['protocol']         = 'smtp';                   // 'mail', 'sendmail', or 'smtp'
$config['mailpath']         = '/usr/sbin/sendmail';
$config['smtp_host']        = 'smtp.gmail.com';
$config['smtp_user']        = '[email protected]';
$config['smtp_pass']        = 'abcdefghijk';
$config['smtp_port']        = 587;
$config['smtp_timeout']     = 5;                        // (in seconds)
$config['smtp_crypto']      = 'tls';                    // '' or 'tls' or 'ssl'
$config['wordwrap']         = true;
$config['wrapchars']        = 76;
$config['mailtype']         = 'html';                   // 'text' or 'html'
$config['charset']          = 'iso-8859-1';
$config['validate']         = true;
$config['priority']         = 3;                        // 1, 2, 3, 4, 5
$config['crlf']             = "\n";                     // "\r\n" or "\n" or "\r"
$config['newline']          = "\n";                     // "\r\n" or "\n" or "\r"
$config['bcc_batch_mode']   = false;
$config['bcc_batch_size']   = 200;

These are the changed settings in comparison with the previously posted example:
$config['smtp_port'] = 587;
$config['smtp_crypto'] = 'tls';


Messages In This Thread
Mail sending error, please help me out - by El Forum - 07-26-2013, 01:44 AM
Mail sending error, please help me out - by El Forum - 07-27-2013, 08:05 PM
Mail sending error, please help me out - by El Forum - 07-31-2013, 03:27 AM
Mail sending error, please help me out - by El Forum - 07-31-2013, 06:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB