gregaryb Posted May 31, 2019 Share Posted May 31, 2019 I give up in frustration! I need some sample code to send an email with an attachment, using the function mail(...), that does not generate this error message: Error with PHP mail(): Multiple or malformed newlines found in additional_header Link to comment Share on other sites More sharing options...
justsomeguy Posted May 31, 2019 Share Posted May 31, 2019 Why do you want to use mail? How about something like PHPMailer instead? Link to comment Share on other sites More sharing options...
gregaryb Posted May 31, 2019 Author Share Posted May 31, 2019 5 hours ago, justsomeguy said: Why do you want to use mail? How about something like PHPMailer instead? I did see that but same problem......can't find any sample code that does not generate an error along the lines that it can't find PHPmailer. Is PHPMailer native to php or is it something additional you have to install or enable on the back end.....in one's CPanel? Link to comment Share on other sites More sharing options...
justsomeguy Posted May 31, 2019 Share Posted May 31, 2019 No, it's not native. It's on GitHub though: https://github.com/PHPMailer/PHPMailer There's a button on the top right to download the zip package, all of the files you actually need are in the src folder. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now