I'm working on a Project in Codeigniter which follows MVC pattern, I've created a Model to send Verification Email to my Website's Signed Up members. the code is working perfectly using Google's SMTP on localhost
but now the site is LIVE and I don't know about protocols and Web-mail, as I'm new to this..
the localhost
code is here:
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.googlemail.com',
'smtp_port' => 465,
'smtp_user' => 'My Mail',
'smtp_pass' => 'My Password',
'mailtype' => 'html',
'charset' => 'iso-8859-1',
'wordwrap' => TRUE
);
now what are the changes needed to use it through Web Mail CPanel??
In your webmail settings you will find smtp settings. Ports will be same in major case. you need to change host, username and password as per your new server.
There will be link "Configure Mail Client" in email section in case you are using standard cPanel setup and customization is not done by your hosting provider
Ok, Here are the direct steps.
'smtp_host' => 'ssl://smtp.googlemail.com', //this will be given on cpanel
'smtp_port' => 465, //this will be given on cpanel
'smtp_user' => 'My Mail', // This will be email provided by your host so, [email protected]
'smtp_pass' => 'My Password' // password for [email protected]
PS: You can also use gmail settings that you are already using if it is your own site.