Welcome Guest, Not a member yet? Register   Sign In
Quick Email config File
#1

[eluser]taggedzi[/eluser]
I created a config file for email, based off the information found on the website. To save anyone the trouble hope it helps...

Only took a few min... but I decided to share.

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

/**
  *  Email Config Variables
  *
  *  These come directly from the documentation of Code Igniter 1.7.2 website.
  *  http://ellislab.com/codeigniter/user-guide/libraries/email.html
  *
  *  Var                Default             Options                     Description
  *  useragent            CodeIgniter        None                    The "user agent".
  *  protocol            mail                mail, sendmail, or smtp    The mail sending protocol.
  *  mailpath            /usr/sbin/sendmail  None                    The server path to Sendmail.
  *  smtp_host            No Default        None                    SMTP Server Address.
  *  smtp_user            No Default        None                    SMTP Username.
  *  smtp_pass            No Default        None                    SMTP Password.
  *  smtp_port            25                None                    SMTP Port.
  *  smtp_timeout       5                None                    SMTP Timeout (in seconds).
  *  wordwrap            TRUE                TRUE or FALSE (boolean)    Enable word-wrap.
  *  wrapchars            76                                        Character count to wrap at.
  *  mailtype            text                text or html            Type of mail. If you send HTML email you must send it as a complete web page. Make sure you don't have any relative links or relative image paths otherwise they will not work.
  *  charset            utf-8                                        Character set (utf-8, iso-8859-1, etc.).
  *  validate            FALSE                TRUE or FALSE (boolean)    Whether to validate the email address.
  *  priority            3                1, 2, 3, 4, 5            Email Priority. 1 = highest. 5 = lowest. 3 = normal.
  *  crlf             \n                 "\r\n" or "\n" or "\r"     Newline character. (Use "\r\n" to comply with RFC 822).
  *  newline            \n                 "\r\n" or "\n" or "\r"    Newline character. (Use "\r\n" to comply with RFC 822).
  *  bcc_batch_mode    FALSE                TRUE or FALSE (boolean)    Enable BCC Batch Mode.
  *  bcc_batch_size    200                None                    Number of emails in each BCC batch.
  *  
  */                      
$config['useragent']        = 'CodeIgniter';        
$config['protocol']         = 'mail';        
$config['mailpath']         = '/usr/sbin/sendmail';
$config['smtp_host']        = '';
$config['smtp_user']        = '';
$config['smtp_pass']        = '';
$config['smtp_port']        = 25;
$config['smtp_timeout']     = 5;
$config['wordwrap']         = TRUE;
$config['wrapchars']        = 76;
$config['mailtype']         = 'text';
$config['charset']          = 'utf-8';
$config['validate']         = FALSE;
$config['priority']         = 3;
$config['crlf']             = "\r\n";
$config['newline']          = "\r\n";
$config['bcc_batch_mode']   = FALSE;
$config['bcc_batch_size']   = 200;

/* End of file email.php */
/* Location: ./system/application/config/email.php */


Messages In This Thread
Quick Email config File - by El Forum - 03-20-2010, 10:10 PM
Quick Email config File - by El Forum - 05-13-2010, 05:52 PM
Quick Email config File - by El Forum - 07-30-2010, 05:27 PM
Quick Email config File - by El Forum - 12-20-2010, 03:20 AM
Quick Email config File - by El Forum - 05-11-2011, 08:24 PM
Quick Email config File - by El Forum - 05-31-2011, 09:02 PM
Quick Email config File - by El Forum - 08-19-2011, 02:29 PM
Quick Email config File - by El Forum - 06-21-2013, 12:51 AM
Quick Email config File - by El Forum - 07-17-2013, 11:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB