• When I change the username, I click for the plugin to send an email to the user. This email was being bounced back by Gmail.com and Outlook.com as failing origin checks (dmarc etc.)

    I checked all my settings and noticed that the FROM address was incorrectly set to [email protected].

    MIME-Version: 1.0
    Content-Type: text/html; charset=UTF-8
    From: DOCRN <[email protected]>
    Sender: my correct email
    To: my users email at gmail.com
    Reply-To: my correct email
    Message-Id: <[email protected]>
    Subject: username changed

    When I examined the plugin files I identified the fault.

    In the plugin file /includes/mail.php the FROM setting has been hard set;

    $to = $user_info->user_email;
    $blogname = get_option('blogname');
    $siteurl = get_option('siteurl');
    $subject = 'username changed';
    $headers = "MIME-Version: 1.0" . "\r\n";
    $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
    $headers .= "From: $blogname [email protected]" . "\r\n";
    $message = "

    I have changed this on my site, but it needs addressing from source.

    • This topic was modified 1 year, 5 months ago by sjgarth.
    • This topic was modified 1 year, 5 months ago by sjgarth.
    • This topic was modified 1 year, 5 months ago by sjgarth.

The topic ‘Error on email’ is closed to new replies.