LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-18-2019, 06:10 AM   #1
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Rep: Reputation: Disabled
character display partially corrupted when using sendEmail together with yahoo mail


Hello altogether,


Iīve got a question regarding the use of sendEmail (v 1.56) which I use from Linux/Lubuntu 18.04.3 LTS, 64 bit.
Info about it can be found here: http://caspian.dotconf.net/menu/Software/SendEmail/ .

Basically itīs a command line SMTP email client.

Thereīs a peculiar phenomenon which only occurs when using my e-mail account "yahoo.de".

When sending an e-mail that includes umlauts like "ü" or "ä" and also "ß" those are transmitted by yahoo as "??".

Example: instead of "kürzlich" itīs rather "k??rzlich" which is being sent.

This seems to be due to the fact that Content-Transfer-Encoding: 7bit is used when delivering the e-mail. And itīs just that with which yahoo mail has got a problem. But not other e-mail services like gmx for example.

So basically what I need is a special command-line option with which sendEmail can deliver the e-mail with "quoted printable" instead.
This should theortically solve the problem.

Is there a way of achieving this?

Thanks for your help in advance.

Gretings.
Rosika
 
Old 08-18-2019, 10:24 AM   #2
rosehosting.com
Member
 
Registered: Jun 2012
Location: Missouri, USA
Posts: 236

Rep: Reputation: 64
When sending an email which includes non-ASCII characters, try to add this command-line parameter: -o message-charset=utf-8
 
Old 08-18-2019, 10:35 AM   #3
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
@rosehosting.com:

Thanks for the suggestion. Alas adding the parameter -o message-charset=utf-8 had no effect.

I tried it and the e-mail was received with false character representation nevertheless.

Looking through the source text of the received mail I found the following info:

Code:
Content-Type: text/plain;
        charset="utf-8"
Content-Transfer-Encoding: 7bit
Itīs the Content-Transfer-Encoding bit I wanted to change with a special parameter. It should be quoted printable.
But Iīm afraid thereīs no way of achieving this.

But thanks for your help anyway.

Greetings.
Rosika
 
Old 08-18-2019, 12:29 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by Rosika View Post
@rosehosting.com:

Thanks for the suggestion. Alas adding the parameter -o message-charset=utf-8 had no effect.

I tried it and the e-mail was received with false character representation nevertheless.

Looking through the source text of the received mail I found the following info:

Code:
Content-Type: text/plain;
        charset="utf-8"
Content-Transfer-Encoding: 7bit
Itīs the Content-Transfer-Encoding bit I wanted to change with a special parameter. It should be quoted printable.
But Iīm afraid thereīs no way of achieving this.

But thanks for your help anyway.

Greetings.
Rosika
Boy, that suggestion was right out of the documentation, and it looks like it did set the charset...
Try experimenting with that -o option:
Code:
-o message-content-transfer-encoding="quoted printable"
(that's a complete guess on my part...)

what does the --help option show you about -o ?

EDIT: Looks like that project is untouched for the last 10 years. Maybe dig into the source? Docs say it's written in perl.

Last edited by scasey; 08-18-2019 at 12:33 PM.
 
Old 08-19-2019, 07:28 AM   #5
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Hi scasey,

thanks a lot for your reply.

I tried your suggestion by inserting -o message-content-transfer-encoding="quoted printable" in the command.
Yet it had the same effect. The e-mail was sent but the umlauts were currupted the same way.
Curious though that the exit code of the command was still 0:

Code:
rosika@rosika-Lenovo-H520e ~> echo $status 
0
So sendEmail didnīt really seem to mind that I inserted it.

sendEmail --help says:

Code:
-o NAME=VALUE             advanced options, for details try: --help misc
        -o message-content-type=<auto|text|html>
        -o message-file=FILE         -o message-format=raw
        -o message-header=HEADER     -o message-charset=CHARSET
        -o reply-to=ADDRESS          -o timeout=SECONDS
        -o username=USERNAME         -o password=PASSWORD
        -o tls=<auto|yes|no>         -o fqdn=FQDN
So the option you provided doesnīt seem to exist (at least not in that form). Yet it was worth a shot.

It looks like sendEmail doesnīt provide a means to manipulate message-content-transfer-encoding.

At least we tried.

Thanks again for your help.

Greetings.
Rosika
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Using sendEmail inside a bash script. Batistuta_g_2000 Linux - Newbie 7 02-20-2013 07:30 AM
SendEmail sending jiberish authentication. pr0n Linux - Software 0 11-04-2009 12:55 PM
Sendemail configuration. ArthurHuang Linux - Networking 2 05-19-2009 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration