Badly formatted E-Mail with ActionMailer

Hello,

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:

(Begin)
#Debian-40-etch-64-minimal.tmail>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8

[...](Content stripped)

Could you please help me how to solve this problem?

Hy,

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

(Begin)
www.example.com
#Debian-40-etch-64-minimal
(End)

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

Lukas Rieder