Developer Support »

Nor receiving attachments - solved  (See more user questions)

Thanks Charles...funny you should send this, as I was just typing to you to tell
you that I got it to work. You are right in that I had mistakenly enabled the
upload feature. Once I reset it to "0" - life was good and the form functions
exactly like I had hoped. Thanks so much.

C

*----- Original Message -----*
*From:* FormToEmail.com []
*Sent:* Fri, 24 Jun 2011 14:09:46 +0100
*Subject:* Re: FormToEmail-Pro script

Hi C.

If you fix the form tag, you should be good to go.

Are you still testing with the basic form and default script? You
should do until you get the attachments properly.

To get the attachments is very simple. You don't need to configure
anything in the script, they will be detected automatically, you just
need to code the form correctly with the correct <form> tag and a file
input box on the form, which you should have now.

Some email servers block attachments. Have a look at this page on my
support section:

https://formtoemail.com/developersupport/not_receiving_attachments.php

Have a look also at these previously asked questions:

https://formtoemail.com/user-questions/questions.php?tag=Attachments

That error you were getting earlier, relates to uploading files and
saving them on your server. Check you haven't enabled that option in
the script. Again the reason for using a stock script intitially.

If you need a fresh copy of the script, you can get one here:

https://formtoemail.com/download.php

Any questions, just let me know.

Best wishes.

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

On 24/06/2011 11:45, wrote:
> Thanks Charles. I will take a look again and do so reading. The only change I
made was to fix the form tag as you suggested. That's it.
>
> I am only trying to get the form to attach a file.

