[Zope] Problem sending mail

John Poltorak jp at warpix.org
Mon Nov 29 14:52:03 EST 2004



I get an error sending out mail from within a Plone app:-

 This site encountered an error trying to fulfill your request. The errors 
were:

Error Type
    Mail couldn`t be sent (Script send_a_mail.py)


This is the relevant script:-


#Try if a Mailhost is specified
try:
 mailhost=getattr(context, context.portal_url.superValues('Mail 
Host')[0].id)
except:
 raise "There is no Mailhost specified (Script send_a_mail.py)"

#send
try:
 mailhost.send(mMsg,mTo,mFrom,mSubj)
except:
 raise "Mail couldn`t be sent (Script send_a_mail.py)"


How do I tell what the problem is?

Should I expect to see anything in the local sendmail log?


-- 
John




More information about the Zope mailing list