Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8406027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:59:11+00:00 2026-06-09T22:59:11+00:00

I am using php mailer class to send email to my customers. But it

  • 0

I am using php mailer class to send email to my customers. But it failed with error:

Language string failed to load: recipients_failed example@gmail.com

If I change the values of $email_to and $email_from to the same email address, then the email is sent successful

This is my code for sending the email

$email_to = "example@gmail.com";
$email_subject = "bla bla";
$email_from = 'info@domain.com.vn';
$email_message = "hello there";

$mail = new PHPMailer();
$mail->CharSet="UTF-8";
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "mail.domain.com.vn"; // SMTP server
$mail->From = $email_from;
$mail->AddAddress($email_to);
$mail->AddReplyTo($email_from);     
$mail->Subject = $email_subject;
$mail->WordWrap = 100; 
$mail->Body = $htmlBody;
$mail->isHTML(true);
$mail->AltBody = $email_message;
if(!$mail->Send()){
   echo $mail->ErrorInfo; 
}

So it will always report error unless I change $email_to to info@domain.com.vn

Thank you,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:59:13+00:00Added an answer on June 9, 2026 at 10:59 pm

    Note : Please change the SMTP server setting to your own server.

    $your_email = "info@example.com";
    $your_smtp = "mail.example.com";
    $your_smtp_user = "info@example.com";
    $your_smtp_pass = "example_password";
    $your_website = "http://example.com";
    
    //get contact form details
    $name = $_POST['name'];
    $email = $_POST['email'];
    $url = $_POST['url'];
    $comments = $_POST['comments'];
    
    $response="Name: $name\nContents:\n$comments\n";
    
    $mail = new PHPmailer();
    $mail = $mail->SetLanguage("en", "phpmailer/language");
    $mail->From = $your_email;
    $mail->FromName = $your_website;
    $mail->Host = $your_smtp;
    $mail->Mailer   = "smtp";
    $mail->Password = $your_smtp_pass;
    $mail->Username = $your_smtp_user;
    $mail->Subject = "$your_website feedback";
    $mail->SMTPAuth  =  "true";
    $mail->Body = $response;
    $mail->AddAddress($your_email,"$your_website admin");
    $mail->AddReplyTo($email,$name);
    
    echo "<p>Thanks for your feedback, <em>$name</em>! We will contact you soon!</p>";
    if (!$mail->Send()) {
    echo "<p>There was an error in sending mail, please try again at a later time</p>";
    }
    
    $mail->ClearAddresses();
    $mail->ClearAttachments();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have send an email using php mailer class. mail was sending successfully but
I am using php mailer class to send multiple attachment mails. Two error are
When i try to send email using PHPMailer class I get this error :
As advised I have tried using PHP Mailer to send email attachments with a
I am using php mailer class. I am getting : SMTP Error: The following
I'm trying to send mail using phpMailer. It's my code: <?php require_once('phpmailer/class.phpmailer.php'); $mail =
I'm trying to accomplish the following, I'm sending a HTML email using PHP Mailer
I am trying to send email using mail() in php. I need the message
I am using mime_mailer.php to send emails. When I send email it shows the
I am trying to send email through gmail using PHPMailer_V5.1. Getting the following error,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.