How to 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...
https://www.czetsuyatech.com/2021/07/web-send-email-using-codeigniter.html
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 SSLFor 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