Developer Support »

Not receiving attachments

Applies to the Pro version only

The script will process file uploads from your form and send them as attachments to the email that is sent to you (or alternatively upload them to your server, depending on your configuration settings). This is done automatically, you do not need to configure the script for this. You can attach any number of files of any type. If you are not receiving the attachments then you should check your HTML form code and your PHP setup.

To allow your form to send the uploaded files as attachments, you must put this enctype="multipart/form-data" in the <form> tag and use the "post" method, like so:

<form action="formtoemailpro.php" method="post" enctype="multipart/form-data">

You must also use a file input <input type="file" name="whatever"> on your form, one for each file you wish the visitor to upload. Give each one a different name. The above is HTML that is used in your form.

PHP must be set up correctly on your server to allow the file uploads (attachments). PHP is configured on your server in the file "php.ini". The main configuration settings in that file that can effect file uploads are "file_uploads", "upload_max_filesize", and "post_max_size". Check that "file_uploads" is on. Check that the "upload_max_filesize" and "post_max_size" values are sufficient to allow for the size of the file(s) that are being uploaded. Changing the php.ini settings are beyond the scope of this support as there can be variations on how it is employed but you can ask your host/admin about it.

You can make a little script that will enable you to see your php.ini settings. Copy the code below and paste it into a blank file:

<?php

phpinfo();

?>

Save the file as anything you like with a .php extension (say phpinfo.php) and upload it to your webspace and call it up in a browser like so: http://example.com/phpinfo.php (putting the correct file name in the URL) your PHP settings will then be shown on the screen.

If you have the correct HTML code on your form and have PHP configured correctly to allow file uploads, then you will receive the attachments as expected (assuming the script is otherwise set up correctly).