The Accidental Rubyist

invalid byte sequence in UTF-8

OSX Lion moved to msmtp from postfix

leave a comment »

Ever since upgrading to OSX Lion, postfix stopped working. So i finally installed msmtp which took a minute or two only. Configured sendmail to use it, and now all my scripts that use "mail" are able to send mail through msmtp.

However, mpack still does not work, and attachments look much better when sent through mpack. Unable to find anything on the net regarding configuring mpack for msmtp. uuencoding a file does not help as the file still appears as an attachment which has to be clicked. mpack does MIME encoding.

I tried using mpack to just encode the file "mpack -o out.html in.html" and then attaching the file, and sending it using mail or sendEmail, but the mail shows up as junk.

Are there any alternatives to mpack ? Any other way of MIME encoding a file and sending it using msmtp or any other client ?

Advertisements

Written by totalrecall

October 20, 2011 at 10:39 am

Posted in ruby

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: