Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

contact us file attachment

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-02-2013, 10:17 AM
 
deepblue_tiano deepblue_tiano is offline
 

Advanced Member
  
Join Date: Nov 2010
Posts: 50
 

Default contact us file attachment

I am working on file attachment on contact us form.. And I am having trouble attaching the files to the email sent to help department.. I want a direct attachment since the message was sent only to email, I don't need to save a copy of attachment to the server.

I saw this code in func.mail.php

Code:
func_attach_images($mail_message);

wherein the images url are embedded into the message body. This is applicable for sending email with images/HTML format.
__________________
christian
Reply With Quote
  #2  
Old 12-03-2013, 10:47 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: contact us file attachment

This could be tricky to do right. As far as I know the attachment must be uploaded to the server before it can be sent out, I can't think of a way around that.

Be very careful to sanitize this, if not done right it could easily open a huge security hole.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:07 PM.

   

 
X-Cart forums © 2001-2020