WordPress.org

Ready to get started?Download WordPress

Forums

WP-Invoice - Web Invoice and Billing
email From blog name instead of business name (5 posts)

  1. Joy
    Member
    Posted 2 years ago #

    When I send a payment notification, the email "From" field uses the name of my blog and the email address on the WordPress General Settings page.
    It should instead use the business name and email address in the WP-Invoice settings page.

    Also, an option to include the business' email in the bcc or cc of the emails sent would be great because there is no record of emails sent from WordPress (can't just look in my Sent box --although that would be a great way to handle it too). The need is for a sequential list of emails sent. I was able to manually put two addresses on the "To" line, but an option would be much nicer (and look better for the client).

    http://wordpress.org/extend/plugins/wp-invoice/

  2. purlogik
    Member
    Posted 2 years ago #

    I have the same problem, and it appears to be in the file wp-invoice/core/wpi_ajax.php on line 308:

    $headers = "From: ".get_bloginfo(). <".get_bloginfo('admin_email').">\r\n";

    I'm not sure how to change it so that it uses the info from the WP-Invoice settings page.

  3. purlogik
    Member
    Posted 2 years ago #

    It seems like I found a solution. Open the file wpi_ajax.php and delete line 308 as shown here:

    $headers = "From: ".get_bloginfo()." <".get_bloginfo('admin_email').">\r\n";

    Then, replace with all of this:

    global $wpi_settings;
    $name = stripslashes($wpi_settings['business_name']);
    $from = stripslashes($wpi_settings['email_address']);
    $headers = "From: {$name} <{$from}>\r\n";

    Let me know if that works for you.

  4. Joy
    Member
    Posted 2 years ago #

    That works. I can include the bcc for the business email there too.
    Now I just need a "Sent" box.

  5. Joy
    Member
    Posted 2 years ago #

    Too bad they didn't include this fix in the latest release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags