SMTP noit woirking.

Issues related to forms.
Post Reply
User avatar
gregbarnes
 
 
Posts: 39
Joined: Sun Oct 27, 2013 8:15 am
Location: Perth, Western Australia
Contact:

SMTP noit woirking.

Post by gregbarnes »

I have built a website using WWB https://www.isacimages.com and I have a form on my site (https://www.isacimages.com/contact_us-smc.php) that I donated to a music club so members can submit their setlists.
I use the DBTS form processor. The members fill in their setlists and the names of other players in their set from a drop down list, click Submit and I receive the setlist by email and I use that data to make up the program for when they play at a local tavern, once a month. I also have an Autoresponder which is sent to their email as confirmation.
The form works well. Recently I have been made aware that some members who use @gmail accounts, aren't receiving the autoresponder email. All others get the confirmation.
I was told by my ISP that I should be using the SMPT system and noticed that was available in the WWB form. So I removed the DBTS form processor and set up the PHPmailer with SMPT settings from my ISP. Sadly it doesn't work and my ISP has no idea as to why it does not work. I have written a simple 2 page site with a home page and the form and placed it into a folder on my website to test it https://www.isacimages.com/-SMC-FORM-TEST/index.html
The error is "Error Code 500 - Internal Server Error". I have checked with my ISP and all is OK on there end. They are suggesting something wrong in the PHP file.
My settings in the form are:
Mail engine: PHPMailer - SMTP
SMTP host: mail.isacimages.com
SMTP port: 465
Use SMTP Authentication is checked.
SMTP username: my email address
SMTP password: my email password
SMTP encryption: SSL

I need someone to hold my hand in setting up this email, if at all possible OR if someone can send me a page I can use as a template to get the settings correct - Much appreciated.
Cheers for now,
Greg
User avatar
BaconFries
 
 
Posts: 5952
Joined: Thu Aug 16, 2007 7:32 pm

Re: SMTP noit woirking.

Post by BaconFries »

They are suggesting something wrong in the PHP file.
When you receive a 500 error it is server related (as you have wrote) and not of the program or the php used. 99.9% of the time hosting providers always blame the php when it it is really a issue with them. If you search the forum and similar posts you will read they always blame the php and not themselves.

I notice that the test page there is no form on it but it is set to html this is incorrect when using the likes of forms that use php the the page extension requires it to be .php

Providing a "Template" wouldn't really help you as each form and its settings will be different for each user and there host.
Please see the following Forms FAQ
Reading from ***Very Important Note***
Including
Emails are not arriving in my inbox...
What if my host does not support php mail or php mailer?
MGD4me
 
 
Posts: 282
Joined: Tue May 02, 2017 11:56 pm
Location: British Columbia, Canada

Re: SMTP noit woirking.

Post by MGD4me »

SMTP username: my email address
Just a thought here, but make sure that "my email address" is an email account on the server.

The server needs to "authenticate" that mail is to be sent only by an existing account, and not by random anonymous senders.
User avatar
gregbarnes
 
 
Posts: 39
Joined: Sun Oct 27, 2013 8:15 am
Location: Perth, Western Australia
Contact:

Re: SMTP noit woirking.

Post by gregbarnes »

Thanks for the reply. My ISP has been extremely helpful and are genuinely trying to help solve the issue, they are a great bunch of guys. My email account is on the server. My website is https://www.isacimages.com and my email is info@isacimages.com They did send through information about an error that was logged: [16-May-2025 02:39:10 Australia/Sydney] PHP Parse error: syntax error, unexpected '[' in /home/dartmast/isacimages.com/-SMC-FORM-TEST/PHPMailer.php on line 167.
I don't know anything about PHP so that was of no use to me.
It doesn't look like I will be able to solve this issue, which is disappointing, as I've just paid for the version 20 and it was a waste of money. Cheers and thanks again for replying.
Cheers for now,
Greg
User avatar
wwonderfull
 
 
Posts: 1588
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: SMTP noit woirking.

Post by wwonderfull »

As @baconfires has stated which is true. Most of the times it is the hosting provider blaming the code and not their server settings. I think you should try and test it on XAMMP, WAMP or Largon Localhost. I am sure this problem can be figured out.

Note smtp may not work because of various reasons the main ones are DNS Misconfigurations, Authentication Problems, Hosting Provider Issues, Policy Violations and many more.
User avatar
Pablo
 
Posts: 23496
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: SMTP noit woirking.

Post by Pablo »

Maybe the PHP version on the server is too old? You will need at least 5.6, but preferable 8.x

Note that this error has nothing to do with the WWB. It's a configuration issue.
User avatar
gregbarnes
 
 
Posts: 39
Joined: Sun Oct 27, 2013 8:15 am
Location: Perth, Western Australia
Contact:

Re: SMTP noit woirking.

Post by gregbarnes »

I've asked for their version of PHP so waiting for their reply.
Are you saying that this error is not a PHP error?
[16-May-2025 02:39:10 Australia/Sydney] PHP Parse error: syntax error, unexpected '[' in /home/dartmast/isacimages.com/-SMC-FORM-TEST/PHPMailer.php on line 167.
Cheers for now,
Greg
User avatar
wwonderfull
 
 
Posts: 1588
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: SMTP noit woirking.

Post by wwonderfull »

The code does have its updated standard. because outdated practice creates security volubility and even instability. As pablo has mentioned you should update your php version and see if it resolves.

more information can be found here https://stackoverflow.com/questions/358 ... -phpmailer
https://www.php.net/manual/en/function. ... eplace.php
User avatar
Pablo
 
Posts: 23496
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: SMTP noit woirking.

Post by Pablo »

The error is not specific to WWB. It's an error in PHP Mailer. This usually indicates an outdated PHP version.

See also this related information:
https://github.com/PHPMailer/PHPMailer/issues/2571
User avatar
gregbarnes
 
 
Posts: 39
Joined: Sun Oct 27, 2013 8:15 am
Location: Perth, Western Australia
Contact:

Re: SMTP noit woirking.

Post by gregbarnes »

Thanks Pablo. I upgraded my PHP version to 8.3 via my cPanel account. That seems to have got things working using the built in SMTP system. I now get the email sent to my inbox and the member filling in the form gets a confirmation email to their inbox. The success page works too after hitting the submit button. My issue is that the form data isn't included in the email I receive and the member also has no form data in their confirmation email. Thanks for all your help, much appreciated.
Cheers for now,
Greg
User avatar
Pablo
 
Posts: 23496
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: SMTP noit woirking.

Post by Pablo »

To be able to help you I need to see all your form settings.

Image
Post Reply