Badly formatted E-Mail with ActionMailer


I've setup up Mailing on my Rails app. The setup uses smtp with
(tested) correct settings.
But all the mails sent through UserMailer have no subject and look
like this:

Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8

[...](Content stripped)

Could you please help me how to solve this problem?


I could solve the problem!
There was a wrong entry in my /etc/hostname file.
It looked like this:


I've solved this issue by setting the correct hostname, using the `$
hostname` command.

Lukas Rieder