*

pavini

  • *
  • 4 posts
AWS SES erro sending email
« on: January 04, 2022, 01:27:50 PM »
Hi everybody...

OsClass Version: 8.0.1
Plugin: Amazon SES Plugin

Afeter install and configure, on menu Users -> Users, chose any user and click in Show More... -> Re-send Activation Email I get this error:

[04-Jan-2022 08:54:19 America/Sao_Paulo] PHP Fatal error:  Uncaught Error: Call to undefined method PHPMailer\PHPMailer\PHPMailer::IsAmazonSES() in /home3/onshie65/mercadoaereo/oc-content/plugins/amazonses/index.php:72
Stack trace:
#0 /home3/onshie65/mercadoaereo/oc-includes/osclass/classes/Plugins.php(69): amazonses_phpmailer_init(Object(PHPMailer\PHPMailer\PHPMailer), Array)
#1 /home3/onshie65/mercadoaereo/oc-includes/osclass/helpers/hPlugins.php(46): Plugins::applyFilter('init_send_mail', Object(PHPMailer\PHPMailer\PHPMailer), Array)
#2 /home3/onshie65/mercadoaereo/oc-includes/osclass/utils.php(385): osc_apply_filter('init_send_mail', Object(PHPMailer\PHPMailer\PHPMailer), Array)
#3 /home3/onshie65/mercadoaereo/oc-includes/osclass/emails.php(631): osc_sendMail(Array)
#4 /home3/onshie65/mercadoaereo/oc-includes/osclass/classes/Plugins.php(42): fn_email_user_validation(Array, Array)
#5 /home3/onshie65/mercadoaereo/oc-includes/osclass/helpers/hPlugins.php(34): Plugins::runHook('hook_email_user...', Array, Array)
#6 /home3/onshie65/mercadoaereo/oc-includes/osclass/UserActions.php(541): osc_run_hook('hook_email_user...', Array, Array)
#7 /home3/onshie65/mercadoaereo/oc-admin/users.php(167): UserActions->resend_activation('1')
#8 /home3/onshie65/mercadoaereo/oc-admin/index.php(161): CAdminUsers->doModel()

For test propouse, I comment the line 72 (IsAmazonSES()) and get error on next line:

[04-Jan-2022 08:55:57 America/Sao_Paulo] PHP Fatal error:  Uncaught Error: Call to undefined method PHPMailer\PHPMailer\PHPMailer::AddAmazonSESKey() in /home3/onshie65/mercadoaereo/oc-content/plugins/amazonses/index.php:73
Stack trace:
#0 /home3/onshie65/mercadoaereo/oc-includes/osclass/classes/Plugins.php(69): amazonses_phpmailer_init(Object(PHPMailer\PHPMailer\PHPMailer), Array)
#1 /home3/onshie65/mercadoaereo/oc-includes/osclass/helpers/hPlugins.php(46): Plugins::applyFilter('init_send_mail', Object(PHPMailer\PHPMailer\PHPMailer), Array)
#2 /home3/onshie65/mercadoaereo/oc-includes/osclass/utils.php(385): osc_apply_filter('init_send_mail', Object(PHPMailer\PHPMailer\PHPMailer), Array)
#3 /home3/onshie65/mercadoaereo/oc-includes/osclass/emails.php(631): osc_sendMail(Array)
#4 /home3/onshie65/mercadoaereo/oc-includes/osclass/classes/Plugins.php(42): fn_email_user_validation(Array, Array)
#5 /home3/onshie65/mercadoaereo/oc-includes/osclass/helpers/hPlugins.php(34): Plugins::runHook('hook_email_user...', Array, Array)
#6 /home3/onshie65/mercadoaereo/oc-includes/osclass/UserActions.php(541): osc_run_hook('hook_email_user...', Array, Array)
#7 /home3/onshie65/mercadoaereo/oc-admin/users.php(167): UserActions->resend_activation('1')
#8 /home3/onshie65/mercadoaereo/oc-admin/index.php(161): CAdminUsers->doModel()

Anybody knows this bug? Can I do something?

Tks

*

MB Themes

Re: AWS SES erro sending email
« Reply #1 on: January 04, 2022, 03:29:03 PM »
@pavini
I would say this plugin is not compatible with later versions of osclass. It is probably getting to conflict with osclass mailer class (php mailer v6), where   plugin is trying to use own v5.
« Last Edit: January 04, 2022, 03:32:28 PM by MB Themes »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

pavini

  • *
  • 4 posts
Re: AWS SES erro sending email
« Reply #2 on: January 04, 2022, 05:13:38 PM »
@pavini
I would say this plugin is not compatible with later versions of osclass. It is probably getting to conflict with osclass mailer class (php mailer v6), where   plugin is trying to use own v5.

Tks for the fast answer. There is something that I can do? I'm asking becouse I alredy try to make the SMTP work with diferente servers and not working and when try to send a Test Email, I get only a alert error and nothing is logged.

Tks

*

pavini

  • *
  • 4 posts
Re: AWS SES erro sending email
« Reply #3 on: January 04, 2022, 05:51:40 PM »
Dear,

Resolved using SMTP server.

I put some error_log on /home/mercadoaereo/oc-includes/osclass/utils.php and I found the error.

The AWS SES using SMTP was not acteveted in production.

Tks

*

MB Themes

Re: AWS SES erro sending email
« Reply #4 on: January 04, 2022, 07:56:40 PM »
Ok so which solution works for you now?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots