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 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?
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. --jcc