Osclass Support Forums

General osclass questions => General discussion => Topic started by: alex7070 on March 02, 2021, 11:34:39 AM

Title: Question about configuring Gmail for sending emails
Post by: alex7070 on March 02, 2021, 11:34:39 AM
Hi! In the settings for mail, I see

Apache Module mod_ssl is not loaded

Does this mean I won't be able to use Gmail to send? How in this case to configure sending emails from the site?

Title: Re: Question about configuring Gmail for sending emails
Post by: MB Themes on March 02, 2021, 12:38:34 PM
@alex7070
I think this mode is disabled in most hostings and has no impact on setting up of mail server.
Title: Re: Question about configuring Gmail for sending emails
Post by: alex7070 on March 02, 2021, 12:56:26 PM
I filled in all the fields, but the test email didn't go for some reason. What could be the problem? Maybe you can recommend other email services besides Gmail?
Title: Re: Question about configuring Gmail for sending emails
Post by: MB Themes on March 02, 2021, 01:05:37 PM
@alex7070
Check docs, try to switch smtp authentication. Fill all the fields that are listed on configuration page (!)
Gmail works OK for me.
Title: Re: Question about configuring Gmail for sending emails
Post by: alex7070 on March 02, 2021, 01:16:04 PM
Your hosting also says Apache Module mod_ssl is not loaded?
Title: Re: Question about configuring Gmail for sending emails
Post by: alex7070 on March 02, 2021, 01:43:50 PM
It would be nice if the script can use the standard php sendmail function. I don't think spammers will use osclass. And if someone decides to engage in spam, then this is not a problem for the developers of the script for the message board.
Title: Re: Question about configuring Gmail for sending emails
Post by: MB Themes on March 02, 2021, 01:57:11 PM
@alex7070
Yes there is a lot of spam bots around osclass.
Title: Re: Question about configuring Gmail for sending emails
Post by: alex7070 on March 02, 2021, 02:13:07 PM
This is how the hosting should usually respond in case of spam. Nowadays, most hosting providers are on guard against spam and easily block a suspicious site. This does not mean that conscientious users should not use a useful standard php function.
Title: Re: Question about configuring Gmail for sending emails
Post by: MB Themes on March 02, 2021, 02:28:18 PM
@alex7070
You may read on google why not to use PHP mail() function.
Title: Re: Question about configuring Gmail for sending emails
Post by: alex7070 on March 02, 2021, 03:41:11 PM
It turns out that my site will not fully work without switching to hosting with Apache Module mod_ssl enabled :(
Title: Re: Question about configuring Gmail for sending emails
Post by: MB Themes on March 02, 2021, 03:47:48 PM
@alex7070
I think this mode is disabled in most hostings and has no impact on setting up of mail server.
Title: Re: Question about configuring Gmail for sending emails
Post by: alex7070 on March 02, 2021, 03:57:15 PM


But I did everything according to the instructions with Gmail. I have also tried yahoo mail with instruction

https://help.yahoo.com/kb/pop-access-settings-instructions-yahoo-mail-sln4724.html?guccounter=1&guce_referrer=aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS8&guce_referrer_sig=AQAAAELMz8AfvIK-y9EPwl4Mjd6ipIlWJKwGgtn2JY9d9JeFkHUAXod_woxpMCazzoGdve0b63gud5uEb8MTqFywthGh12mGZX5M1sHbwbpNpOsTyu0og1m82f3kcjpkMocUBQTnFSu3qEkgM42BbiEOy2aj-e-O6q_A9tjVt-dtWdv7

Test email was not sent

Title: Re: Question about configuring Gmail for sending emails
Post by: MB Themes on March 02, 2021, 04:24:09 PM
@alex7070
Tested with my gmail and worked properly. As I told few settings needs to be tested like smtp authentication.
Make sure to check your error log as well.
Title: Re: Question about configuring Gmail for sending emails
Post by: alex7070 on March 02, 2021, 05:53:58 PM
I have attached screenshot of the settings. That's right, am I not wrong?
Title: Re: Question about configuring Gmail for sending emails
Post by: MB Themes on March 02, 2021, 06:21:07 PM
Read previous answers and documentation.
Title: Re: Question about configuring Gmail for sending emails
Post by: alex7070 on March 02, 2021, 06:35:35 PM
This event was not reflected in error_log, I looked. What could be the problem?
Did I fill in the settings correctly? I was definitely not mistaken with the login and password of my gmail.
Title: Re: Question about configuring Gmail for sending emails
Post by: MB Themes on March 02, 2021, 07:13:19 PM
Make sure to show php errors and try ie registration that send email.
Title: Re: Question about configuring Gmail for sending emails
Post by: alex7070 on March 02, 2021, 07:21:49 PM
Yesterday's 500 Error got into the report, but today's (non-sending mail) was not reflected in the report. What does ie registration mean?
Title: Re: Question about configuring Gmail for sending emails
Post by: MB Themes on March 02, 2021, 09:15:25 PM
When registering, email is sent. If mail is not configured properly, it will throw error.
Title: Re: Question about configuring Gmail for sending emails
Post by: alex7070 on March 03, 2021, 09:50:08 AM
I set up an email account with my hosting cpanel and sending emails started working with it. Doesn't work with Gmail. Thanks for the help!
Title: Re: Question about configuring Gmail for sending emails
Post by: MB Themes on March 03, 2021, 10:37:16 AM
@alex7070
It does work with gmail for me  ::)
Title: Re: Question about configuring Gmail for sending emails
Post by: alex7070 on March 03, 2021, 10:44:03 AM
Your hosting enable Apache Module mod_ssl?
Title: Re: Question about configuring Gmail for sending emails
Post by: MB Themes on March 03, 2021, 11:03:56 AM
@alex7070
No it does not support apache module mod_ssl.
Title: Re: Question about configuring Gmail for sending emails
Post by: pipetko on March 31, 2021, 09:11:16 PM
As I always SAY SSL is not working ( mostly because the error " mod_ssl " ). But even with working one it will still not work in SSL. So leave the field empty and will start working. P.S. For some reason in the last versions ( not only the version of Osclasspoint but in other versions too ) google email server is not working in OC
Title: Re: Question about configuring Gmail for sending emails
Post by: MB Themes on April 01, 2021, 07:51:11 PM
Foe me gmail works.
Ssl auth is dependant on hosting, I do not think there is relation between mid_ssl and ssl auth not functional.
Ie on my hosting ssl create delay when sending mail, anyway I will try to reserve time to look on it
Title: Re: Question about configuring Gmail for sending emails
Post by: pipetko on April 08, 2021, 11:59:54 PM
Try with blank on ssl, just delete the ssl in the text area and leave it blank it will work
Title: Re: Question about configuring Gmail for sending emails
Post by: alex7070 on April 09, 2021, 07:20:24 AM
In any case, sending via gmail is unreliable. They can make restrictions in case the emails seem suspicious to them or there are a lot of them. Better to use for sending smtp of hosting.
Title: Re: Question about configuring Gmail for sending emails
Post by: MB Themes on April 09, 2021, 10:20:46 AM
@alex7070
I know cases where hosting can do the same, it happened to me few times, just some people marked mail as spam and it stopped to work :)
Title: Re: Question about configuring Gmail for sending emails
Post by: alex7070 on April 09, 2021, 03:08:26 PM
Have you tried sending mail via yahoo? It doesn't work for me with either yahoo or gmail. Maybe something is wrong with my hosting.
Title: Re: Question about configuring Gmail for sending emails
Post by: MB Themes on April 09, 2021, 03:43:03 PM
Well, ie for gmail I remeber I had to specially allow using account for sending mails from application.
Title: Re: Question about configuring Gmail for sending emails
Post by: alex7070 on April 09, 2021, 04:08:38 PM
How did you allow gmail to be used to send emails? In your gmail account? I have not noticed such settings. Could you show a screenshot of these settings?
Title: Re: Question about configuring Gmail for sending emails
Post by: MB Themes on April 09, 2021, 04:17:03 PM
@alex7070
It was years ago :)

Go to https://security.google.com/settings/security/apppasswords and sign in to your account.
Select Mail from the list of apps available.
Select Other from the device list.
Enter your Custom Name. ...
Click the Generate button.
Copy and save the password to your computer.
Click the Done button, and that's it.

https://support.google.com/a/answer/176600?hl=en
https://support.google.com/accounts/answer/185833?hl=en
https://www.jotform.com/help/392-how-to-use-your-gmail-account-as-your-email-sender-via-smtp
Title: Re: Question about configuring Gmail for sending emails
Post by: alex7070 on April 09, 2021, 05:04:33 PM
I just tried it and got a message: This setting is not available for your account

Do you have a special gmail account?