Search code examples
codeigniteremailsmtpcodeigniter-2codeigniter-email

Send email using SMTP without Username & Password


I am trying to send an email using SMTP without username & password as below:

var $smtp_host = "*****";  // SMTP Server. 

var $smtp_user = "";  // SMTP Username

var $smtp_pass = '';  // SMTP Password

var $smtp_port = "443";  // SMTP Port 25, 587

So is it possible to send email with this config setting?


Solution

  • You will always need username and password. please read about smtp... PHPmailer would be helpful if your using codeigniter

    https://github.com/PHPMailer/PHPMailer/wiki/Tutorial