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

SMTP Authentication not working with special characters like "§" #3039

Closed
geri777 opened this issue Mar 20, 2024 · 1 comment
Closed

SMTP Authentication not working with special characters like "§" #3039

geri777 opened this issue Mar 20, 2024 · 1 comment

Comments

@geri777
Copy link

geri777 commented Mar 20, 2024

My SMTP Server requires a password which looks like "6Xcf§5cXR6zB%"
When I try to connect I get the following error:
SMTP connect() failed.

When I change the server's password to any password WITHOUT an "§" (section sign), everything works.

I am using version 6.9.1 which is the latest version at the moment.
I am using SMTPSecure = SSL

@Synchro
Copy link
Member

Synchro commented Mar 20, 2024

§ is not a 7-bit ASCII character, and so it's not possible to use it unless a system supports SMTPUTF8, which PHPMailer does not. That said, LOGIN and PLAIN auth schemes base64-encode the password string which should insulate it from that, but that will still rely on the unencoded auth string being in a non-ASCII charset, such as ISO-8859-1, which you can't select from the client end, so I doubt it will work anyway.

I suggest setting $mail->SMTPDebug = 4 and look at the exact text that is being sent.

@geri777 geri777 closed this as completed Mar 20, 2024
@geri777 geri777 changed the title SMTP Authentication not working with special characters like "%" SMTP Authentication not working with special characters like "§" Mar 20, 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

2 participants