utf8-encoded letters in email subject

You might have discovered strange characters in your email-subject like: Ã¼, Ã¤ or Ã¶, and so on?
That’s because you have sent them as UTF-8 and they are being interpreted as ISO-8859. Maybee the charters in the email’s body part are correct because you have already set a proper encoding! Well, the body and the subject needs a separate encoding. You can solve the problem by passing the subject string like below:

'=?utf-8?B?'.base64_encode('Subject with special chars like: äöü').'?='


dealing with local mta

MTA stands for „mail transfer agent“. Popular ones are sendmail, exim and postfix.

If you want to know what MTA is running locally you can check which program listens on port 25:

lsof -i :25

You might also telnet on port 25 and let the MTA himself respond who he is:

telnet localhost 25


For configuring exim4 the preferred way is to use the graphical interface, call it with:

dpkg-reconfigure exim4-config