Try using SMTP to send email:-
$mail->IsSMTP();
$mail->Host = "smtp.example.com";
// optional
// used only when SMTP requires authentication
$mail->SMTPAuth = true;
$mail->Username="smtp_username";
$mail->Password = 'smtp_password';
More Related Contents:
- How do I prevent mails sent through PHP mail() from going to spam? [duplicate]
- PHPMailer – SMTP ERROR: Password command failed when send mail from my server
- PHPMailer: SMTP Error: Could not connect to SMTP host
- PHPMailer GoDaddy Server SMTP Connection Refused
- PHPMailer – SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
- PhpMailer vs. SwiftMailer? [closed]
- Could not instantiate mail function. Why this error occurring
- require(vendor/autoload.php): failed to open stream
- Send email with PHPMailer – embed image in body
- PHPMailer character encoding issues
- Setting up PHPMailer with Office365 SMTP
- Everytime my mail goes to spam in phpmailer
- phpMailer – How do you Remove Recipients
- Add attachment through PHPMailer
- phpmailer – The following SMTP Error: Data not accepted
- How to validate an email address in PHP
- How to check if an email address exists without sending an email?
- Sending email with gmail smtp with codeigniter email library
- How to send UTF-8 email?
- php mail() function on localhost
- Is there a PHP library for email address validation? [closed]
- SMTP connect() failed PHPmailer – PHP
- Expected response code 220 but got code “”, with message “” in Laravel
- How to change PHP’s eregi to preg_match [duplicate]
- How to use special characters in recipients name when using PHP’s mail function
- Proper prevention of mail injection in PHP
- How to send mail using PHP?
- Change the sender name php mail instead of [email protected]
- How to send multiple attachment in single mail in php
- Given an email as raw text, how can I send it using PHP?