Welcome Guest, Not a member yet? Register   Sign In
Sending EMail From Code Igniter 2.0.1
#13

[eluser]InsiteFX[/eluser]
Just test and this works so here is the code everyone, you will need to associate your email client for .eml files but it will show up in the mail server folder. I include a print_debugger in the view file which will show you the email!

Email.php - application/config/email.php
Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|-------------------------------------------------------------------------
| Name: email.php
|-------------------------------------------------------------------------
|
|-------------------------------------------------------------------------
*/

$config['useragent']    = "CodeIgniter";    // The "user agent". ( None )
$config['protocol']        = "mail";            // The mail sending protocol. ( mail, sendmail, or smtp )
$config['mailpath']        = "";                // The server path to Sendmail. ( None )

$config['smtp_host']    = "";                // SMTP Server Address. ( None )
$config['smtp_user']    = "";                // SMTP Username. ( None )
$config['smtp_pass']    = "";                // SMTP Password. ( None )
$config['smtp_port']    = "";                // SMTP Port. ( None )
$config['smtp_timeout']    = 5;                // SMTP Timeout (in seconds). ( None )

$config['wordwrap']        = TRUE;                // Enable word-wrap. ( TRUE or FALSE (boolean) )
$config['wrapchars']    = "76";                // Character count to wrap at. ( None )

$config['mailtype']        = "html";            // Type of mail. If you send HTML email you must send it as a complete web page. ( text or html )
                                            // Make sure you don't have any relative links or relative image paths otherwise they will not work.

$config['charset']        = "utf-8";            // Character set (utf-8, iso-8859-1, etc.). ( None )
$config['validate']        = FALSE;            // Whether to validate the email address. ( TRUE or FALSE (boolean) )
$config['priority']        = "3";                // Email Priority. 1 = highest. 5 = lowest. 3 = normal. ( 1, 2, 3, 4, 5 )
$config['crlf']            = "\r\n";            // Newline character. (Use "\r\n" to comply with RFC 822). ( "\r\n" or "\n" or "\r" )
$config['newline']        = "\r\n";            // Newline character. (Use "\r\n" to comply with RFC 822). ( "\r\n" or "\n" or "\r" )

$config['bcc_batch_mode']    = FALSE;        // Enable BCC Batch Mode. ( TRUE or FALSE (boolean) )
$config['bcc_batch_size']    = 200;            // Number of emails in each BCC batch. ( None )


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

InsiteFX


Messages In This Thread
Sending EMail From Code Igniter 2.0.1 - by El Forum - 03-30-2011, 11:21 PM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 03-31-2011, 03:12 AM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 03-31-2011, 10:02 PM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-01-2011, 04:51 AM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-01-2011, 05:31 AM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-01-2011, 05:39 AM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-01-2011, 11:18 PM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-02-2011, 01:07 AM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-02-2011, 10:33 AM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-02-2011, 03:09 PM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-02-2011, 08:41 PM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-02-2011, 09:18 PM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-02-2011, 09:57 PM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-02-2011, 09:59 PM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-02-2011, 10:00 PM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-02-2011, 11:01 PM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-02-2011, 11:47 PM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-02-2011, 11:52 PM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-03-2011, 12:16 AM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-03-2011, 06:06 AM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-03-2011, 03:31 PM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-03-2011, 07:43 PM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-03-2011, 10:52 PM
Sending EMail From Code Igniter 2.0.1 - by El Forum - 04-04-2011, 01:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB