stlewis / mail Goto Github PK
View Code? Open in Web Editor NEWPHP class for sending emails with support for multi-part emails and emails with attachments.
License: MIT License
PHP class for sending emails with support for multi-part emails and emails with attachments.
License: MIT License
I have to replace the \r\n into \n?
Now it works fine for me.
private function prepare_headers(){
$this->set_default_headers();
$this->header_string = implode("\r\n", $this->headers)."\r\n";
}
Thanks!
Hey guys I am just want to know is there compulsory to add License or not because some told me do need to add license in readme.md file and do not also open issue and close issue about it.So what do you think about it.
--PHP-mixed-c71e9898e2ff03c758cd9ad6d8f0fa39
Content-Type: multipart/alternative; boundary="PHP-alt-c71e9898e2ff03c758cd9ad6d8f0fa39"
--PHP-alt-c71e9898e2ff03c758cd9ad6d8f0fa39
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Опи�ание - ИЕготовление па�порта фа�ада
--PHP-alt-c71e9898e2ff03c758cd9ad6d8f0fa39
Content-Type: text/html; charset="UTF-8 "
Content-Transfer-Encoding: 8bit
--PHP-alt-c71e9898e2ff03c758cd9ad6d8f0fa39--
but if i make attachment it all will be ok!
How to smtp settings
When i use it to send email,the subject and receiver show twice,is it your program bug? how can i fix it ..thank you~
i mean that the email i received is like this.
subject:subjectsubject
receiver: [email protected];[email protected]
but i only write it once in program!
As stated on Docs, I did $mail->add_attachments($_FILES['myFile']);
. Buy I am getting this error.
Warning: basename() expects parameter 1 to be string, array given
Warning: file_get_contents() expects parameter 1 to be a valid path, array given
Do I have to upload file on the server before sending email?
$mail->add_header("Cc: [email protected]");
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.