Forums / Setting Up Categories, Products, Attributes / email an ebook after purchase?

email an ebook after purchase?

Started by misrapeeyush on 27 Jan 2010, 12:18 PM · Views: 1,301

Results 1 to 5 of 5
27 Jan 2010, 12:18 PM
#1
misrapeeyush avatar

misrapeeyush

New Zenner

Join Date:
Dec 2009
Location:
India
Posts:
1
Plugin Contributions:
0

email an ebook after purchase?

Hi,

I am trying to create a Zen Cart store to sell E-Books online. I want that when user purchases the E-Book, after making payments, E-Book is mailed to their E-Mail ids as attachments. Is there any such option with Zen-Cart or any plugin that can be used to solver the purpose?

27 Jan 2010, 1:24 PM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: email an ebook after purchase?

I want that when user purchases the E-Book, after making payments, E-Book is mailed to their E-Mail ids as attachments. Is there any such option with Zen-Cart or any plugin that can be used to solver the purpose?
Currently, not that know of...zencart offers purchaser's option
to download files i.e. zips, pdf, mp3 etc they have paid for.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

8 Mar 2010, 7:57 PM
#3
jenbullfrog avatar

jenbullfrog

Zen Follower

Join Date:
Oct 2005
Location:
Helena, MT
Posts:
110
Plugin Contributions:
0

Re: email an ebook after purchase?

I"m trying to do the same thing, send out an email with .pdf attachment after the payment clears. I've got it 99% but probably not doing it the "right way". I need an example of the zen_mail function with attachments_list array.

  • @param array $attachments_list Array of attachment names/mime-types to be included (this portion still in testing, and not fully reliable)

would it be something like

$attachments_list = array();
$attachments_list['pdf/'.$filename] = 'application/pdf';

any help here would be GREAT

thanks from jennifer

8 Mar 2010, 9:35 PM
#4
jjreader avatar

jjreader

New Zenner

Join Date:
Mar 2010
Posts:
2
Plugin Contributions:
0

Re: email an ebook after purchase?

Keep in mind that some people have email accounts with limits on file attachments.

• Some are set up not to accept attachments (for security reasons) and

• others have limits on the size of the attachment (often 1 megabyte).

If your ebooks have images, they will definitely be more than a megabyte.

Consider this as an alternative... set up a password protected link for the ebook and send the username and password by email to the buyer. Give them a reasonable amount of time to download it, say 28 hours or 36 hours (some people are away on weekends and might need more time). If they legitimately fail to download it in time, you can always send them a new link.

If you do it this way, there's no problem with size limitations or server attachment limitations. The user would be downloading the ebook the same way they download anything else from the net.

8 Mar 2010, 10:32 PM
#5
jenbullfrog avatar

jenbullfrog

Zen Follower

Join Date:
Oct 2005
Location:
Helena, MT
Posts:
110
Plugin Contributions:
0

Re: email an ebook after purchase?

that's great advice but I still need an example of the $attachments_list array. also I'm having trouble getting the custom html emails to work with the zen_mail function. they are arriving in plain text.

any help would be great!

all i really need is an example.

thanks from jennifer