neojn / mailsend

Automatically exported from code.google.com/p/mailsend
0 stars 0 forks source link

Change bse64 encoding to no encoding for sending email #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I send email in normal mode 
but when your email be in another language except English and have Unicode 
characters then it break up in some email clients that not support encoding and 
shows strange characters like Windows 8 mail client -  Windows phone mail 
client - some clients on android and IOS (sometimes title changed to only 
?????? ???? ???)

it only works correct on webmails 
for example i have newsletter that it should be look like this:
http://axgig.com/images/80153712818950249513.png

but it shows in strange characters (and it's not related to change encoding to 
UTF-8 character in mail client i tried that it was)
http://axgig.com/images/83745829792594084587.png

That only changes is in header of email that is:

--n91hmGOjQBEtGJ9a
Content-Type: text/html
Content-Disposition: inline
Content-Transfer-Encoding: base64

DQoJCTxkaXYgYWxpZ249ImNlbnRlciIgc3R5bGU9IndpZHRoOjEwMCU7Ij4NCgkJCTxkaXYg
YWxpZ249InJpZ2h0IiBzdHlsZT0id2lkdGg6NjgwcHg7ZGlyZWN0aW9uOnJ0bDsiPg0KCQkJ
CTx0YWJsZSBjZWxscGFkZGluZz0iMCIgY2VsbHNwYWNpbmc9IjAiIHN0eWxlPSJ3aWR0aDox
MDAlIj4NCgkJCQkJPHRyPg0KCQkJCQkJPHRkPjxkaXYgaWQ9ImhlYWRlciI+DQoJPHRhYmxl
IGNlbGxwYWRkaW5nPSIwIiBjZWxsc3BhY2luZz0iMCIgc3R5bGU9IndpZHRoOjEwMCU7Ij4N
CgkJPHRyPg0KCQkJPHRkPg0KCQkJCTx0YWJsZSBjZWxscGFkZGluZz0iMCIgY2VsbHNwYWNp
...

I know that base64 is standard but that clients (most of them are Microsoft 
products are not)
So some of my members can't read newsletter 
So if there any way to change this encoding to 7bit or normal html with no 
encoding because newsletter is not very important in security so it would be 
great

Original issue reported on code.google.com by d.rikhte...@gmail.com on 5 Dec 2013 at 6:56

GoogleCodeExporter commented 8 years ago

Original comment by muq...@gmail.com on 6 Dec 2013 at 1:13

GoogleCodeExporter commented 8 years ago
Added a 5th filed with -attach to specify the encoding
 type. The default encoding type is base64. If no encoding should be used,
 specify the 5th field as "none". Also 4th field must be specified as "none"
 if no content-id will be used. Eample:
 -attach "file.txt,text/plain,a,blah.txt,none,none" -cs utf8

Original comment by muq...@gmail.com on 7 Dec 2013 at 11:08

GoogleCodeExporter commented 8 years ago
Hi 
I got this error:
Error: Invalid string specified with -a 
"filec.html,text/html,i,filec.html,none,none,none"

send_type='filec.html,text/html';

it's my command i use:
mailsend -from "$from"  -smtp "$smtp" -auth-login -port "$port" -user "$user" 
-pass "$pass" -sub "$subject" -log mail.log -d "$domain" -rt "$replayto" 
-attach "$send_type,i,filec.html,none,none,none" -cs "UTF-8" -list "$list"

also i tried with
"$send_type,i,none,none,none"

Original comment by d.rikhte...@gmail.com on 8 Dec 2013 at 5:08

GoogleCodeExporter commented 8 years ago
also i tried
Error: Invalid string specified with -a 
"filec.html,text/html,i,filec.html,none,none"

Original comment by d.rikhte...@gmail.com on 8 Dec 2013 at 5:11

GoogleCodeExporter commented 8 years ago
Maybe i should change something in smtp.c or change base64 with another things ?

it's not important for me it support base64 encode in this case 
if i can change something that it doesn't encrypt and send email in normal html 
my problem solved 
Could you give me some thing do it? such as comment some line or change some 
line ?

Original comment by d.rikhte...@gmail.com on 10 Dec 2013 at 10:51