Developer Support »

Problem attaching a file to the autoresponse  (See more user questions)

Hi

You haven't done what I said. This bit:

> You need to put the full server path in there...the location of the file
> "membership-agreement.pdf", not the web address, like this for example:
>
> $autoresponder_attachment_path = "/home/users//forms/";
>
> (note the trailing slash "/")

Your error message shows the server path, so the code would be:

$autoresponder_attachment_path = "/home3//public_html/forms/";

I should stress, filesystems have got NOTHING to do with PHP or my script,
that's operating system/server stuff, but the script does have to be met
halfway and you have to tell it where it can find stuff.

Any questions, just let me know.

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Friday, July 24, 2009 1:52 AM
Subject: RE: FormToEmail-Pro script


> Charles,
>
> This is the exact error message that pops up.
>
> I am attaching the file again in the event you need it.
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Warning: fopen(/public_html/forms/membership-agreement.pdf)
> [function.fopen]: failed to open stream: No such file or directory in
> /home3//public_html/formtoemailpro.php on line 1768
>
> Warning: filesize() [function.filesize]: stat failed for
> /public_html/forms/membership-agreement.pdf in
> /home3//public_html/formtoemailpro.php on line 1769
>
> Warning: fread(): supplied argument is not a valid stream resource in
> /home3//public_html/formtoemailpro.php on line 1769
>
> Warning: fclose(): supplied argument is not a valid stream resource in
> /home3//public_html/formtoemailpro.php on line 1770
>
>
> -----Original Message-----
> Sent: Thursday, July 23, 2009 11:04 AM
> Subject: Re: FormToEmail-Pro script
>
> Hi
>
> Thank you very much for your kind words!
>
> I can see what is causing the errors, but I'm surprised that it also
> works!
> You have this:
>
> $autoresponder_attachment_path = "http:www..com/forms/";
>
> You need to put the full server path in there...the location of the file
> "membership-agreement.pdf", not the web address, like this for example:
>
> $autoresponder_attachment_path = "/home/users/forms/";
>
> (note the trailing slash "/")
>
> You also have this:
>
> $autoresponder_attachment_content_type = ".pdf";
>
> I think it should be:
>
> $autoresponder_attachment_content_type = "application/pdf";
>
> That said, I don't think this would give you any errors on the website.
>
> Any questions, just let me know.
>
> Best wishes.
>
> Charles Sweeney
> https://formtoemail.com
> The world's easiest feedback script!
>
> ----- Original Message -----
> Sent: Thursday, July 23, 2009 1:45 PM
> Subject: RE: FormToEmail-Pro script
>
>
>> Charles,
>>
>> I am attaching a file to the autoresponse.
>>
>> Ironically, the file I want is attached. On the Thank You message, all of
>> these error messages pop up.
>> Attached is the mail script and I am using it on the following site.
>>
>> http://www..com
>>
>> Thanks for looking at it.
>>
>> By the way... It is an awesome, easy to use script. I will be telling
>> EVERYONE about it.

>>
>> -----Original Message-----
>> Sent: Thursday, July 23, 2009 3:56 AM
>> Subject: Re: FormToEmail-Pro script
>>
>> Hi
>>
>> Thank you for your purchase.
>>
>> Are you trying to attach a file to the autoresponse? Looks like it is
>> not
>> finding it. You need to state the directory in the script (the location
>> of
>> the file you want to attach to the autoresponse). Have you enabled the
>> autoresponse? Have a look at the instructions in the script for more
>> information.
>>
>> Otherwise, please give me the URL of your form page, and attach a copy of
>> your edited script, I will check them out.
>>
>> Have you got the script to work at all?
>>
>> I'm taking a bit of a guess at what you are doing and what you want to
>> achieve, and what you have achieved, based on the error you are getting.
>> Please clarify what you are doing, or wanting to achieve.
>>
>> Best wishes.
>>
>> Charles Sweeney
>> https://formtoemail.com
>> The world's easiest feedback script!
>>
>> ----- Original Message -----
>> Sent: Thursday, July 23, 2009 5:15 AM
>> Subject: FormToEmail script
>>
>>
>>> Comments: I am using the Pro version for the first time.
>>>
>>> I am getting the following errors after submit.
>>>
>>> fopen: faild to open stream: line 1768
>>>
>>> fread(): supplied argument is not a valid stream resource line 1769
>>>
>>> filesize() stat faild
>>> line 1769
>>>
>>> fclose() suppled argument is not a valid stream resource
>>> line 1770
>>>
>>> I am sure its a "pilot" error. Please help.