|
| A R C H I V E D M E S S A G E |
|
Subject: Attachments |
| Posted: 04/25/2003 at 7:51:57 pm |
| By: Julian Abel |
| Can the file attachment that is automatically sent to the person completing the form be a word .doc file?
I have just tried this and the attachment to the email shows the correct name format etc but the contents are
| |
|
|
Subject: Re: Attachments |
| Posted: 04/25/2003 at 7:52:10 pm |
| By: Seth Knorr |
| You can attach a word doc, However
1. The doc must be uploaded to the same directory as bizmail.cgi.
2. You must also edit the bizmail.cgi script in three places.
$attachment_nm = "file.doc";
## file name of attachement ##
$att_path = "/path/to/$attachment_nm";
## Path to file attachement##
$att_format = ".doc";
## File attachement extension, or file type (basicaly .exstension MAKE SURE THIS IS .doc for word docs ) ##
Then you should be all set.
Seth
| |
|
|
Subject: Re: Attachments |
| Posted: 04/25/2003 at 7:52:38 pm |
| By: Julian Abel |
| Thanks for such a prompt reply - it's appreciated.
This is kinda where I started - with the test.doc file in the cgi-bin where the bizmail.cgi file is and the relevant lines altered in the cgi file
but when you open the attachment which is sent to the visitor all it contains is
ÐÏ à¡± á (there's only a few random chars in the doc at the moment)
Any other ideas - I have tried uploading in both binary and ascii same result - any suggestions would be appreciated
Julian
| |
|
|
Subject: Re: Attachments |
| Posted: 04/28/2003 at 7:53:03 pm |
| By: Seth Knorr |
| It sounds like it could be a corupted word doc. Let me try attaching one and see what happens.
It should work though.
Seth
| |
|
|
Subject: Re: Attachments |
| Posted: 04/30/2003 at 7:53:19 pm |
| By: Julian Abel |
| I have tried again with a new word document and also a pdf file - neither work All I can seem to get to work is a plain text file.
Can you offer any suggestions. Thanks
| |
|
|
Subject: Re: Attachments |
| Posted: 05/05/2003 at 7:53:31 pm |
| By: Seth Knorr |
| Are you changing the bizmail.cgi file?
You need to change the line:
$att_format = ".txt";
to:
$att_format = ".doc";
| |
|
|