E-mail Errors / PHP Set-up / Dialog

Issues related to forms.
Post Reply
scribeman01
 
 
Posts: 107
Joined: Mon Nov 18, 2024 7:58 pm
Location: United States - Wisconsin

E-mail Errors / PHP Set-up / Dialog

Post by scribeman01 »

https://drive.google.com/drive/folders/ ... drive_link
In the beginning, I was at least to get my internal emails from my Hostinger webserver host to work and I would get my success & error pages accordingly. Now I just get an error when I test it. My website is https://fix-my-bytes.com/. My vanity email hosted by Hostinger has been successfully set up so I can email or receive emails from it directly. But using the same parameters, I can't get it to work. I've only uploaded the "Contact Page" with the "Success" and "Error" pages. When I send a message, it defaults to the error page. I have the "success" & "error" pages entered in the form properties (enable form checked in both the dialog & form properties. The settings for Hostinger for SMTP set-up: ncoming Server (IMAP):

Host: imap.hostinger.com
Port: 993
Encryption: SSL/TLS
Username: Your full Hostinger email address (e.g., yourname@yourdomain.com)
Password: Your Hostinger email account password

Outgoing Server (SMTP):

Host: smtp.hostinger.com
Port: 465
Encryption: SSL
Username: Your full Hostinger email address (e.g., yourname@yourdomain.com)
Password: Your Hostinger email account password

In the "Advanced Form Properties," there is a exclamation mark after "SMTP Host," but "smtp.hostinger.com" is the correct entry per Hostinger. Hopefully something very minor as I've been trying to make this work all day and have been going around in circles with Hostinger support and can only think that I strayed from how to use the Dialogue with this form. This is the last functional issue, as everything else seems to be loading well and after I get past this, to work on a links page next. Thank you Pablo!
User avatar
Pablo
 
Posts: 23223
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: E-mail Errors / PHP Set-up / Dialog

Post by Pablo »

To be able to help you I need to know what the exact error is.
Please see the "*** VERY IMPORTANT NOTE ***" in the FAQ:
viewtopic.php?f=10&t=32967

If it previously worked then it can only be a configuration issue or your webhost has changed something.

What did you change before it stopped working?
scribeman01
 
 
Posts: 107
Joined: Mon Nov 18, 2024 7:58 pm
Location: United States - Wisconsin

Re: E-mail Errors / PHP Set-up / Dialog

Post by scribeman01 »

In the beginning, at least my success & error pages were working. Now, I get error message with a rectangle around it. What changed was when I tried to add the hostinger email parameters and from just handling the dialogue & form property settings so much, I veered off course. I will have to reconstruct this step by step from scratch to understand where I veered off. Both the properties in the Dialogue and the Layout Grid holding the form should both be form enabled with the Success/Error pages, and web parameters for Hostinger? I will sleep on this - not thinking straight anymore on this. Thank you Pablo.
User avatar
Pablo
 
Posts: 23223
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: E-mail Errors / PHP Set-up / Dialog

Post by Pablo »

I suggest to first create a simple form (on a new empty page) without a popup. Then you can be sure nothing else on the page conflicts with form.
Also, on the error page add ##error## as documented in the FAQ.
scribeman01
 
 
Posts: 107
Joined: Mon Nov 18, 2024 7:58 pm
Location: United States - Wisconsin

Re: E-mail Errors / PHP Set-up / Dialog

Post by scribeman01 »

Still stalemated. How can I send you screenshots? 1) When I test the message form, I get my email error page instead of the success page. I've gone over the web settings a zillion times with Hostinger - the same I shared with you. 2) My only other alternative is to change to 587 port & TLS. 3) The Hostinger web mail I set up is working correctly when I send & receive emails directly from the set up address. 4) In the Advance Form Processor Properties, the message associated with the exclamation mark says the following: "If you are using SMTP server you have specified is reachable from your website's server. For example, in most cases you cannot use your ISP's mail server like gmail. If you need more information, you can contact your webhost for assistance." 5) I've confirmed with Hostinger that "smtp.hostinger.com" is the correct entry, 6) This is where I'm STUMPED - do I REPLICATE THE "Mail Engine Settings" as well as the "Success & Error" Pages in BOTH the FORM properties & the Dialogue Properties?? Both "enable form" boxes are checked, 7) There is no added on HTML coding I added on the contact page and both the "Success" & "Error" Pages are HTML Pages as instructed. 8) If you go to my contact page and try to send me a message, you will see the error pop-up message via the dialog box - -

Code: Select all

https://fix-my-bytes.com/contact-us.php
Thank you.
User avatar
BaconFries
 
 
Posts: 5867
Joined: Thu Aug 16, 2007 7:32 pm

Re: E-mail Errors / PHP Set-up / Dialog

Post by BaconFries »

How can I send you screenshots?
With uploading to the forum being disabled then you can upload the image to your own site and provide a url or upload to the follow https://imgbb.com/ or if you have Dropbox or Google drive you can share it with them.
Why are you opening your homepage within the modal popup?.
Why are you using two forms as seen in the page html source?.
User avatar
crispy68
 
 
Posts: 2995
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: E-mail Errors / PHP Set-up / Dialog

Post by crispy68 »

