How to configure contact form with attachment

11 replies · opened Apr 29, 2016

AalexbocciaApr 29, 2016

Hello!

I set the sendemail - file.php file and typed lines in my email :
$ Toemail = ' contato@mydomain.com.br ' ; // Your Email Address
$ ToName = 'Alex' ; // Your Name

But it did not work!

Another question , I need to enable the option to attach file and save it in the " Attachments" folder called .

Thanks, Alex

SSemicolon WebSTAFFApr 30, 2016

Hello,

  1. Please find the following code in the include/sendemail.php File and change your Email Address to start receiving Form Responses:
$toemails[] = array(
	'email' => 'username@website.com', // Your Email Address
	'name' => 'Your Name' // Your Name
);

Additionally, if it still does not work for you, then chances are that the PHP mail() Function is not supported on your Web Server for which you will need to contact your Web Hosting Provider and ask them to enable it for you. Else, you will need to use SMTP functionality for sending Emails. Full Setup Instructions can be found in the Documentation > Widgets > Contact Forms Section.

  1. The Latest Version of the include/sendemail.php File already includes the attachment code which takes the File Upload and sends it to your Email. Simply add the following HTML Code in your Form:

	Upload File *
	

Let us know if we can help you with anything else or if you find any further issues.

AalexbocciaMay 3, 2016

Hello,

The transmission of information is working, but the attachment is not going .

The attachment is saved on the server in any of the folder or go directly to the e- mail ?

Thanks, Alex

SSemicolon WebSTAFFMay 5, 2016

Hello,

Please use Dropbox to send us your PHP and HTML Files or simply send it to our Email Address at semicolonweb@gmail.com . Also, it would be great if you can please provide us with a Live URL so that we can check out the exact issue and provide you with a more accurate solution for this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

AalexbocciaMay 5, 2016

Hello!

I sent the files by email .

SSemicolon WebSTAFFMay 6, 2016

Hello,

We have just checked out your Codes and you appear to be using the Older Version of Canvas Files. Please Download the Latest Version of Canvas and use the contact-file.html Template. This will definitely work fine.

Additionally, do make sure that you add the enctype="multipart/form-data" attribute to your <form>.

Let us know if we can help you with anything else or if you find any further issues.

AalexbocciaMay 9, 2016

Form updated but still does not work.

I sent an email to you.

Thank's, Alex

SSemicolon WebSTAFFMay 10, 2016

Hello,

We have just checked out your Website and you will need to add the enctype="multipart/form-data" attribute to your <form> in order to send the Files. Example:

This should definitely fix your issue. Let us know if we can help you with anything else or if you find any further issues.

AalexbocciaMay 10, 2016

Enter the code as informed me did not work .

<form enctype="multipart/form-data" class="nobottommargin" id="template-contactform" name="template-contactform" action="include/sendemail.php" method="post">

Help me please!

SSemicolon WebSTAFFMay 12, 2016

Hello,

Can you please provide us with your FTP Details so that we can check out the Exact Issue with your Form. Please Set the Reply as Private so that only we can check the Private Information. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

AalexbocciaMay 14, 2016

Hello!

send e-mail.

Thank's, Alex

SSemicolon WebSTAFFMay 16, 2016

Hello,

We have sent you an Email regarding the issue. The most likely issue here is the PHP mail() function which is not working on your Servers. Please contact your Web Hosting Provider regarding this or add the SMTP Authentication to allow the Forms to send emails.

This will definitely fix your issue as there no other issues with the codes used. Let us know if we can help you with anything else or if you find any further issues. Thanks. :)

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard