| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Plain text email plus HTML attachment | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
Has anyone coded a mod to xcart that uses one template as the plain text template, then writes a file as an attachment using the other template which is HTML coded? So when the email is sent from xcart the plain text comes up, and also a html version is attached to the text email? Just curious, as I think it would be good to suit all customers, both those with just plain text and those with html mail programs. It would also be a great mod for xcart to put in their future versions. John_E ![]() (Dream interpreter - Have dream, will interpret) |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Code:
The files are attached by an array specified. $attmFile = Array("/home/sites/blah.com/attachment.jpg"); Found this on www.php.net/mail, sure it could be integrated into include/func.php for what's needed to attach files to the email's sent. |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thanks for the reply Boomer,
Are we talking dynamic attachment files? The xcart would need to send the email according to the template, then generate another email, html version, including product code, quanity, price, if invoice for example, or customer data if lost password. It wouldnt be the same file attachment each time, it would need to generate the attachment file on the fly, call it perhaps Attn: 0001.htm and then attach it to the email. John_E ![]() (Dream interpreter, have dream, will interpret) |
|||||||
|
|||
X-Cart forums © 2001-2020
|