azt3k / abc-silverstripe-mailer Goto Github PK
View Code? Open in Web Editor NEWLibrary that adds smtp mail support to Silverstripe
Library that adds smtp mail support to Silverstripe
The second email gets the attachment from the first Email as well.
This happens also when using new Email() or $email->attachFile();
This does NOT happen with the SS core Mailer....
$email = Email::create('[email protected]', '[email protected]', 'test 1');
$email->attachFileFromString('just a string', 'string1.txt', 'application/octet-stream');
$email->send();
$email = Email::create('[email protected]', '[email protected]', 'test 2');
$email->attachFileFromString('just a string 2', 'string2.txt', 'application/octet-stream');
$email->send(); // will have string1.txt attached as well.
I don't know what is required other than at least changing:
"silverstripe/framework" : "^3.0",
"silverstripe/cms" : "^3.0",
I'm sure there will be more work than that.
On 25.12.2016 a security issue (CVE-2016-10033) was found in the PHPMailer component for versions lower than 5.20. Could you confirm if the application is vulnerable?
More info: https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.html
Hello,
please fix readme: method SmtpMailer::set_config()
does not exist, you should use SmtpMailer::set_conf() instead
Also please move "code" folder to root, instead of "src/mailer/"
Running SS3.2.1
always fails on get_file_contents() due to $attachedFiles already containing the files contents and not the file path.
Is this module compatible with the userforms module?
I don't think the name is ever used when setting the default_from. Line 177 of SmtpMailer uses the email, but the name is never referenced. The only way to set it is to use setFrom
in the format "My Name" <[email protected]>
on a case by case basis.
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.