Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Managing Customers and Orders / Attachment in confirmation email.

Attachment in confirmation email.

Locked

Started by skektek on 23 Feb 2008, 3:41 AM · Views: 2,093

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
23 Feb 2008, 3:41 AM
#1
skektek avatar

skektek

New Zenner

Join Date:
Feb 2008
Posts:
2
Plugin Contributions:
0

Attachment in confirmation email.

How do I add an attachment to the confirmation email (or any/all emails)? I want the order information to appear in the body as well as an attachment for all emails.

23 Feb 2008, 6:30 AM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Attachment in confirmation email.

You would have to save the email content first on the server as file and then attach it using mail_attachment
This might help!

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

24 Feb 2008, 2:14 PM
#3
skektek avatar

skektek

New Zenner

Join Date:
Feb 2008
Posts:
2
Plugin Contributions:
0

Re: Attachment in confirmation email.

Thanks for the reply.

I have tried just that by playing around with Steve Kim's 'Automation of Packing Slip on Sale' module but it breaks the tables on all the test sites I have tried.
I was hoping for a more elegant solution. Looking at the class.phpmailer.php file it looks like an attachment function is already defined. I would think it would be as easy as defining the content of the attachment as the result of the createbody body function and making that part of the mail function (so that every email sent sends the content of the body as an additional attachment) but I haven't yet puzzled out exactly how to make it work.

16 Oct 2008, 4:08 AM
#4
jeff_g avatar

jeff_g

Zen Follower

Join Date:
Oct 2007
Posts:
132
Plugin Contributions:
0

Re: Attachment in confirmation email.

I'm curious if you ever got this working? I could use the same function of including the confirmation in an attachment.

Thanks,
Jeff