On Sat, 09 Mar 2013 22:00:39 -0800, Νίκος Γκρ33κ wrote:

> Τη Κυριακή, 10 Μαρτίου 2013 7:56:45 π.μ. UTC+2, ο χρήστης Steven
> D'Aprano έγραψε:
> 
>> My wild guess is that the mail server is properly rejecting mail
>> because you are trying to send to it without an account.
> 
> Account 'support(-at-)hostgator.com' exists. It's the recipient mail
> address which is my personal address fot my web hosting business.
> 
> In TB yes i can read email via SSL witohut any problem.


I didn't ask if you can READ email using Thunderbird, I asked if you can 
SEND email using Thunderbird, *specifically* sending using the same mail 
server as your script is trying to do.

There is no point checking that Thunderbird can send email as 
"nikos.gr...@gmail.com" using the gmail server. You have to check whether 
it can send email as "mail" (notice that it is just a local name, not a 
full email address), using /usr/sbin/sendmail on whatever machine you 
happen to be using.

A second question... what happens if you try to send email using sendmail 
directly from the command line? If this is a hosted server, are you sure 
that they have enabled sendmail on the hosted server?

What happens if you try to send email using the email library, as seen 
here:

http://docs.python.org/3/library/email-examples.html

instead of using popen to talk directly to sendmail?


-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to