WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Andrea_Marinsalta
    Member
    Posted 1 year ago #

    Hi
    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!
    Andrea

    http://wordpress.org/extend/plugins/email-before-download/

  2. Evanslooten
    Member
    Posted 1 year ago #

    Andrea,

    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']));;
        }
    
        //CHANGE THESE VALUES TO MATCH YOURS
        $emailFrom = '"DISPLAY NAME" <your-email@your-domain.com>';
    
        if (strlen($emailFrom) > 0 )
          $emailFrom = 'From: '. $emailFrom . "\r\n";
  3. Marketingsrc
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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
    http://wordpress.org/support/topic/plugin-email-before-download-from-email-address?replies=2

  5. hrattink
    Member
    Posted 10 months 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
    Member
    Plugin Author

    Posted 10 months 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
    Member
    Posted 5 months ago #

    Bonjour,

    Merci Evanslooten votre solution m'a beaucoup aidé.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic