Open smathersPersonal opened 1 year ago
I run into the same issue, also with SES. I was wandering if it's related to the Swoole and some hook. The only difference for me is using task for sending. But the smtp log looks exactly the same.
SMTP uses the startSSL feature to dynamically enable encryption. There may be some problems with swoole hook support here. I am working to fix it
Running into the same issue 👍🏻
Looking forward to this feature
@matyhtf Hey, do you think there's a chance to get this fixed? I'm asking because I suddenly got task to do where I will need to send e-mail from within api. Up until now I've manage to mitigate this by sending e-mail from different env. Now it won't be possible. So I'd love to be able to send this without have to find some quirk workaround. ;)
Hi there, Love the project. Ran into a bit of an issue and I'm stumped.
I'm using your http server which is behind nginx.
The problem is sending an email (Using PHPmailer) during an api call.
I have the server setup like this:
The reason for not using ALL hooks was because I'm not seeing great performance with it. I get the feeling its bouncing around between coroutines to much or something. Must be something with my application work flow, I do have lots of logging etc. I noticed not including this one makes a difference in speed: SWOOLE_HOOK_FILE
Sending an email I spawn another coroutine using the go() command to run it async, then I see this during smtp:
If I remove the hook: SWOOLE_HOOK_TCP, it works. Problem is though I want that hook for the mysqli!!
I looked through the the PHPmailer code and my best guess is there is an issue with stream_socket_enable_crypto and the streams hook or I've missed something.
Thanks!!
Server Info: