Intro text email

0
How do I add an introductory text to the email with the invoice? But that is not seen on the pdf.

For example:

Dear customer, according xxxx service corresponding to "anything" the sales invoice is attached.



thanks
Responses (2)
  • Accepted Answer

    Tuesday, January 14 2014, 11:44 AM - #Permalink
    0
    hello,

    that's not currently possible.. I mean, you can add this on the template (email part), but then it will appear on the PDF too..
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 15 2014, 08:53 PM - #Permalink
    0
    Hello
    I have solved it (partially) of the following way:
    Go to
    administrator/components/com_invoices/models/invoice.php

    find
    function sendMail ()

    Line
    return $mail -> sendMail ....


    I created a variable
    $body_message = " text of the message that it precedes to the invoice "


    Then, in the line return $mail -> sendMail concatenated the variable $body_message with the variable $message .
    thus send the invoice with a headline of message.

    It is not a very elegant solution, but at least it saves the situation.

    Thanks
    • Germinal Camps
      more than a month ago
      it's a good way to solve your request, yes. good job my friend! :)
    The reply is currently minimized Show
Your Reply