[Zope] Problem sending mail
J Cameron Cooper
zope-l at jcameroncooper.com
Mon Nov 29 14:57:27 EST 2004
John Poltorak wrote:
> I get an error sending out mail from within a Plone app:-
> This site encountered an error trying to fulfill your request. The errors
> Error Type
> Mail couldn`t be sent (Script send_a_mail.py)
> This is the relevant script:-
> #Try if a Mailhost is specified
> mailhost=getattr(context, context.portal_url.superValues('Mail
> raise "There is no Mailhost specified (Script send_a_mail.py)"
> raise "Mail couldn`t be sent (Script send_a_mail.py)"
> How do I tell what the problem is?
Try adding an exception variable to the final except statement and then
log it (or raise the message). Perhaps it will provide better information.
> Should I expect to see anything in the local sendmail log?
Possibly, though not likely. Depends on the problem.
More information about the Zope