WordPress.org

Support

Support » Plugins and Hacks » Mail not working

Mail not working

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author August Infotech
    Participant

    @augustinfotech

    Hello EfHa,

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

    Thanks & Regards,
    August Infotech

    Plugin Author August Infotech
    Participant

    @augustinfotech

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mail not working’ is closed to new replies.