[ZWeb] help please
george donnelly
list@zettai.net
Tue, 01 Oct 2002 11:13:52 -0400
try changing the test email address runyaga@abc.com to sev@belsoft.by
:)
<-->
george donnelly - http://zettai.net/ - "We Love Newbies" :)
Zope Hosting - Dynamic Website Design - Search Engine Promotion
> From: "Serdioukov Edouard" <sev@belsoft.by>
> Date: Tue, 1 Oct 2002 18:07:52 +0300
> To: <zope-web@zope.org>
> Subject: [ZWeb] help please
>
> Hello
>
> Can you help me.
> I got this error
> 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=getattr(context, context.superValues('Mail Host')[0].id)
> except:
> raise AttributeError, "cant find a Mail Host object"
>
> mMsg = 'a testful email message \n that contains a few line breaks. \n
> ~runyaga'
> mTo = 'runyaga@abc.com'
> mFrom = 'runyaga@xyz.com'
> mSubj = 'mail subject'
>
> mailhost.send(mMsg, mTo, mFrom, mSubj)
>
>
> Thanks
>
> Eduard
>
>