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

Undefined constant PHPMailer on line 2017 #2889

Closed
Oudalally opened this issue Mar 31, 2023 · 1 comment
Closed

Undefined constant PHPMailer on line 2017 #2889

Oudalally opened this issue Mar 31, 2023 · 1 comment

Comments

@Oudalally
Copy link

When using PHPMailer 6.8.0 installed manually into my project, sending mail with SMTP is failing with the error
Undefined constant "PHPMailer\PHPMailer\PHPMailer"

This is occuring on line 2017 in PHPMailer.php:

$header = PHPMailer . phpstatic::stripTrailingWSP($header) . static::$LE . static::$LE;.

I have installed PHPMailer as per the instructions for a manual install.
Downgrading to a previous version has worked around the issue.

@Oudalally
Copy link
Author

Sorry, this was my mistake.
I had put the sources into a folder called PHPMailer directly, not PHPMailer/src

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