tigrov / yii2-mailqueue Goto Github PK
View Code? Open in Web Editor NEWYii2 mail queue component for yii2-swiftmailer.
License: MIT License
Yii2 mail queue component for yii2-swiftmailer.
License: MIT License
Hi!
Is posible to control the errors / exceptions with the invalid recipents?
Exception 'Swift_TransportException' with message 'Expected response code 354 but got code "554", with message "554 5.5.1 Error: no valid recipients
This happens because json_encode()
fails to convert special chars in PDF file in my case.
> create table {{%mail_queue}} ...Exception 'yii\db\Exception' with message 'SQLSTATE[42000]: Syntax error or access violation: 1170 BLOB/TEXT column 'unique_key' used in key specification without a key length
The SQL being executed was: CREATE TABLE `mail_queue` (
`id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`unique_key` text NULL DEFAULT NULL UNIQUE,
`message_data` text NOT NULL,
`attempts` smallint(6) NOT NULL DEFAULT 0,
`send_at` datetime(0) NOT NULL DEFAULT now()
) CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'
The solution to the problem is to remove the TEXT or BLOB column from the index or unique constraint or set another field as primary key. If you can't do that, and wanting to place a limit on the TEXT or BLOB column, try to use VARCHAR type and place a limit of length on it. By default, VARCHAR is limited to a maximum of 255 characters and its limit must be specified implicitly within a bracket right after its declaration, i.e VARCHAR(200) will limit it to 200 characters long only.
Images are not embedded if you call $message->embed($filename);
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.