Send email using Codeigniter in 1and1 server
I get a timeout at first try. Using the default mail type from codeigniter will not, to use the built in email feature from codeigniter we h...

Like this:
$config['mailtype'] = 'html';
$config['protocol'] = 'smtp';
$config['smtp_host'] = "smtp.1and1.com";
$config['smtp_user'] = "support@yourdomain.com";
$config['smtp_pass'] = 'yourpassword';
$config['crlf'] = "\r\n";
$config['newline'] = "\r\n";
$config['smtp_port'] = 587 ; //because we're using SSL
For the list of 1and1 mail protocol:
POP:
host: pop.1and1.com
port: 110
port: 995, SSL
IMAP:
host: imap.1and1.com
port: 143
port: 993, SSL
SMTP:
host: smtp.1and1.com (requires authentication)
port: 25
port: 587, SSL
Post a Comment