WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP-Invoice – Web Invoice and Billing] email From blog name instead of business name

[Plugin: WP-Invoice – Web Invoice and Billing] email From blog name instead of business name

  • 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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    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.

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

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP-Invoice – Web Invoice and Billing] email From blog name instead of business name’ is closed to new replies.