[SOLVED] Mail not sent

6 years 8 months ago - 6 years 8 months ago #296947 by mew
[SOLVED] Mail not sent was created by mew
No matter what I did, Joomla sent all mails correctly and CB did not. There's a lot of threads trying to deal with this.
I finally found the missing line in SMTP handling. My host was configured as localhost without security or authentication.

In the file:
/libraries/CBLib/CB/LegacyComProfilerFunctions.php

Find and adjust the lines to clear a single value, which otherwise remains default "1", and blocks proper SMTP working in my case.
..
			if  ( $smtpsecure === 'tls' && substr( $mail->Host, 0, 6 ) !== 'tls://' ) {
				$mail->Host		=	'tls://' . $mail->Host;
			} else {
			  $mail->SMTPAutoTLS = false;  /* THIS ELSE BLOCK WAS REQUIRED */
			}
..

Please Log in to join the conversation.

6 years 8 months ago #296965 by krileon
Replied by krileon on topic [SOLVED] Mail not sent
That's an ok solution for a localhost usecase where you need to send non-secured SMTP emails from localhost. Otherwise that turns off STARTTLS usage permanently. I'm a bit concerned your host has no security or authentication for SMTP. Maybe they're just forcing it to sendmail or PHPMailer in which case you shouldn't need to configure SMTP at all, but change the mailer type.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.161 seconds

Facebook Twitter LinkedIn