> -----Original Message-----
> From: "FormToEmail.com"<>
> Date: Fri, 24 Jun 2011 07:41:56
> To: C
> Subject: Re: FormToEmail-Pro script
>
> Hi C
>
> 7.30am in the UK as I write.
>
> The error tells you what you need to know: "permission denied". PHP
> must have permission to write to the directory you are writing the file
> to. You need to ask your host about permissions on your server.
>
> That's for uploading files to the server. I thought you wanted to send
> them as attachments???
>
> If you want to send them as attachments, fix your form tag as mentioned
> in my earlier email and all should be well.
>
> If we could deal with one "problem" at a time, it would be easier to get
> you fixed. Attachment "problem" is incorrect coding on your form. File
> upload "problem" is wrong permissions on your server. None of which
> have anything to do with the script which doesn't have any problems.
> Bound to be plenty stuff on my support section about this too. Save you
> waiting for email replies.
>
> Charles Sweeney
> https://formtoemail.com
> The world's easiest feedback script!
>
> On 24/06/2011 02:17, C wrote:
>> I suspect based on the time difference that I have lost you until tomorrow. I
>> made the change you suggested and get the following error:
>> *Warning*:
>>
move_uploaded_file(D:\Inetpub\vhosts\\httpdocs\charles/110130.jpg)
>> [function.move-uploaded-file
>> <http:///function.move-uploaded-file>]: failed to open
>> stream: Permission denied in
>> *D:\Inetpub\vhosts\\httpdocs\charles\formtoemailpro.php* on line
>> *1714*
>>
>> *Warning*: move_uploaded_file() [function.move-uploaded-file
>> <http://function.move-uploaded-file>]: Unable to move
>> 'C:\WINDOWS\Temp\phpB2F1.tmp' to
>> 'D:\Inetpub\vhosts\\httpdocs\charles/110130.jpg' in
>> *D:\Inetpub\vhosts\\formtoemailpro.php* on line
>> *1714*
>>
>> Any thoughts on how to fix this?
>>
>> *----- Original Message -----*
>> *From:* FormToEmail.com []
>> *To:* c
>> *Sent:* Thu, 23 Jun 2011 21:49:51 +0100
>> *Subject:* Re: FormToEmail-Pro script
>>
>> Your form tag is wrong. You have this:
>>
>> <form action="formtoemailpro.php" method="post">
>>
>> Should be this:
>>
>> <form action="formtoemailpro.php" method="post"
>> enctype="multipart/form-data">
>>
>> That information is at the top of the script instructions.
>>
>> Your file input on your form looks good.
>>
>> Let me know how it goes.
>>
>> Best wishes.
>>
>> Charles Sweeney
>> https://formtoemail.com
>> The world's easiest feedback script!
>>
>> On 23/06/2011 20:40, C wrote:
>> > Thanks Charles...I did as you suggested and started with a simple form and
>> > continued to build from there. I have made a lot of progress and I think I am
>> > close to completion. the challenge I am having is that it won't attach the
file
>> > when it sends.
>> >
>> > You can see my work here:
>> > http://www.
>> >
>> > I have attached the three php files. It seems like I am missing an "ADD"
feature
>> > in the form. Would you mind taking a look?
>> >
>> > Cheers,
>> > C >>
>> > *----- Original Message -----*
>> > *From:* FormToEmail.com []
>> > *To:*
>> > *Sent:* Thu, 23 Jun 2011 15:56:31 +0100
>> > *Subject:* Re: FormToEmail-Pro script
>> >
>> > Hi C
>> >
>> > Thank you for your purchase.
>> >
>> > Your edited script looks ok but you have entered the "thank you" page
>> > URL as the form page URL:
>> >
>> > $form_page_url = "http://www/thankyou/";
>> >
>> > ...which means any errors can't be seen as you have enabled the option
>> > to show the errors on the form page but given the "thank you" page URL
>> > for the form page. I was having a play with your form but as I couldn't
>> > see any errors from the script, I wasn't able to tell too much from it.
>> >
>> > I would recommend you initally use the script in its default state and
>> > ONLY add your email address to it. Get it working first, then configure
>> > it a step at a time. I have attached a fresh copy of the script for you.
>> >
>> > I would also recommend you make a test page with only my basic form code
>> > on it. There's a lot going on on your form page and I wasn't able to
>> > validate it.
>> >
>> > Try the basic form on its own and a default script. If you don't get
>> > the mail from that then you need to look at your server settings (the
>> > PHP mail() function needs to be enabled and working) and you need to
>> > look at the settings on your receiving email server, filters etc.
>> >
>> > You have a domain name in your subject lines:
>> >
>> > $subject = ".ca Contributor Submission Form";
>> >
>> > $autoresponder_subject = ".ca Story Submission";
>> >
>> > Some email services block email with domains in the subject. This being
>> > one of the reasons to first try the basic form and a default script,
>> > which should work ok.
>> >
>> > I see on your form you have an "Attach the file" button which actually
>> > submits the form meaning you have two submit buttons on the form. You
>> > don't need that with my script. Guessing it's maybe left over from a
>> > previous setup but I would get rid of it. Again, basic form and default
>> > script for testing.
>> >
>> > If you set up a basic form and default script but don't get the email,
>> > let me know anyway so I can have a look at it, but it will be down to
>> > one of the reasons I gave above.
>> >
>> > There's plenty information on my support section too.
>> >
>> > Best wishes.
>> >
>> > Charles Sweeney
>> > https://formtoemail.com
>> > The world's easiest feedback script!
>> >
>> > On 23/06/2011 14:48, C wrote:
>> > > thanks Charles...I have paid the $49.00 and have been playing with your
>> code and
>> > > it looks quite good. Thank you.
>> > >
>> > > I am having a problem though. I have set up my form here:
>> > > http://www.
>> > >
>> > >
>> > > I cant get the form submission to get emailed to me. What am I missing?
>> > >
>> > > I tried to add in your simple example form, and it doesnt go either?
>> > >
>> > > I have attached the formtoemail.php file.
>> > >
>> > > Cheers,
>> > > C
>> > >
>> > > *----- Original Message -----*
>> > > *From:* FormToEmail.com []
>> > > *To:*
>> > > *Sent:* Thu, 23 Jun 2011 12:59:24 +0100
>> > > *Subject:* Re: FormToEmail script
>> > >
>> > > Hi C
>> > >
>> > > Yes, to both questions if using my Pro script.
>> > >
>> > > You can get the Pro script and more information about it, here:
>> > >
>> > > https://formtoemail.com/formtoemail_pro_version.php
>> > >
>> > > Have a look also at the items on my support section, here:
>> > >
>> > > https://formtoemail.com/developersupport/
>> > >
>> > > There's instructions in the script for attaching files to the email.
>> > > You don't need to configure the script as any file uploaded by your form
>> > > will be detected automatically. You just need to code your form
>> > > accordingly (instructions in the script).
>> > >
>> > > My product doesn't make forms, you need to make your own forms, so you
>> > > can make your form look any way you like. What you can do with my
>> > > product is customise the error messages and "thank you" page so they are
>> > > exactly the same as your site.
>> > >
>> > > Any questions, just let me know.
>> > >
>> > > Best wishes.
>> > >
>> > > Charles Sweeney
>> > > https://formtoemail.com
>> > > The world's easiest feedback script!
>> > >
>> > > On 23/06/2011 10:07, c wrote:
>> > > > Name: C
>> > > >
>> > > > Email:
>> > > >
>> > > > Comments: Does your program, allow the user to attach a file (photo)
to the
>> > > email that they will send to us? Can I modify the code to match the existing
>> > > look of my site?