Author Topic: Attach static PDF-file to order emails  (Read 2169 times)

shakudu

  • Beginner
  • *
  • Posts: 12
Attach static PDF-file to order emails
« on: January 04, 2011, 23:26:41 pm »
I have a static PDF file on my webserver that i want to attach to every outgoing order confirmation..

How can i do it?

winst

  • Beginner
  • *
  • Posts: 4
Re: Attach static PDF-file to order emails
« Reply #1 on: January 21, 2011, 00:19:42 am »
I'm looking for the similar thing, but with image file attachment.

zorkhh

  • Advanced
  • Jr. Member
  • *****
  • Posts: 245
    • vm-expert.com
Re: Attach static PDF-file to order emails
« Reply #2 on: January 21, 2011, 01:20:46 am »
You will have to edit the file

/administrator/components/com_virtuemart/classes/ps_checkout.php

Search for the string "vmmail(" (should be found 4 times). This is the function that sends out the mail. This function allows it to add an attachment.

The 11th parameter is the attachment. You can find the vmmail function in the file ps_main.php. There you can see how the funtion works and which parameters are expected.

You can add one file as a path-string or more files as an array.

Thomas
Virtuemart Professional Support at http://www.vm-expert.com

Visit the large Virtuemart Group on Joomla.org: http://people.joomla.org/groups/viewgroup/30-Virtuemart.html