Looking for a JavaEE Architect or Potential Tech Co-Founder?
Please don't hesitate to contact me.

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 have to change protocol into smtp:

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
Send email using Codeigniter in 1and1 server Send email using Codeigniter in 1and1 server Reviewed by Edward Legaspi on Friday, November 12, 2010 Rating: 5

No comments:

Powered by Blogger.