Viewing 1 replies (of 1 total)
  • Plugin Author Chop Chop

    (@chopchoporg)

    Hi,

    In public/class-cc-coming-soon.php (around line 401) there is wp_mail() function:

    $sent = wp_mail(
    $to_email,
    __('You have a new subscriber!', $this->plugin_slug),
    sprintf(__("Hello,\n\nA new user has subscribed through your Coming Soon page.\n\nSubscriber's email: %s", $this->plugin_slug), $_POST['email'])
    );

    Paste this just before this function:

    $headers = 'From: '.$_POST['email'].' <'.$_POST['email'].'>' . "\r\n";

    and replace the function with the following:

    $sent = wp_mail(
      $to_email,
      __('You have a new subscriber!', $this->plugin_slug),
      sprintf(__("Hello,\n\nA new user has subscribed through your Coming Soon page.\n\nSubscriber's email: %s", $this->plugin_slug), $_POST['email']), $headers
      );

    Let me know if you encounter any trouble.

Viewing 1 replies (of 1 total)
  • The topic ‘Email Subscription Issue’ is closed to new replies.