Developer Support »

Not receiving attachments  (See more user questions)

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, 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.example.com/charles/
>
> 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,

>
> *----- Original Message -----*
> *From:* FormToEmail.com []
> *To:* c
> *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.example.com/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 = "example.com Contributor Submission Form";
>
> $autoresponder_subject = "example.com 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!
>
>
> > 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.example.com/tmi/
> >
>> > 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, 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?