Hi All
I would like to be able to construct a real nice HTML e-mail with my pdf invoice attached to it. I have managed to do that already with the recurring invoices job by editing the '/include/class/email/body.php' file, but I struggling to acheive it with the regular invoice e-mail.
I have found that I can add some html into value="" of the Pay up dude!'>). But this does not give me anywhere near the flexibility I require.
I am presuming there must be another file like '/include/class/email/body.php' for regular invoice e-mails, if anyone knows could they share?
Thanks so much in advance
Stu
Seem to be doing a great service answering my own questions, but hopefully someone else will benefit from it!! :-)
"/modules/invoices/email.php"
Edit the Notes portion: $email -> notes = $_POST['email_notes'];
$email -> notes = "Please find attached a Adobe PDF invoice for recent services provided. You can add html in here prefix any quotes for say styling or images with a forward slash, can't add example in here as the html gets stripped out :-(" . $_POST['email_notes'];
$email -> notes = "Please find attached a Adobe PDF invoice for recent services provided. You can add html in here prefix any quotes for say styling or images with a forward slash, can't add example in here as the html gets stripped out :-(" . $_POST['email_notes'] . "some more text allowing you to sandwich notes from the e-mail form";
$email -> notes = $_POST['email_notes'] . "Please find attached a Adobe PDF invoice for recent services provided. You can add html in here prefix any quotes for say styling or images with a forward slash, can't add example in here as the html gets stripped out :-(" . "some more text allowing you to sandwich notes from the e-mail form";
Stu
I have not tried. I settled on a footer then I added a default message to the textarea form tags which had the variables in it.
So from the above example (limited because forum strips html), edited "/modules/invoices/email.php" with $email -> notes = "p style=" . $_POST['email_notes'] . "default footer message" . "/p"
Then in "/templates/default/invoices/email.tpl" I added standard text between the email_notes textarea html tags >standard text<, so the text loads into the form, but could be edited if you want to.