--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/a61e3de4-f288-4968-9001-d21741f881f2o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to web...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/d6644977-e184-4612-98e6-7556ef88e230o%40googlegroups.com.
Hi Jim,
My configuration for appconfig.ini is the following:
; smtp address and credentials
[smtp]
server = mail.xakemate.eus:25
sender = ad...@xakemate.eus
login = ad...@xakemate.eus:*******
tls = false
ssl = false
When I try the following script (from my laptop) it does work.
import smtplib
import email.utils
from email.mime.text import MIMEText
def send(receiver):
# Create the message
msg = MIMEText('This is the body of the message.')
msg['To'] = email.utils.formataddr(('Recipient', receiver))
msg['From'] = email.utils.formataddr(('Author', 'ad...@xakemate.eus'))
msg['Subject'] = 'Simple test message'
server = smtplib.SMTP('mail.xakemate.eus',25)
server.ehlo() # Can be omitted
server.login('admin@xakemate.eus', '********')
server.set_debuglevel(True) # show communication with the server
try:
server.sendmail('admin@xakemate.eus',
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/d6644977-e184-4612-98e6-7556ef88e230o%40googlegroups.com.
server.login('ad...@xakemate.eus', '********')
server.set_debuglevel(True) # show communication with the server
try:
server.sendmail('ad...@xakemate.eus',
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/2995b27e-4bcf-4ca3-a0b7-66ec62d53739o%40googlegroups.com.
Hi Jim,Actually I thought I did not need to "send" the mail myself. I thought the framework took care of it.But I think I'll try to send the email in some part of the application to test if everything is ok. Thanks for the suggestion Jim. I'll try it and get back to you.Thanks, Jon.
server.login('admin@xakemate.eus', '********')
server.set_debuglevel(True) # show communication with the server
try:
server.sendmail('admin@xakemate.eus',
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/2995b27e-4bcf-4ca3-a0b7-66ec62d53739o%40googlegroups.com.