Welcome Guest, Not a member yet? Register   Sign In
sending emails using a web mail
#1

[eluser]osama[/eluser]
hi there ,
I want to use a web mail for sending and receiving mails on my site,
i know how to do this using gmail but i have a trouble to do it with my web mail ([email protected])

I'm using an email config file i don't know how to assign the right info you can see

$config['protocol']='smtp';
$config['smtp_host']='';
$config['smtp_port']=465;
$config['smtp_timeout']='30';
$config['smtp_user']='[email protected]';
$config['smtp_pass']='my password';
$config['charset']='utf-8';
$config['newline']="\r\n";

i don't know what to write in smtp_host because the web mail have many configurations like


Incoming Mail Server

Outgoing Mail Server

so which one i should use any help ?
#2

[eluser]solid9[/eluser]
You should be contacting the Server Admin of your host.
They will provide the right values for those config.
#3

[eluser]osama[/eluser]
[quote author="solid9" date="1350945012"]You should be contacting the Server Admin of your host.
They will provide the right value for those config.[/quote]

i can get those configuration values from c panel->email accounts->my chosen web mail configuration

but i do not know how to use them correctly
#4

[eluser]Beginers[/eluser]
You don't need to contact the Server admin to have a send mail. You try this code, this will work out even on local or live site.

Code:
$config = Array(
              'protocol' => 'smtp',
              'smtp_host' => 'ssl://smtp.googlemail.com',
              'validation'=>TRUE,
              'smtp_timeout'=>30,
              'smtp_port' => 465,
              'smtp_user' => '[email protected]', // your email
              'smtp_pass' => 'yourpassword', // your email password
              'mailtype' => 'html',
              'charset' => 'iso-8859-1',
              'wordwrap' => TRUE
            );
            
              $this->load->library('email', $config);
              $this->email->from('[email protected]','Title'); // change it to yours
              $this->email->to('[email protected]'); // change it to yours
              $this->email->subject('Title');
              $this->email->message('Your Message');
             $this->email->send();
#5

[eluser]osama[/eluser]
Thanks for reply

yes i know how to do it with gmail but i would like to know how to use a web mail like [email protected]

not a gmail account !
#6

[eluser]Beginers[/eluser]
ops sorry try to google it instead of posting it here. thousands of answers will appear surely.
#7

[eluser]NotDior[/eluser]
With cpanel your just doing a pop3 account...standard e-mail setup.




Theme © iAndrew 2016 - Forum software by © MyBB