Post by cyclopse » Sat Jul 27, 2013 1:51 pm

I want to attach a file in the order confirmation mail and i m trying to attach it using
editing the file catalog/model/checkout/order.php

Code: Select all

$mail->addAttachment('sizechart.jpg');
i want to attach a size chart in the confirmation email.
but it is not working plzzzz help me.

http://epicwebsolutions.in
http://awesomemoviez.com/
http://emptykart.com/


New member

Posts

Joined
Thu May 02, 2013 1:09 pm

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by alin » Sat Jul 27, 2013 4:34 pm

Put your sizechart.jgp in image directory and add this code

Code: Select all

$file = DIR_IMAGE . 'sizechart.jpg';
if (file_exists($file)) {
			$mail->addAttachment($file);
		}
Hope this help

Thanks

GOLDEN LEOPARD SYSTEM SOLUTION
An ICT System Solution Company in Vietnam
Website: Store: http://opencart.goleo.vn or http://www.opencart.com/index.php?route ... rname=alin


User avatar
Active Member

Posts

Joined
Fri Jun 10, 2011 8:16 pm
Who is online

Users browsing this forum: No registered users and 40 guests