![]() |
Attaching file to contact.asp |
Post Reply ![]() |
Author | |
Andy @ Landmarq ![]() Newbie ![]() ![]() Joined: 12-November-2008 Location: London Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 17-February-2009 at 10:26am |
Hello fellow carter's
![]() 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 ![]() |
|
Need a bespoke PC built to order? come to www.landmarq.co.uk
|
|
![]() |
|
rotokirby ![]() Senior Member ![]() ![]() Joined: 22-April-2007 Location: United States Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Andy @ Landmarq ![]() Newbie ![]() ![]() Joined: 12-November-2008 Location: London Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
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)
![]() |
|
Need a bespoke PC built to order? come to www.landmarq.co.uk
|
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |