WordPress.org

Forums

Multi-language Responsive Contact Form
Mail not working (3 posts)

  1. EfHa
    Member
    Posted 1 year ago #

    Problem

    mail is not working

    Cause

    multiple, 'From: ' header is incorrectly formatted and non-standard php environments have issues with the mail function. Mailing in these environments can often be solved by using a plugin like 'WP Mail SMTP' (https://wordpress.org/plugins/wp-mail-smtp/) but this requires the use of the wordpress wp_mail function by the plugin.

    Solution

    Edit 'ai-responsive-contact-form.php'.

    1. lines 459, 461 and 464:
      replace the 'mail(....' function calls with 'wp_mail(...'
    2. line 378, change
      $ai_headers .= "From:".get_bloginfo('name')." ".$ai_emailadmin."\n";

      to

      $ai_headers .= "From:".get_bloginfo('name')." <".$ai_emailadmin.">\n";
    3. line 449, change
      $ai_admin_headers .= "From: ".str_replace(' ', '-', $ai_name)." ".$ai_email."\n";

      to

      $ai_admin_headers .= "From: ".$ai_name." <".$ai_email.">\n";

    https://wordpress.org/plugins/responsive-contact-form/

  2. August Infotech
    Member
    Plugin Author

    Posted 1 year ago #

    Hello EfHa,

    Thanks for solution given to us and surely we will update this in a couple of days.

    Thanks & Regards,
    August Infotech

  3. August Infotech
    Member
    Plugin Author

    Posted 1 year ago #

    Hello EfHa,

    We have updated our code as you suggested in our plugin. Once again thanks for your suggestion and we appreciate for it. Please check it once and if you have still any query regarding this then feel free to tell us.

    Thanks & Regards,
    August Infotech

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic