1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/** * Codeigniter Email Library Setting * * Ref:https://www.codeigniter.com/user_guide/libraries/email.html * * Overriding Word Wrapping * * example: * {unwrap}a_long_link_that_should_not_be_wrapped.html{/unwrap} * */
//localhost //$config['protocol'] = 'mail'; //$config['protocol'] = 'sendmail';
//smtp $config['protocol'] = 'smtp'; $config['smtp_host'] = 'smtp.mailtrap.io'; $config['smtp_port'] = '465'; $config['smtp_timeout'] = '7'; $config['smtp_user'] = '5dad06ab71a26f'; $config['smtp_pass'] = '9c7615563f25fe';
//optional //$config['smtp_timeout'] = '5'; //$config['smtp_crypto'] = 'tls'; //$config['charset'] = 'utf-8'; //$config['priority'] = '3'; $config['newline'] = "\r\n"; $config['mailtype'] = 'html'; //text or html $config['validation'] = false; // bool whether to validate email or not
|