change mail subject of a recurring invoice
  • ydmlogydmlog January 2011

    Hi,

    Can someone point me to the code where I can change the subject line of mails sent by cron (recurring invoices)
    I found a subject line in email.tpl, value="{$invoice.index_name|htmlsafe} from {$biller.name|htmlsafe} is attached" but this seems only used when you e-mail the invoice manually from the webif.

    e-mails sent by cron only show "from biller.name" in the subject line (biller.name is of course replaced by the company name) I would like to change that. Any hints?

    Tnx
    Yves

  • iljojailjoja April 2011

    Me too, any progress?

  • ydmlogydmlog April 2011

    You can change it in .include/class/cron.php line 348

    kind regards

  • jason331jason331 February 1

    Can anybody explain exactly what I should change on line 348? Incidentally, line 348 is blank but line 345 has the following:
    $email -> subject = $email->set_subject();

    All I want my cron-generated emails to say is "February 2012 Invoice" (using the current month and year, of course).

  • ydmlogydmlog February 2

    Hi,

    Yes, I probably added some other code higher in the php which makes line nrs not 100% accurate anymore.

    Change:
    $email -> subject = $email->set_subject();

    To:
    $thismonth = date("F Y"); //add this line above
    $email -> subject = "$thismonth invoice";

    Kind regards
    Yves

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Categories