Sending email with gmail smtp with codeigniter email library

后端 未结 8 2186
情书的邮戳
情书的邮戳 2020-11-22 06:29
load->library(\'email\');
    }

    func         


        
8条回答
  •  不思量自难忘°
    2020-11-22 07:11

    Another option I have working, in a linux server with Postfix:

    First, configure CI email to use your server's email system: eg, in email.php, for example

    # alias to postfix in a typical Postfix server
    $config['protocol'] = 'sendmail'; 
    $config['mailpath'] = '/usr/sbin/sendmail'; 
    

    Then configure your postfix to relay the mail to google (perhaps depending on the sender address). You'll probably need to put you user-password settings in /etc/postfix/sasl_passwd (docs)

    This is much simpler (and less fragmente) if you have a linux box, already configured to send some/all of its outgoing emails to Google.

提交回复
热议问题