[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [msmtp-users] Sending attachments



On 25/02/10 18:48:01, Kef wrote:
> Is it possible to send attachments with a
> mail using msmtp ? How can I do that ?

As has been stated, msmtp is merely a transport agent; the actual email 
is created in another application.

Here is an munged email (with additional headers) that I created with a 
shell script and sent out today using msmtp. [I have prefaced each line 
with an octothorpe].

#Date: Thursday, 25 February 2010 08:03:28 +1100
#From: Robert Thorsby <me@...219...>
#Sender: me@...220...
#Reply-To: me@...220...
#To: A Friend <recipient@...221...>
#Message-ID: <1267045408-BO2XLefw@...219...>
#Mime-Version: 1.0
#Subject: The Weekly Postscript File
#Errors-To: Postmaster@...219...
#X-Mailer: Custom script
#Content-Type: multipart/mixed; boundary="-"
#
#---
#Content-Type: text/plain; format=flowed; charset=ISO-8859-1
#Content-Disposition: inline
#Content-Transfer-Encoding: 8bit
#
#Hi Friend,
#
#Attached is the usual weekly postscript file.
#
#Regards,
#Robert
#
#---
#Content-Type: application/postscript; name="ps-file.ps"
#Content-Transfer-Encoding: base64
#Content-Disposition: inline; filename="ps-file.ps"
#Content-MD5: zGKrYSFvhWV0M/tmRkbutQ==
#
#JSFQUy1BZG9iZS0zLjAKJSVDcmVhdG9yOiBncm9mZiB2ZXJzaW9uIDEuMTguMQo
<everything up to last line of .ps file has been snipped>
#MiBFIDAgQ2cKRVAKJSVUcmFpbGVyCmVuZAolJUVPRgo=
#
#-----

This might give you something to work with.

Cheers,
Robert Thorsby
If you can keep your head when all around you have lost theirs, then 
you probably haven't understood the seriousness of the situation.
		-- David Brent, "The Office"