e-com Posted April 12, 2023 Posted April 12, 2023 Module implements mail functionality using PHPMailer library. Module compatible with thirty bees 1.5.0 bleeding edge and already available in list of native modules. PHPMailer library is compatible with PHP 8.2, also it is worth replacing "Mail via swiftmailer" module with this module. 5 2
Beeta Posted August 18, 2023 Posted August 18, 2023 I'm trying it configuring google workspace routing without success. It replies with: Send Email Error: SMTP Error: Could not authenticate. Is it normal that the password in the smtp password field of the module configuration is visible?
datakick Posted August 18, 2023 Posted August 18, 2023 6 minutes ago, Beeta said: Is it normal that the password in the smtp password field of the module configuration is visible? That will be fixed in next version of module https://github.com/thirtybees/tbphpmailer/issues/1
Beeta Posted August 20, 2023 Posted August 20, 2023 How about the authentication error? I configured routing as Google documentation. I has to work simply with username and password but it replies with this error. I don’t think this is related to the visible password.
the.rampage.rado Posted August 21, 2023 Posted August 21, 2023 I think your smtp server is not right. Please, check it first. This error is not related to the visible pass in BO. Google has no eyes there 🙂
Beeta Posted August 22, 2023 Posted August 22, 2023 20 hours ago, the.rampage.rado said: I think your smtp server is not right. Please, check it first. This error is not related to the visible pass in BO. Google has no eyes there 🙂 The SMTP is right I followed option 1 and option 2 here: https://support.google.com/a/answer/176600?hl=en ...but this days are so hot here in Italy that maybe I'm following the wrong guides 🥵
the.rampage.rado Posted August 22, 2023 Posted August 22, 2023 Try smtp.gmail.com and the proper port for SSL or TLS.
Beeta Posted August 23, 2023 Posted August 23, 2023 As said in the previous post, I tried both. number 1 and number 2 options. Some time ago gmail lt create app password, but as far I see now it's not. maybe they deprecated? How maybe I see, I think I need to activate 2 step auth for that account, I'm going to try asap and update this thread.
Beeta Posted August 24, 2023 Posted August 24, 2023 I activated Gmail app password and now it works. smtp forward has less limitations but for now I think app password if more than enough, and in case of large newsletter sending better use a dedicated service.
Rhapsody Posted November 29, 2023 Posted November 29, 2023 (edited) Request Advanced Options Fields for Mail via PHPMailer Module I have one of my installations hosted on a Linux server with cPanel on GoDaddy. Don't ever use GoDaddy! The Outgoing SMTP requirements are almost impossible to set. I have finally figured out a working configuration for sending email in WordPress, and as a result am requesting some "advanced" options be added to the Mail via PHPMailer module. The current module will not support SMTP for GoDaddy, unless additional fields are included. Advanced Options fields requested: SMTPAutoTLS (boolean) - default to true, needs to be false for GoDaddy SMTPAuth (boolean) - default to true, needs to be false for GoDaddy Additionally it is requested that the option to use PHP's mail() function, be available as a setup option, similar to the Mail via Swiftmail module. This makes it easier to troubleshoot mail settings. For supporting information, the following is what I was able to get working in the WordPress wp_config file with the defined constants loaded via PHP code in the separate file below it. // SMTP Authentication replaces PHP mail define( 'SMTP_USER', '[email protected]' ); // Username to use for SMTP authentication define( 'SMTP_PASS', 'mypassword' ); // Password to use for SMTP authentication define( 'SMTP_FROM', '[email protected]' ); // SMTP From email address define( 'SMTP_NAME', 'John Smith' ); // SMTP From name define( 'SMTP_HOST', 'localhost'); //'localhost' for GoDaddy Linux cPanel hosting define( 'SMTP_PORT', '25' ); // 25 for GoDaddy SMTP port number - 465 or 587 will not work on GoDaddy define( 'SMTP_AUTOTLS', false ); // false required for GoDaddy define( 'SMTP_SECURE', '' ); // blank for GoDaddy Encryption system to use - ssl or tls will not work on Godaddy define( 'SMTP_AUTH', false ); // false for GoDaddy Use SMTP authentication (true|false) - GoDaddy requires false where most everywhere else true define( 'SMTP_DEBUG', 0 ); // for debugging purposes only set to 1 or 2 This is the PHP code in WordPress that sets up the SMTP // SMTP Authentication to replace PHP Mailer add_action( 'phpmailer_init', 'send_smtp_email' ); function send_smtp_email( $phpmailer ) { $phpmailer->isSMTP(); $phpmailer->Host = SMTP_HOST; $phpmailer->SMTPAuth = SMTP_AUTH; $phpmailer->Port = SMTP_PORT; $phpmailer->Username = SMTP_USER; $phpmailer->Password = SMTP_PASS; $phpmailer->SMTPSecure = SMTP_SECURE; $phpmailer->SMTPAutoTLS = SMTP_AUTOTLS; // required for GoDaddy $phpmailer->From = SMTP_FROM; $phpmailer->FromName = SMTP_NAME; } // end function send_smtp_email( $phpmailer ) Edited November 29, 2023 by Rhapsody added use PHP's mail() function comment
datakick Posted November 30, 2023 Posted November 30, 2023 @Rhapsody please file this enhancement requests on module github: https://github.com/thirtybees/tbphpmailer/issues
Rhapsody Posted December 1, 2023 Posted December 1, 2023 On 11/30/2023 at 2:38 AM, datakick said: @Rhapsody please file this enhancement requests on module github: https://github.com/thirtybees/tbphpmailer/issues @datakick - Done! Advanced Options Fields - https://github.com/thirtybees/tbphpmailer/issues/3 Option to use PHP Mail() for testing - https://github.com/thirtybees/tbphpmailer/issues/4 1
Rhapsody Posted January 12 Posted January 12 @datakick An update on the GoDaddy email configuration. It turns out the additional fields are not needed in the "Mail via PHPmailer" module. I did some more testing and found that the SMTP server must be set to the actual mail server on the "Mail via PHPmailer" module or there is an SSL certifcate validation issue. The "Mail via Swiftmailer" module worked with local host, probably because the SSL certificate validation was not enforced. I'm not sure how I can remove the enhancement request from Github. Possibly just a follow on comment that the additional fields are not required. The option to use PHP Mail() for testing should remain.
DRMasterChief Posted March 9 Posted March 9 (edited) I try to install the phpmailer module, i have installed the actual version for Github today, but there is the following error: (it says it could not install, because the version is not compatible with my tb version), i have tb 1.4.0 and php 7.4.33 what to do? is it really only for tb 1.5 and above? i can not send emails at the moment in the 1.4.0 shopversion, not sure why, so my idea was to try this module. Edited March 9 by DRMasterChief
the.rampage.rado Posted March 9 Posted March 9 If it does not show in the module list it's not supported, yes.
DRMasterChief Posted March 9 Posted March 9 that´s it - it showed up, but i cant install it..... weird
the.rampage.rado Posted March 9 Posted March 9 That's strange I just rolled back my test setup to 1.4 just to confirm and take a screenshot. Probably your module list is cached!? Those two additional modules are extracted functionality form the core. In 1.4 the email config is here: And those modules have nowhere to hook to work. You have to update to 1.5 and this functionality change is just one of the nice features that come with this version.
DRMasterChief Posted March 9 Posted March 9 Yes, thank you, i know about the emails. In my case the templates was gone from all modules /mails, not sure why. I now have copied all the mails again from a backup. I tried an update to 1.5 a few weeks before, but this was not possible (not absolutely sure what the reason is).
the.rampage.rado Posted March 9 Posted March 9 If you wish to update to 1.5.1 we could give assistance to best of our abilities 😉
the.rampage.rado Posted March 9 Posted March 9 Did you follow the guidance in this thread to setup the email transport and code minification modules that now you have?
DRMasterChief Posted March 10 Posted March 10 Yes, everything seems ok, phpMailer is installed; i am not sure about code minification modules (HTML, JS and CSS Minification v1.0.0) is not installed yet. And i´m not on php 8.x until now, i have 7.4.33 and this looks good. The shop is not "live" at the moment, but we have to go live april, so i hope to change to php 8 until then, but i do not use a standard theme and i am really not sure if it works with php 8.
the.rampage.rado Posted March 10 Posted March 10 Install the minification module too, otherwise you will not have this function. This was also extracted from the core, like the email transport method. Nothing to break, don't worry! 7.4 is OK, as 8 brings lot more changes and you will have troubles for sure with it. Also install Collect PHP Logs module and monitor there what errors you get so they can be fixed.
DRMasterChief Posted March 10 Posted March 10 Done! Thank you, CollectPHPLogs module is installed, just a few warnings right now, i am on it. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now