SMTP Mail configuration not working - mrbs - 1.11.0
Brought to you by:
jberanek
(Transferred from the general mailing list)
I tried to configure the mailing system for the booker using SMTP but it seems to be not working. Tried it on both local and server.
Can you please help me out here? it will be very much grateful of the team for the help. much appreciated.
Have you tried debugging it using
Yes i did, but aparently it doesnt show any error on browser.
The debug information will be in your PHP error log. If you want it to appear in your browser set
This is what i have in the config.inc.php at the end.
i have added this configurartion for the mail but it is not working. i dont recieve mail neither at "Forgot Password" nor after booking the meeting.
Please help me out
$debug = true;
$mail_settings['debug'] = true;
$mail_settings['debug_output'] = 'browser';
$mail_settings['admin_backend'] = 'smtp';
$mail_settings['details'] = true;
$mail_settings['html'] = true;
$mail_settings['booker'] = true;
$mail_settings['from'] = 'no-reply@neoniche.net';
$mail_settings['use_from_for_all_mail'] = false;
$smtp_settings['host'] = 'smtp-relay.sendinblue.com';
$smtp_settings['port'] = 25;
$smtp_settings['secure'] = 'ttl';
$smtp_settings['username'] = '';
$smtp_settings['password'] = '';
Are you getting any debug output?
i do get debug output but its noting related to the Email.
E_USER_NOTICE in /var/www/neonichesolutions/mrbs/lib/MRBS/DB_mysql.php at line 402
Unknown database type '(Ubuntu)'
and some language file warnings and deprecated error output.
Please help me campbell. i m struggling with this since last three days and with no output.
i m kinda worried right now :(
i am hopefull that you can help me with this.
I am using the same configuration on my other php projects for the Mail configuration and mails are working there.
Like i kept port as 587 and secure as ttl.
i m adding username password and trying but mail is not getting sent.
i also tired to dig in file but the mail sending function is not getting called (i guess, i m not sure not good with OOPs).
Idk what step i m missing here. Rest every thing seems to be working fine except the mail feature
$debug = true;
$mail_settings['debug'] = true;
$mail_settings['debug_output'] = 'browser';
$mail_settings['admin_backend'] = 'smtp';
$mail_settings['details'] = true;
$mail_settings['html'] = true;
$mail_settings['booker'] = true;
$mail_settings['from'] = 'no-reply@neoniche.net';
$mail_settings['use_from_for_all_mail'] = false;
$smtp_settings['host'] = 'smtp-relay.sendinblue.com';
$smtp_settings['port'] = 587;
$smtp_settings['secure'] = 'ttl';
$smtp_settings['username'] = '';
$smtp_settings['password'] = '';
Switch to sending the mail debug output to your error log
and have a look in your PHP error log for debug output.
tried that as well but no log file is created
Last edit: Campbell Morrison 2023-03-31
Send the debug output to the log and look for your PHP error log. If you turn off
$debug = true;
then all your other debug output will go to the log as well so you will know you have found your log.Then try making a new booking.
By the way, I have edited out your database credentials from the debug output above. You might want to consider changing your username and password.
I am trying that.
Thank you so much for the editing out the username password. i have initiated the password change.
i will check the log file asap. i m not usre though if it is being generated at all
Hi Campbell, tried doing $debug = 'false' and set mail debug to log file but there was no log file generated.
Run the attached test program and it will tell you where your error log is.
Hi sir, I ran the following file and it doesnt give me any path or output. i checked the code and echoed "Hello" but nope it didnt show me the error log path.
just blank screen
In that case you need to modify your php.ini file so that error logging is enabled and you need to specify an error log file.
Hi Campbell,
Thanks so much for this log file instruction i did that.
following is the error i got in my log file. What do i do here?
Last edit: Campbell Morrison 2023-03-31
Try commenting out the line
'ttl' is not a valid option.
You also need to set
okay. I am checking this,
Hello Campbell,
Sorry to jump into this discussion but it looks like I'm having the same sort of issue when trying to set smtp.
Reason is the smtp server from my provider (Ionos) is known to be blacklisted almost everywhere, so I wanted to use of my "secured" smtp's.
Turns out that setting $mail_settings['debug'] = true;displays a nice output telling me that the message has been sent. Testing it with my own email address as recipient, I then get a returning error message stating that either SPF or DKIM protocols must be set....
I'm for instance trying with smtp.orange.fr, one of the major providers in France. I do have an account and all stuff and yet the msg gets back with an invalid auth....
Any idea as to how this could be addressed or am I making a mistake anywhere?
Thx
Philippe
Sorry, this is a different issue. Could you raise a separate ticket for it please? Thanks.
Hi Campbell, My mail seems to be working now but the secure $smtp_settings['secure'] = ''; is blank wont that be a problem?