Jump to content

Attach pdf/txt to order confirmation


bibob

Recommended Posts

Found it

 

in classes/mail.php

add

 

 

 

if(strpos($template,'payment')) {

$message->attach(new Swift_Message_Attachment(file_get_contents("http://domain.dk/download/name.pdf"), "name.pdf", "application/pdf"));

}

 

if(strpos($template,'order_conf')) {

$message->attach(new Swift_Message_Attachment(file_get_contents("http://domain.dk/download/name.pdf"), "name.pdf", "application/pdf"));

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...