Print Page | Close Window

Attaching file to contact.asp

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=2491
Printed Date: 14-October-2025 at 2:54am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Attaching file to contact.asp
Posted By: Andy @ Landmarq
Subject: Attaching file to contact.asp
Date Posted: 17-February-2009 at 10:26am
Hello fellow carter's Smile

We are adding a quote request page to our site and I'm looking for an easy way to attach a file to the mails sent via contact.asp as we want people to be able to send quotes from our competitors, I tried googling around but could not find a code snippet that seemed to fit in with the existing code.

Has anyone out there done this or would I need to forget contact.asp and look at a whole new page of code?

As always any help gratefully recevied Smile


-------------
Need a bespoke PC built to order? come to www.landmarq.co.uk



Replies:
Posted By: rotokirby
Date Posted: 17-February-2009 at 8:02pm
Not sure if you're interested in a third party solution, but we use wufoo.com for a collection form on our site (and on a couple other sites) and love it.

http://wufoo.com

There is an option with Wufoo to have someone attach a file. Here's how we use it (art submission form):

http://rotofugi.com/toyscart/pc/viewContent.asp?idpage=33


-------------
Rotofugi Designer Toy Store & Gallery
Chicago > IL > US
http://rotofugi.com - http://rotofugi.com


Posted By: Andy @ Landmarq
Date Posted: 20-February-2009 at 11:22am
Thanks rotokirby I shall have a look through and see what we think (and if I can pry the credit card from the bosses fingers) LOL

-------------
Need a bespoke PC built to order? come to www.landmarq.co.uk


Posted By: Greg Dinger
Date Posted: 20-February-2009 at 11:48am
Andy - sending attachments via a web form such as contact.asp largely depends upon which mail component (selected from the e-mail settings screen in the admin) you are using.  Some will allow an attachment, some will not.  For example, I'm fairly certain that CDO and ASPMAIL could be caused to do this.
 
PC uses a common "sendmail" function to send messages.  Rather than worrying that a change to that file might cause a conflict elsewhere, it might be easiest to clone that code and adapt it to recognize an uploaded file from the contact page.  Then one might add a form field that allows the user to point to a file on their desktop, revise contact.asp to call an altered copy of sendmail that knows about that upload, and uses a component that has the ability to send attachments. 
 
A further issue that could potentially arise would be file size.  You have not mentioned the size of such files to be sent, but it's possible you could run into timeout (or other) issues if files are too large.
 
So if the boss wants to cut loose of the credit card and build such a feature, you could check with me or any of the developers around here to discuss the project.


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net