sendemail.php customization

10 replies · opened Oct 2, 2016

Llaurel911Oct 2, 2016

First, thanks for a fantastic product. I would appreciate as much detail as possible in your answer, as I only muddle my way through customizing your product.

When I use the sendemail.php I receive the "success" message. My frustration is that it pops up on the screen and to get back to the website you have to use the back arrow on the browser. I'm not sure our users will get that process. Is there a way to:

  1. format the message as a pop-up that can be closed (so you can still see the site when the pop-up shows)?
  2. or, a redirect back to website?

(see SEND US AN EMAIL button form in promo area. https://www.waynecomm.com/preview_new_site/1-wayne-index )

Thank you in advance.
Mo

Llaurel911Oct 2, 2016

I explored the commentary a bit more and found I was missing some code on my page. (I added the text/javascript that I saw in the comments.)
Now when I test, I can fill in the form but when I click submit I just get the spinner and it just sits there spinning. (the email does send and I do receive)

If you could please just help me with this issue. Ultimately, what I'd like is to hit submit, have an acknowledgment that the email was sent, and have the email modal and acknowledgement message close.

Thanks for your help.

mo

SSemicolon WebSTAFFOct 3, 2016

Hello,

Apologies about the Inconveniences! Adding Additional Fields to the Forms and include/sendemail.php File is Definitely Possible and there are 3 Steps to configure this in the include/sendemail.php File:

  1. Find the following code and duplicate it to add the New Field:
$name = isset( $_POST['template-contactform-name'] ) ? $_POST['template-contactform-name'] : '';

Example:

$newfield = isset( $_POST['template-contactform-newfield'] ) ? $_POST['template-contactform-newfield'] : '';

Make sure that the template-contactform-newfield is same as the Form Input’s name attribute in the HTML.

  1. Now, find the following code just a few lines below and duplicate it to add the New Field:
$name = isset($name) ? "Name: $name

" : '';

Example:

$newfield = isset($newfield) ? "New Field: $newfield

" : '';
  1. You now simply need to Add the New Field to the following code:
$body = "$name $email $phone $service $message $referrer";

Example:

$body = "$name $email $phone $newfield $service $message $referrer";

This should definitely work fine. But, since you are facing an issue, can you 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.

Llaurel911Oct 4, 2016

Hello.

I may have the wrong title on this thread or my question wasn't clear.

Per your instructions, I changed the sendemail.php file to read as indicated above. My template had an abbreviated version of the code in step 1. I continue to have success in receiving the email.

The current issue: When I enter the test information and hit submit, I get the spinner and no message about the email being received or an error. (I do receive the email.)

https://www.waynecomm.com/preview_new_site/1-wayne-index

The goal: After I hit submit, I get the confirmation message (and I continue to receive the email). Originally, when I actually received a confirmation message, it was a simple line of text (no modal, no close button) in a window.

Again, thank you for your attention to my issue.

Mo

Llaurel911Oct 5, 2016

Good day. I started this thread under a different topic title but wasn't sure my request was clear.

My contact form works, even with the added fields. My request is to have the "your message was received" message in a different format. They way it works now, a new window with just a simple text message, doesn't give the visitor a way back to the site. The short-codes with the green banner appearing at the top of the page looks good and just appears, then fades, leaving the visitor on the main page. That will do! Where do I put the short code to make that happen? (I don't have trained skills in this, that why I love your template. You make me look good.)

My test website can be found at https://www.waynecomm.com/preview_new_site/1-wayne-index

Mo

SSemicolon WebSTAFFOct 5, 2016

Hello,

We have just checked out your Website and the issue is that you are using the Older Version of the Template which is why you are facing these issues. In order to make sure that the Contact Forms work properly, please consider updating your Contact Form HTML Codes (contact.html), PHP Code for Contact Form Processing (include/sendemail.php File) and the Contact Form AJAX Functionality (js/functions.js File) so that everything works correctly as expected. Please follow the steps provided in the Documentation > Upgrade V3 to V4 Section for Upgradation Instructions.

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

Llaurel911Oct 6, 2016

Ah...that explains why I couldn't always find the code people referred to...didn't know I had 3.whatever.

I decided they easiest way to fix this is to buy a new license for 4.1. Thank you for your assistance.

SSemicolon WebSTAFFOct 6, 2016

Hello,

Thank You so much for your Patience! :)

Indeed, the best way to fix most issues would be to stay Up-to-date with the Latest Version of Canvas. However, you can do it for FREE and there is no need to Buy an Additional License! You can simply download the Updated Package from your ThemeForest's Download Section: https://themeforest.net/downloads .

Hope this Helps! Do let us know if we can help you with anything else or if you find any further issues with Canvas.

Llaurel911Oct 8, 2016

I'm back. www.waynecomm.com

I did buy the new license (I was downloading the updates from v3, but for some reason didn't get the new files that way.). Anyway, I recreated the pages in v4 and now I am getting a line 18 error for both the contact form and the quick contact.

Fatal error: Class 'PHPMailer' not found in /home/content/82/7777782/html/include/sendemail.php on line 18

Also, the owl logo slider isn't appearing.

Thank you,

Mo

Llaurel911Oct 9, 2016

Happy Day! I worked this out over the weekend. I now get the green notice that says success and the carousel shows. (Both not on my computer...which I was testing on...but on a different computer.) Maybe my security doesn't allow the pop-up model.

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