what settings I need if I have to use ssl connection to my smtp server
on port 465?
I tryed:
mail.settings.server = 'my.smtp.server:465'
mail.settings.sender = '[email protected]'
mail.settings.login = False # beacuse I don't want to use
# authentication within internal network
mail.send(etc. etc.)
and it gave me no error except that the command never end...
on the contrary bypassing web2py I tryed successfully:
>>> import smtplib
>>> ssl = smtplib.SMTP_SSL('my.smtp.server', 465)
>>> sender = '[email protected]'
>>> receivers = ['myEmailAddress']
>>> message = """From: From Person <[email protected]>
... To: To Person <[email protected]>
... Subject: SMTP e-mail test
...
... This is a test e-mail message.
... """
>>> ssl.sendmail(sender, receivers, message)
thank you very mutch
Manuele