[ZWeb] help please

alan runyan alan runyan" <runyaga@runyaga.com
Tue, 1 Oct 2002 10:13:53 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_00A3_01C26933.3E8705C0
Content-Type: text/plain;
	charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

how about replacing to mTo and mFrom values with
sev@belsoft.by

  ----- Original Message -----=20
  From: Serdioukov Edouard=20
  To: zope-web@zope.org=20
  Sent: Tuesday, October 01, 2002 10:07 AM
  Subject: [ZWeb] help please


  Hello

  Can you help me.=20
  I got this error=20
  Error Type: SMTPRecipientsRefused
  Error Value: {'runyaga@abc.com': (550, '5.7.1 Unable to relay for =
runyaga@abc.com')}


  when run this Python script in Zope:

  try:
       mailhost=3Dgetattr(context, context.superValues('Mail =
Host')[0].id)
  except:
       raise AttributeError, "cant find a Mail Host object"

  mMsg =3D 'a testful email message \n that contains a few line breaks. =
\n ~runyaga'
  mTo =3D 'runyaga@abc.com'
  mFrom =3D 'runyaga@xyz.com'
  mSubj =3D 'mail subject'

  mailhost.send(mMsg, mTo, mFrom, mSubj)


  Thanks

  Eduard


------=_NextPart_000_00A3_01C26933.3E8705C0
Content-Type: text/html;
	charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">
<META content=3D"MSHTML 6.00.2719.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>how about replacing to mTo and mFrom =
values=20
with</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:sev@belsoft.by">sev@belsoft.by</A></FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dsev@belsoft.by href=3D"mailto:sev@belsoft.by">Serdioukov =
Edouard</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dzope-web@zope.org=20
  href=3D"mailto:zope-web@zope.org">zope-web@zope.org</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, October 01, 2002 =
10:07=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [ZWeb] help =
please</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN=20
  class=3D396550415-01102002>Hello</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN=20
  class=3D396550415-01102002></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN class=3D396550415-01102002>Can =
you help me.=20
  </SPAN></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN =
class=3D396550415-01102002>I&nbsp;got this=20
  error </SPAN></FONT></DIV>
  <DIV><FONT size=3D+0><SPAN class=3D396550415-01102002>
  <P><FONT face=3DArial><FONT size=3D2><STRONG>Error Type:=20
  SMTPRecipientsRefused</STRONG><BR><STRONG>Error Value: <A=20
  href=3D"mailto:{'runyaga@abc.com'">{'runyaga@abc.com'</A>: (550, =
'5.7.1 Unable=20
  to relay for <A=20
  =
href=3D"mailto:runyaga@abc.com'">runyaga@abc.com'</A>)}</STRONG><BR></FON=
T></FONT></P>
  <P><SPAN class=3D396550415-01102002><FONT face=3DArial size=3D2>when =
run this Python=20
  script in Zope:</FONT></SPAN></P>
  <P><SPAN class=3D396550415-01102002><FONT face=3DArial=20
  size=3D2>try:<BR>&nbsp;&nbsp;&nbsp;&nbsp; mailhost=3Dgetattr(context,=20
  context.superValues('Mail Host')[0].id)<BR>except:<BR>&nbsp; =
&nbsp;&nbsp;=20
  raise AttributeError, "cant find a Mail Host object"</FONT></SPAN></P>
  <P><SPAN class=3D396550415-01102002><FONT face=3DArial size=3D2>mMsg =
=3D 'a testful=20
  email message \n that contains a few line breaks. \n ~runyaga'<BR>mTo =
=3D <A=20
  href=3D"mailto:'runyaga@abc.com'">'runyaga@abc.com'</A><BR>mFrom =3D =
<A=20
  href=3D"mailto:'runyaga@xyz.com'">'runyaga@xyz.com'</A><BR>mSubj =3D =
'mail=20
  subject'</FONT></SPAN></P>
  <P><SPAN class=3D396550415-01102002><FONT face=3DArial =
size=3D2>mailhost.send(mMsg,=20
  mTo, mFrom, mSubj)<BR></FONT></SPAN></P>
  <P><SPAN class=3D396550415-01102002><FONT face=3DArial=20
  size=3D2>Thanks</FONT></SPAN></P>
  <P><SPAN class=3D396550415-01102002><FONT face=3DArial=20
  =
size=3D2>Eduard</P></FONT></SPAN></SPAN></FONT></DIV></BLOCKQUOTE></BODY>=
</HTML>

------=_NextPart_000_00A3_01C26933.3E8705C0--