Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2008
    Posts
    2
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,167
    Plugin Contributions
    0

    Default 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!!

  3. #3
    Join Date
    Feb 2008
    Posts
    2
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Oct 2007
    Posts
    124
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. The Confirmation Email must match your Email Address "error"
    By tpascubarat in forum General Questions
    Replies: 9
    Last Post: 23 Nov 2008, 04:11 AM
  2. Add an attachment in order confirm email
    By pierre-henri in forum Managing Customers and Orders
    Replies: 4
    Last Post: 12 Dec 2007, 04:11 PM
  3. Customer's Email in Order Confirmation Email
    By Jinn in forum General Questions
    Replies: 1
    Last Post: 8 Dec 2007, 12:29 AM
  4. Adding email attachment to Contact Us form
    By thebeadyeye in forum General Questions
    Replies: 4
    Last Post: 2 Oct 2007, 08:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •