Skip to content
Back

[SOLVED] Error Msg: Http invalid protocol Error - PHPMailer

  • 1
  • Self Hosted
  • Functions
BugProg
21 Nov, 2023, 19:19

Nope

TL;DR
The user was experiencing an error message related to the PHPMailer library. They were unable to see the PHPMailer logs and were questioning if it was an Appwrite bug. The solution provided was to set the SMTP debug level to 0 or remove the SMTPDebug line in the code. The user tried different debug levels but the issue persisted. The issue was eventually resolved by disabling the debug level. The user also mentioned referencing a website for choosing the debug level.
BugProg
21 Nov, 2023, 19:20

I switch to 4 (low-level information. ) but I have the same issue.

BugProg
21 Nov, 2023, 19:21

I choose debug number level according to this website: https://mailtrap.io/blog/phpmailer/

BugProg
21 Nov, 2023, 19:21
Drake
21 Nov, 2023, 19:56

how about turning it off?

Drake
21 Nov, 2023, 19:56

4 sounds like it's even more verbose than 1 👀

BugProg
21 Nov, 2023, 20:05

I tried 1 but same error 😢

Drake
21 Nov, 2023, 20:09

can you try disabling it?

BugProg
21 Nov, 2023, 20:10

Yes, i need to find how...

Drake
21 Nov, 2023, 20:11

set it to 0 or remove the SMTPDebug line. See https://github.com/PHPMailer/PHPMailer/wiki/SMTP-Debugging

BugProg
21 Nov, 2023, 20:12

pppffff

BugProg
21 Nov, 2023, 20:12

🙂

BugProg
21 Nov, 2023, 20:12

Thank so much @Steven it works

BugProg
21 Nov, 2023, 20:13

The logs are very small, why there is an error for that ?

BugProg
21 Nov, 2023, 20:13

Is it an Appwrite bug ?

Drake
21 Nov, 2023, 20:18

so the logs go in the header...and it was probably too much for the header

BugProg
21 Nov, 2023, 20:25

Ok... but before my code works fine and I got my php logs in the Logs tab. Anyway now it works again and I'm very grateful to you.

BugProg
21 Nov, 2023, 20:25

😄

BugProg
21 Nov, 2023, 20:25

Now I think I can't see my PHPMailer logs

Drake
21 Nov, 2023, 20:30

right...you won't be able to see the php mailer SMTP debug logs 😕

Drake
21 Nov, 2023, 20:31

you can context->log() stuff, though...

BugProg
21 Nov, 2023, 20:32

ok, right

BugProg
21 Nov, 2023, 20:32

Thank you for your help.

Drake
21 Nov, 2023, 20:33
Drake
21 Nov, 2023, 20:33

[SOLVED] Error Msg: Http invalid protocol Error - PHPMailer

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more