Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending emails using \Tx\Mailer() and then calling \Webklex \PHPIMAP to obtain the list of sent emails will result in all services being unavailable #494

Closed
ninencc opened this issue May 24, 2024 · 0 comments

Comments

@ninencc
Copy link

ninencc commented May 24, 2024

Describe the bug
Sending emails using \Tx\Mailer() and then calling \Webklex\PHPIMAP to obtain the list of sent emails will result in all services being unavailable.
Obtaining the receiving mailbox is normal, only exceptions occur when obtaining the sending mailbox.
After obtaining the list of sent emails, performing other operations may cause the server to fail to respond or result in 404

Code to Reproduce
send email:
$mail = new Mailer();
$mail->setServer(str_replace('imap', 'smtp', $config['host']), 465, 'ssl');
$mail->setAuth($config['username'], $config['password']);
$mail->setFrom($data['from_name'], $config['username'])
->setSubject($data['subject'])
->setBody($data['content'])
->addTo('', $data['to_mail'])
->send();

Get a list of sent emails:
$client->getFolderByPath('发信箱')->messages()->setFetchOrder("desc")->all()->limit($limit, intval($offset / $limit) + 1)->get();

PHP: 7.3.4nts
Nginx:1.15.11

@ninencc ninencc closed this as completed May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant