• When a post is added, I want the automatically generated message to be sent to the user instead of the admin … or both people … but I’m more interested in the email being sent to the user. How can I change the code in ucan-post-class.php to make this happen?

    I would guess it is around Line 602

    //Email the admin when a new post is submitted — maybe

    function uCan_Maybe_Email_Admin($link)
        {
          if ($this->ucan_options['uCan_Email_Admin'])
          {
            $sendername = get_option('blogname');
            $sendermail = get_option('admin_email'); //Both to and from
            $headers = "MIME-Version: 1.0\r\n" .
              "From: ".$sendername." "."<".$sendermail.">\n" .
              "Content-Type: text/HTML; charset=\"" . get_settings('blog_charset') . "\"\r\n";
            $mailMessage = '<p>'.__('Thank you for your submission.', 'ucan-post').'</p>';
            if(!empty($sendermail))
              wp_mail($sendermail, __('Your Post', 'ucan-post'), $mailMessage, $headers);
    			}
    		}

    Any help would be greatly appreciated
    Thanks!

    https://www.ads-software.com/extend/plugins/ucan-post/

  • The topic ‘[Plugin: uCan Post] Initial Notification Email – Send To User Instead of Admin’ is closed to new replies.