[Python-au] How to send email in python w/o using smtplib?

Jermando Rodriguez jerry.rodriguez@deskclick.com
Thu, 10 Oct 2002 23:23:17 +0800


This is a multi-part message in MIME format.

------_=_NextPart_001_01C27070.F59FD7EC
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello.

I'm currently developing a python script that
will send an email message.  But I'm restricted to
use the SMTP in our server, therefore sending an
email using the smtplib is useless.  I'm only allowed
to use the <dtml-sendmail mailhost=3D"mailhost">.
The problem with this is that I'm using python script
and have to call inside the script a ZOPE module
which contains this <dtml-sendmail> tag.

My python script has to return a value to the caller
after sending the email.  But using the RESPONSE.redirect(ZOPE module)
will prevent me from returning any value to the caller.
Is there another way to call a ZOPE module, which contains
a <dtml-sendmail> tag, aside from using RESPONSE.redirect()?
Is there a way to send an email from a python script
without using smtplib and still allows me to return a value
to the caller of my script?

Thanks in advance,
Jerry Rodriguez



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
=20

------_=_NextPart_001_01C27070.F59FD7EC
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.5762.3">
<TITLE>How to send email in python w/o using smtplib?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">Hello.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I'm currently developing a python =
script that</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">will send an email message.&nbsp; But =
I'm restricted to</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">use the SMTP in our server, therefore =
sending an</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">email using the smtplib is =
useless.&nbsp; I'm only allowed</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">to use the &lt;dtml-sendmail =
mailhost=3D&quot;mailhost&quot;&gt;.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">The problem with this is that I'm =
using python script</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">and have to call inside the script a =
ZOPE module</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">which contains this =
&lt;dtml-sendmail&gt; tag.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">My python script has to return a value =
to the caller</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">after sending the email.&nbsp; But =
using the RESPONSE.redirect(ZOPE module)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">will prevent me from returning any =
value to the caller.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Is there another way to call a ZOPE =
module, which contains</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">a &lt;dtml-sendmail&gt; tag, aside =
from using RESPONSE.redirect()?</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Is there a way to send an email from a =
python script</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">without using smtplib and still allows =
me to return a value</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">to the caller of my script?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks in advance,</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Jerry Rodriguez</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">---<BR>
Outgoing mail is certified Virus Free.<BR>
Checked by AVG anti-virus system (<A =
HREF=3D"http://www.grisoft.com">http://www.grisoft.com</A>).<BR>
Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002<BR>
</FONT>&nbsp;
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C27070.F59FD7EC--