I'm trying to understand how the contact form works

9 replies · opened Jan 1, 2020

IitzikfishelyJan 1, 2020

if I'm using the template, and I press submit, can I make it send the info to my email? I've read the documentation about changing this part:

$toemails[] = array(
'email' => 'info@.co.il', // Your Email Address
'name' => '
Israel', // Your Name
);

but when I press on submit, nothing happens, do I need to do anything else?

SSemicolon WebSTAFFJan 1, 2020

Hello,

To receive Emails, you just need to change the above mentioned details. But sometimes according to your Server Configurations, the PHP mail() might be blocked by your Hosts. In this case you will need to use SMTP, instructions for which have already been mentioned in the Documentation > Forms Section. The include/form.php File should always return a JSON String for the Form Processor to show the Success/Error Notification correctly. In case nothing displays, simply add the .customjs Class to the .form-widget DIV and try submitting the Form. The PHP will display error (if any) so that you can troubleshoot further.

Additionally, it is recommended to Search the Support Forums for related solutions and articles.

Hope this Helps!

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

IitzikfishelyJan 2, 2020

will it work on a localhost while still developing? or does it have to be on a live domain for it to work?

SSemicolon WebSTAFFJan 2, 2020

Hello,

This wont work on Localhost. SMTP will still work if you are using Gmail or an External SMTP Service.

Hope this Helps!

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

IitzikfishelyJan 2, 2020

so once I go online how does it work? I just write the email it needs to be sent to? what email does the sending?

SSemicolon WebSTAFFJan 3, 2020

Hello,

When you open the include/form.php, it is self-explanatory. There is section called Receiver's Email and Sender's Email where you can setup the Email Addresses according to your needs.

Hope this Helps!

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

IitzikfishelyJan 3, 2020

yea... I saw the section you're talking about, but again... I'm trying to understand how it actually works? when someone fills in the form on my website and I'm receiving it to my email, what email does the sending process?

SSemicolon WebSTAFFJan 5, 2020

Hello,

The Email you set in the Sender’s Email section does the sending. However, if you setup SMTP Authentication, then the Email Setup there would do the sending. You can read more about email sending processes through the PHPMailer Library here: https://github.com/PHPMailer/PHPMailer .

Hope this Helps!

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

IitzikfishelyJan 5, 2020

That doesn’t make any sense
If I put just an email with no username and password how does it send it?

SSemicolon WebSTAFFJan 5, 2020

Hello,

It uses PHP mail() Function which does not require your Username and Password. As suggested, make sure that you go through the email sending processes through the PHPMailer Library here: https://github.com/PHPMailer/PHPMailer .

Hope this Helps!

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

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