Its been a long time between drinks, but I have some new content this week.

We had an issue with a few old send email scripts running on a new Debian box. The email scripts utilized the Mail command and send plain text emails fine, but when you tried to send HTML emails it would give the error “Content-Type: text/html: No such file or directory”.

It did not like the -a switch for setting the header content type, here is an example:

# mailx -a ‘Content-Type: text/html’ -s “Subject” test@test.com < test.html
Content-Type: text/html: No such file or directory

 

The end fix was easy. We just installed Mail Utils for Debian with the command “apt-get install mailutils” and after it had finished installing the -a switch no longer gave errors regarding html and not being able to find the directory.

 

 

Advertisements