By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,353 Members | 1,529 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,353 IT Pros & Developers. It's quick & easy.

[HELP] SMTPlib not sending my mail

P: n/a
Hi, I'm trying to create an application which checks a
dynamic web site and on certain events sends an email to me.
My problem though is with the email task. By now I made this
simple test code:

#prova invio email
smtpserver = smtplib.SMTP(mailserver)
messaggio= "Messaggio di prova"
print mail
print messaggio
smtpresult=smtpserver.sendmail("Watcher",mail,mess aggio)
if smtpresult:
print smtpresult
smtpserver.quit()

"mailserver" and "mail" values are loaded from a ini file
and they're correct.
The call to smtpserver gives back no errors (smtpresult
remains empty).
The running enviroment gives no error.
So, it looks like that the program works alloright, sending
the mail- BUT, I receive no mail! I've tried to change the
smtp server with another one which still works with my isp,
with no luck. If I try a smtp which doesn't give me access,
I correctly receive an error from the program.
What might be the problem?
Jan 21 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a

Hi,

I am also facing the same problem, smtplib used to send mail a while
back but it stopped sending mails.

when i run this in interpreter
>>import smtplib
s = smtplib.SMTP("localhost")
s.sendmail(from, to, "message")
{}
>>>
though it is not giving any error, it is not sending mail.

Any help is appreciated.

ornto wrote:
Hi, I'm trying to create an application which checks a
dynamic web site and on certain events sends an email to me.
My problem though is with the email task. By now I made this
simple test code:

#prova invio email
smtpserver = smtplib.SMTP(mailserver)
messaggio= "Messaggio di prova"
print mail
print messaggio
smtpresult=smtpserver.sendmail("Watcher",mail,mess aggio)
if smtpresult:
print smtpresult
smtpserver.quit()

"mailserver" and "mail" values are loaded from a ini file
and they're correct.
The call to smtpserver gives back no errors (smtpresult
remains empty).
The running enviroment gives no error.
So, it looks like that the program works alloright, sending
the mail- BUT, I receive no mail! I've tried to change the
smtp server with another one which still works with my isp,
with no luck. If I try a smtp which doesn't give me access,
I correctly receive an error from the program.
What might be the problem?
Jan 29 '08 #2

P: n/a
have you checked your mail server logs ?

tir, 29.01.2008 kl. 00.24 -0800, skrev ashok.raavi:
Hi,

I am also facing the same problem, smtplib used to send mail a while
back but it stopped sending mails.

when i run this in interpreter
>import smtplib
s = smtplib.SMTP("localhost")
s.sendmail(from, to, "message")
{}
>>

though it is not giving any error, it is not sending mail.

Any help is appreciated.

ornto wrote:
Hi, I'm trying to create an application which checks a
dynamic web site and on certain events sends an email to me.
My problem though is with the email task. By now I made this
simple test code:

#prova invio email
smtpserver = smtplib.SMTP(mailserver)
messaggio= "Messaggio di prova"
print mail
print messaggio
smtpresult=smtpserver.sendmail("Watcher",mail,mess aggio)
if smtpresult:
print smtpresult
smtpserver.quit()

"mailserver" and "mail" values are loaded from a ini file
and they're correct.
The call to smtpserver gives back no errors (smtpresult
remains empty).
The running enviroment gives no error.
So, it looks like that the program works alloright, sending
the mail- BUT, I receive no mail! I've tried to change the
smtp server with another one which still works with my isp,
with no luck. If I try a smtp which doesn't give me access,
I correctly receive an error from the program.
What might be the problem?
Jan 29 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.