/var/www/hkosl.com/ifapc/html_20210817/IFAPC2021/application/config/email.php


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
38
39
40
41
42
43
44
45
46
47
48
49
<?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';

//smtp
// $config['protocol']    = 'smtp';
// $config['smtp_host']    = 'smtp.mailtrap.io';
// $config['smtp_port']    = '587';
// $config['smtp_timeout'] = '7';
// $config['smtp_user']    = 'a966813d975be5';
// $config['smtp_pass']    = '9c3f21f940591c';

$config['protocol']    = 'smtp';
$config['smtp_host']    = 'smtp.sendgrid.net';
$config['smtp_port']    = '587';
$config['smtp_timeout'] = '7';
$config['smtp_user']    = 'hkosldeveloper';
$config['smtp_pass']    = 'hkOne@3189';

/*$config['protocol']    = 'smtp';
$config['smtp_host']    = 'smtp.mailtrap.io';
$config['smtp_port']    = '465';
$config['smtp_timeout'] = '7';
$config['smtp_user']    = '3165d93ccd00b0';
$config['smtp_pass']    = 'cbf21159427c09';*/

// $config['protocol']    = 'mail';
//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