[Tutor] Send attachment

Ron Weidner xecronix at yahoo.com
Thu Jul 21 15:38:21 CEST 2005

--- Jorge Louis De Castro <jorge at bcs.org.uk> wrote:

> Hello,
> Any ideas how I can use Python and the Windows API
> to open a PC's mail client and send an attachment?
> The idea is saving some data onto a file and then
> invoke the email client (OE or Outlook or whatever
> is the default on the machine) with the recipient's
> address filled in and the file ready to be sent as
> an attachment. 
> Kinda like when we right-click on a file and select
> the "send to mail recipient" behavior.
> Been reading docs, trying out samples, and googling
> this for a few days to no avail.
> Cheers

I'm not sure how to do that but, if you learn how to
use the smtp protocol, you won't need to use someones
mail client.  It's actually simple to use.  Try
looking at the problem from that angle and see if it
gets you anywhere.

Good luck


Ronald Weidner
PHP Software developer for hire.

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the Tutor mailing list