Form as an Attachment

Shows some Tutorials

Form as an Attachment

Postby hparsons on Tue Jun 03, 2008 3:16 pm

We are using ChronoForms to send a fax from our faxserver. The faxserver will send a fax to <number>@fax.ourdomain.com . So we have ChronoForms send gather a bunch of information (including the fax number), and email it to <number>@fax.ourdomain.com

The problem is that the fax server treats the body of the email as the cover page, and any attachments (PDF, MS Word, HTML, etc) as the faxed document. The issue is further compounded by the fact that the system limits the size of the cover page.

So, the form we created is too large to be the cover page, and the incoming fax fails. However, if we could make the system treat the form we fill out is an attachment (it can use .html as the extension of the attachment), then the system would work properly.

What I'd like is the body of the message to be something like "This is a request from xxx", and the form that is filled out to be the attachment - request.html

Any suggestions?
hparsons
Fresh Boarder
 
Posts: 4
Joined: Tue Jun 03, 2008 3:03 pm

Re:Form as an Attachment

Postby GreyHead on Wed Jun 04, 2008 4:45 am

Hi hparsons,

I'm sure that this is possible, but not clear how to do it. The content of the email is in a variable called (from memory) $html_message at the time the OnSubmit code is processed. You could process this in whatever way is necessary to make it into a valid attachment (save it to a temporary file maybe).

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3374
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Form as an Attachment

Postby hparsons on Wed Jun 04, 2008 4:56 am

Actually, the faxserver vendor had me change some settings so body doesn't come through as the cover page. I appreciate the response though.
hparsons
Fresh Boarder
 
Posts: 4
Joined: Tue Jun 03, 2008 3:03 pm

Re:Form as an Attachment

Postby GreyHead on Wed Jun 04, 2008 5:08 am

Hi hparsons,

Great, gald that you have it working.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3374
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany


Return to ChronoForms How To

Who is online

Users browsing this forum: FloppyDriveStudios, uberbecks and 4 guests