Lengkap

Deliver huge textual data into email body

Hi,

I would like to convert/deliver huge textual data into email body.

This must be done from Linux command line.

Currently, I'm using the following snippet/python code (see [login to view URL]).

Usage:

[login to view URL] [login to view URL]@[login to view URL] "subject" "$(base64 -w0 [login to view URL])"

The problem happens when the email body reaches more than 128 kb, then it says "Argument list too long".

The solution script should accept 2 arguments:

1) Destination email

2) Filename

Underneath the hood, the filename will be the email title and the body will be the file content in base64 format.

The email body should NOT be delivered in HTML but in the plain text!

The solution should accept 8MB file as an input which will resolve into ~11 MB raw text (base64).

P.S.

To simulate the script turn Less secure app access ON:

[login to view URL]

and maybe this may be required:

[login to view URL]

Recommended language: python, perl.

In reply please use some keyword from the task description so I know there is a real person behind the scene. Plus kindly write a tiny description of how the solution will be made so I have a sence you have a vision in mind already.

Looking forward to hear from you,

Aigars

Kemahiran: Python, Linux, Perl

Lihat lagi: parse email body pop3, dynamic data email script, data email adress, change post reply email body phpbb, sharepoint document library email body, design forms inserting huge number data, asp send form data email network solutions, extract data email message body using vba, html script extract data email, vba code extract email body, script data email, vba code extract data email, vba extract email body text, read email body, access email body, extract data email body vb, vba read email body extract data

Tentang Majikan:
( 1 ulasan ) Riga, Latvia

ID Projek: #22083096

Dianugerahkan kepada:

antrusd

Hi, The problem you have was more on shell handler rather than the python script problem, thus the error shown are "argument list too long". If python is not mandatory, there are a lot of gnu/linux cli tools that can Lagi

€50 EUR dalam 2 hari
(3 Ulasan)
2.7

4 pekerja bebas membida secara purata €50 untuk pekerjaan ini

jne59631a43e5b32

Hello, I have been working with Perl on a daily basis for my full time job quite awhile. I have experience sending emails with Perl, some large some small. I would write a script using MIME::Lite module in Perl to do t Lagi

€50 EUR dalam sehari
(1 Ulasan)
3.3
Panda393

Hello I am senior developer with rich experience. I read your project description carefully. If you choose me, I'll provide satisfied result you want Thank you

€50 EUR dalam sehari
(1 Ulasan)
2.6
WalterSwanson

Hello, I'm Walter, I can provide you perfect work as you looking for . we can discuss more in chat . I will be waiting for your response . I have very great experience about your project , if you want discuss more ple Lagi

€50 EUR dalam 7 hari
(0 Ulasan)
0.0