Amazon SES: Message sending failed – The following SMTP error was encountered: 552 5.3.4 Message is too long

I was send mail with 7MB attachment file then i got below error. How can i solve it. 220 email-smtp.amazonaws.com ESMTP SimpleEmailService-d-8ND3U1R22 5Eg0poz3kAZNziS4R0Qn hello: 250-email-smtp.amazonaws.com 250-8BITMIME 250-SIZE 10485760 250-STARTTLS 250-AUTH PLAIN LOGIN 250 Ok starttls: 220 Ready to start TLS hello: 250-email-smtp.amazonaws.com 250-8BITMIME 250-SIZE 10485760 250-STARTTLS 250-AUTH PLAIN LOGIN 250 Ok from: 250 Ok to:…

Details

Rendering Image in python to display in html

I am using this block of code to send an image from python to display in HTML. for file in glob.glob(“image*.*”): x = cv2.imread(file) x = cv2.cvtColor(x, cv2.COLOR_RGB2BGR) img = io.BytesIO() x = Image.fromarray(x, ‘RGB’) x.save(img, ‘PNG’) img.seek(0) img_array.append(base64.b64encode(img.getvalue())) k= k+1 id.append(k) return render_template(‘html_page.html’, data=zip(img_array,id)) Code to display in HTML page: The image is not…

Details

filter first_name and last_name from two relation pointing to same table

I am having columns first_name and last_name in user table, which in turn related to order_item table having instructor_id and user_id both id linked to user table. now I am having relations defined in OrderItem Model like: public function getInstructor() { return $this->hasOne(User::className(), [‘id’ => ‘instructor_id’]); } and public function getCustomerName() { return $this->hasOne(User::className(), [‘id’…

Details