I've never used PHPMailer - SMTP. I also use hostinger and I set the Mail Engine to "PHPMailer - mail" and have no issues with emails working. The exclamation point is not necessarily and error but just an important note.
scribeman01
 
 
Posts: 107
Joined: Mon Nov 18, 2024 7:58 pm
Location: United States - Wisconsin

Re: E-mail Errors / PHP Set-up / Dialog

Post by scribeman01 »

Thank You @BaconFries & @Crispy68. Thank you for the guidance on how to get screenshots to you when needed. I've been using Google Drive for loading my web samples. You raise two questions that I don't have an intelligent answers for. I'm not clear what Modal Popup you'e referring to on my homepage (or I'm not associating with what you're observing). Regarding the two forms you're seeing (on the Contact US page), I only intended for one form and that it should be the same form the reduces down with the breakpoints I inserted on that page. I suspect part of my issues on this page are related to what you're observing and I'm missing? What should I be looking at that show two forms being used? @Crispy68, also very interesting that you're using the Mail Engine "PHPMailer - mail with Hostinger. I will switch to that & retry. When you chose to pick that one out in the beginning, how did you know/determine that was the correct one? What's the difference? So, I guess I'm confused when using the Dialog box if I duplicate the same information into the separate form properties when right clicking on the form, or perhaps I'm duplicating and this is where you see two forms instead of one? It may be helpful to clarify that in how a layout grid being used for the form should be set up relating to the Dialogue item. Thank you both!
User avatar
Pablo
 
Posts: 23223
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: E-mail Errors / PHP Set-up / Dialog

Post by Pablo »

Step 1
Remove the Dialog. If something does not work then keep it simple. You can always make it more complicated later, once it works.

Step 2
remove the dialog in form's 'target' property.

Step 3
Add ##error## to the error page, as documented in the FAQ.

Step 4
Find out the correct settings for the form. Only your webhost can give you the right settings. They are not
scribeman01
 
 
Posts: 107
Joined: Mon Nov 18, 2024 7:58 pm
Location: United States - Wisconsin

Re: E-mail Errors / PHP Set-up / Dialog

Post by scribeman01 »

Yes, we're functional!! When you enter a truncated email address, it tells you but it can't tell you if you're sending a incorrect email address. But this is 2/3rds the battle. One of my clients was trying to submit a message via her Yahoo email, and it keeps getting blocked. I've been over this with Hostinger regarding the user having a incorrect DMARC record setting, verifying their SPF & DKIM records are properly configured? That seems odd for such a big provider by Yahoo. @Crispy68, you indicated you're also a Hostinger user. Have you had any issues with emails coming to you being blocked? Did you add any additional SPF or DKIM records? THANKS!
scribeman01
 
 
Posts: 107
Joined: Mon Nov 18, 2024 7:58 pm
Location: United States - Wisconsin

Re: E-mail Errors / PHP Set-up / Dialog

Post by scribeman01 »

Still about 2/3rds of the submissions are not getting through. One of them wound up in the spam folder along with the inbox. Direct emails to that address going back & forth work. So, I was using PHPMailer - mail form option, but am going to go back to "PHPMailer - SMTP." I was using this setting before getting rid of the Dialoge, per Pablo's suggestion.
User avatar
Pablo
 
Posts: 23223
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: E-mail Errors / PHP Set-up / Dialog

Post by Pablo »

The software will use the same script for each form submission. So, if there is a restriction then it's on the server side.
Only your webhost can tell you why the email is not sent. Based on their feedback you can then update your form's configuration.

If you need further assistance then please read the 'very important note' in the FAQ.
viewtopic.php?f=10&t=32967
scribeman01
 
 
Posts: 107
Joined: Mon Nov 18, 2024 7:58 pm
Location: United States - Wisconsin

***SOLVED***Re: E-mail Errors / PHP Set-up / Dialog

Post by scribeman01 »

With your help, Message Submission form not working and after submission issue fixed, resolving issue with majority of email message submissions being blocked by my host - Hostinger.com. Discussion: 1) After you (Pablo) suggested I get rid of the Dialogue box set-up, and solely enable layout grid form & use its settings - that eliminated that error immediately. Pablo, the question is, how do you determine which one to use? In my case, I utilized one of the form contact blocks and tweaked my labels to the form boxes accordingly, 2) The majority of emails being blocked by Hostinger was trickier for me, but there were several issues: A. The Forms FAQ Page viewtopic.php?f=10&t=32967 contained 2 solutions as reminded by Pablo: a. Displaying (and hiding the error message) needed to be inserted on this page & b. Point #6 from FAQ Page: "If changing the email in the form properties address does not work then rename the 'email' editbox to 'e-mail'. This will prevent the script from using the specified email address as the 'from' address.", 3) Regarding the majority of the message submissions being blocked by Hostinger - @Crispy68 uses "PHP-mailer" for his Hostinger mail engine. I was using that also and getting a trickle of the message submitting in. I was using this option because I kept getting errors when I attempted to use the suggested Hostinger settings (PHP Mailer-SMTP) and using their authentication. This problem was resolved by #6 on the Form FAQ sheet regarding changing the email properties in the email box. In order to use the PHP Mailer-SMTP option, the email form box MUST be configured as e-mail in the editbox, 4) Once the aforementioned steps were resolved, I am now receiving all submission samples :-) THANK YOU!
Post Reply