Category : smtp

This is my php code for sending email verification link to user account <?php // php mailer code starts $mail = new PHPMailer(true); $mail->IsSMTP(); // telling the class to use SMTP $mail->SMTPDebug = 0; $mail->SMTPAuth = true; $mail->SMTPSecure = "ssl"; $mail->Host = "smtp.domain.in"; $mail->Port = 25; $mail->Username = ‘[email protected]’; $mail->Password = ‘password’; $mail->SetFrom(‘[email protected]’, ‘Admin’); $mail->AddAddress($email); ..

Read more

I am trying to send HTml Mail using Codeigniter . The mail is sending fine But I got the result as follows $config = array( ‘protocol’ => ‘smtp’, ‘smtp_host’ => ‘ssl://smtp.googlemail.com’, ‘smtp_port’ => ‘465’, ‘smtp_user’ => ‘[email protected]’, ‘smtp_pass’ => ‘Mypassword’, ‘mailtype’ => ‘html’, ‘charset’ => ‘utf-8’, ‘newline’ => "rn", ‘priority’ => ‘1’ ); $this->load->library(’email’,$config); $this->email->set_newline("rn"); ..

Read more

PHPMailer 5.2.28 Running inside Zen Cart PHP based ecommerce system. I may be misunderstanding things but I’m stepping through PHPMailer when I accidentally mistype the host or port number and the useful error message that is created gets discarded before PHPMailer returns from Send(). The sequence of events is: Create PHPMailer instance with Host = ..

Read more

I have never received the following error when working with PHPMailer: 2021-11-23 03:10:20 SERVER -&gt; CLIENT: 535-5.7.8 Username and Password not accepted. 2021-11-23 03:10:20 SMTP ERROR: Password command failed: 535-5.7.8 Username and Password not accepted. I am indeed entering the correct username and password. Here is the code: <?php use phpmailerPHPMailerPHPMailer; require_once ‘../phpmailer/PHPMailer.php’; require_once ‘../phpmailer/SMTP.php’; ..

Read more

I am using Zoho SMTP Configuration DEFAULT_MAIL="gmail" MAIL_MAILER=smtp MAIL_HOST=smtp.zoho.com MAIL_PORT=587 [email protected] MAIL_PASSWORD=mina MAIL_ENCRYPTION=ssl MAIL_FROM_NAME=Test Sales when I give space in MAIL_FROM_NAME as "Test Sales" without quotes website goes down but mail is send successfully I tried with quotes also DEFAULT_MAIL="gmail" MAIL_MAILER=smtp MAIL_HOST=smtp.zoho.com MAIL_PORT=587 [email protected] MAIL_PASSWORD=mina MAIL_ENCRYPTION=ssl MAIL_FROM_NAME="Test Sales" I get below error message Connection could ..

Read more