Email Before Download
Change Sender Name in the email. (7 posts)

  1. Andrea_Marinsalta
    Posted 2 years ago #

    First of all thanks for the plug in. It's exactly what I was looking for.
    I using the plug in for a download through email. The problem is that i'm not able to change the name of the sender:

    It appears that the sender is "worpress" or "wordpress@mywebsite.com" (inside the email).
    I tried to change all the setting but nothing happens.
    I had a look to the FAQ but they seems not to answer to my problem.
    Thanks in advance!


  2. Evanslooten
    Posted 2 years ago #


    I am not the author of the plugin, but I also had this problem and have coded in my own fix.

    If you look at the email-before-download.php file for the plugin, you'll find this piece of code (version 3.2.1) around line 247:

    if (isset($_POST['email_from'])){
     $emailFrom = htmlspecialchars_decode(urldecode($_POST['email_from']));;

    If you add the following code below the previous snippet (replacing the values with your desired settings), it will change the email from parameters on the emails with download links.

    $emailFrom = '"Display Name" <your-email@your-domain.com>';

    The final result should be something similar to:

    if (isset($_POST['email_from'])){
          $emailFrom = htmlspecialchars_decode(urldecode($_POST['email_from']));;
        $emailFrom = '"DISPLAY NAME" <your-email@your-domain.com>';
        if (strlen($emailFrom) > 0 )
          $emailFrom = 'From: '. $emailFrom . "\r\n";
  3. Marketingsrc
    Posted 2 years ago #

    Hello All,
    We had this same issue. We received mails send by "email before download" with: WordPress <wordpress@domain.com> as sender.

    We found the solution in the email-before-download.php for Version: 3.2.2.
    At line 807: the last option #12 is posted in the php but is set as remark. so the php would not active it (fonts were green coloured). see below

    <!--<tr valign="top">
    <th scope="row"><p>12. Email From</p></th>

    By removing the <!--, this option became available in the plugins in wp.
    <tr valign="top">
    <th scope="row"><p>12. Email From</p></th>

    Now you can use the option #12 in the Dashboard -> Settings -> Email Before Download Options option number 12.

    This was our solution.
    Hope this helps.

  4. mandsconsulting
    Plugin Author

    Posted 2 years ago #

    Hi Andrea, Evanslooten and Marketingsrc,
    Thanks for using our plugin and discussing various issues.
    You might also find useful this our sticky post that deals with the “from email address” issue

  5. hrattink
    Posted 2 years ago #

    Just found a great plugin: "WP Mail From II", does righ that. You can change the display name and mailadres, but if you leave the latter blank it won't overwrite.
    See: http://wordpress.org/plugins/wp-mailfrom-ii/

  6. mandsconsulting
    Plugin Author

    Posted 2 years ago #

    Hi hrattink,

    Thank you for your interest in our plug in. Hopefully your suggestion will be helpful to our users. Thanks again

  7. kalau67
    Posted 1 year ago #


    Merci Evanslooten votre solution m'a beaucoup aidé.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Email Before Download
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic