Popular recipes tagged "meta:requires=email.mimemultipart"http://code.activestate.com/recipes/tags/meta:requires=email.mimemultipart/2011-06-12T18:38:47-07:00ActiveState Code RecipesSend an HTML email with embedded image and plain text alternate (Python)
2011-06-12T18:38:14-07:00soham vaghelahttp://code.activestate.com/recipes/users/4178285/http://code.activestate.com/recipes/577751-send-an-html-email-with-embedded-image-and-plain-t/
<p style="color: grey">
Python
recipe 577751
by <a href="/recipes/users/4178285/">soham vaghela</a>
(<a href="/recipes/tags/network/">network</a>).
</p>
<p>HTML is the method of choice for those wishing to send emails with rich text, layout and graphics. Often it is desirable to embed the graphics within the message so recipients can display the message directly, without further downloads.</p>
<p>Some mail agents don't support HTML or their users prefer to receive plain text messages. Senders of HTML messages should include a plain text message as an alternate for these users.</p>
<p>This recipe sends a short HTML message with a single embedded image and an alternate plain text message.</p>
Send an HTML email with embedded image and plain text alternate (Python)
2011-06-12T18:38:47-07:00soham vaghelahttp://code.activestate.com/recipes/users/4178285/http://code.activestate.com/recipes/577752-send-an-html-email-with-embedded-image-and-plain-t/
<p style="color: grey">
Python
recipe 577752
by <a href="/recipes/users/4178285/">soham vaghela</a>
(<a href="/recipes/tags/network/">network</a>).
</p>
<p>HTML is the method of choice for those wishing to send emails with rich text, layout and graphics. Often it is desirable to embed the graphics within the message so recipients can display the message directly, without further downloads.</p>
<p>Some mail agents don't support HTML or their users prefer to receive plain text messages. Senders of HTML messages should include a plain text message as an alternate for these users.</p>
<p>This recipe sends a short HTML message with a single embedded image and an alternate plain text message.</p>
Python Gmail script (smtp) (Python)
2011-06-08T20:15:01-07:00jrovegnohttp://code.activestate.com/recipes/users/4170207/http://code.activestate.com/recipes/577690-python-gmail-script-smtp/
<p style="color: grey">
Python
recipe 577690
by <a href="/recipes/users/4170207/">jrovegno</a>
(<a href="/recipes/tags/gmail/">gmail</a>, <a href="/recipes/tags/smtp/">smtp</a>).
Revision 4.
</p>
<p>Referencias:
<a href="http://ideaschile.wordpress.com/2011/05/12/python-gmail-script-smtp/">Python Gmail script (smtp)</a></p>
Send an HTML email with embedded image and plain text alternate (Python)
2006-01-29T18:40:36-08:00darrin massenahttp://code.activestate.com/recipes/users/1987292/http://code.activestate.com/recipes/473810-send-an-html-email-with-embedded-image-and-plain-t/
<p style="color: grey">
Python
recipe 473810
by <a href="/recipes/users/1987292/">darrin massena</a>
(<a href="/recipes/tags/network/">network</a>).
</p>
<p>HTML is the method of choice for those wishing to send emails with rich text, layout and graphics. Often it is desirable to embed the graphics within the message so recipients can display the message directly, without further downloads.</p>
<p>Some mail agents don't support HTML or their users prefer to receive plain text messages. Senders of HTML messages should include a plain text message as an alternate for these users.</p>
<p>This recipe sends a short HTML message with a single embedded image and an alternate plain text message.</p>
send a multipart email (Python)
2009-10-15T13:56:10-07:00Trent Mickhttp://code.activestate.com/recipes/users/4173505/http://code.activestate.com/recipes/576931-send-a-multipart-email/
<p style="color: grey">
Python
recipe 576931
by <a href="/recipes/users/4173505/">Trent Mick</a>
(<a href="/recipes/tags/email/">email</a>, <a href="/recipes/tags/multipart/">multipart</a>, <a href="/recipes/tags/smtp/">smtp</a>).
Revision 2.
</p>
<p>A simple function to send an email (can specify text and html parts).</p>
<p>See also: <a href="http://code.activestate.com/recipes/576824/">Recipe 576824</a> (send via Gmail's SMTP server), <a href="http://code.activestate.com/recipes/576858/">Recipe 576858</a> (more complex, but supports attachments).</p>
send a multipart email via gmail's SMTP server (Python)
2009-12-21T14:29:41-08:00Trent Mickhttp://code.activestate.com/recipes/users/4173505/http://code.activestate.com/recipes/576824-send-a-multipart-email-via-gmails-smtp-server/
<p style="color: grey">
Python
recipe 576824
by <a href="/recipes/users/4173505/">Trent Mick</a>
(<a href="/recipes/tags/email/">email</a>, <a href="/recipes/tags/gmail/">gmail</a>, <a href="/recipes/tags/smtp/">smtp</a>).
Revision 3.
</p>
<p>This is a Python function to send an email (a) with optional text and html alternative parts and (b) via gmail's SMTP server using your gmail account.</p>
Code to solve Smoluchowsky Equation (Python)
2008-10-31T06:25:13-07:00Lorenzo Isellahttp://code.activestate.com/recipes/users/4143130/http://code.activestate.com/recipes/576547-code-to-solve-smoluchowsky-equation/
<p style="color: grey">
Python
recipe 576547
by <a href="/recipes/users/4143130/">Lorenzo Isella</a>
(<a href="/recipes/tags/email_sending/">email_sending</a>, <a href="/recipes/tags/nonlinear/">nonlinear</a>, <a href="/recipes/tags/pylab/">pylab</a>, <a href="/recipes/tags/scipy/">scipy</a>, <a href="/recipes/tags/smoluchowski/">smoluchowski</a>).
</p>
<p>This is a research code which solves Smoluchowski equation for coalescing particles. It also can login into a gmail account (login data to be obviously provided by the user) and send an email with one of the generated output pdf files as an attachment.</p>
Compose HTML Mail with embedded images from URL or local file (Python)
2006-02-06T12:10:55-08:00Catalin Constantinhttp://code.activestate.com/recipes/users/2766393/http://code.activestate.com/recipes/473851-compose-html-mail-with-embedded-images-from-url-or/
<p style="color: grey">
Python
recipe 473851
by <a href="/recipes/users/2766393/">Catalin Constantin</a>
.
</p>
<p>The thing about this class is to "build" a mail msg object, automatic, from an URL or a local html file WITH all images included.
The class takes care of the image parsing / downloading / embedding + "cid: ID-here" replacements. The return is a valid MIMEMultipart("related") msg object which can be used to send valid HTML mail.</p>