Re: question about smtplib

2005-10-05 Thread Tim Roberts
Piet van Oostrum <[EMAIL PROTECTED]> wrote: >> Tim Roberts <[EMAIL PROTECTED]> (TR) wrote: > >>TR> [EMAIL PROTECTED] wrote: cool. so this line server = smtplib.SMTP(localhost) is when i connect ? > >>TR> Use the source, Luke. Source code for every standard module is included >

Re: question about smtplib

2005-10-04 Thread nephish
thanks for all the help, got it working ok now, connecting once, sending many. thanks for the link too. cheers, sk -- http://mail.python.org/mailman/listinfo/python-list

Re: question about smtplib

2005-10-04 Thread Piet van Oostrum
> Tim Roberts <[EMAIL PROTECTED]> (TR) wrote: >TR> [EMAIL PROTECTED] wrote: >>> cool. so this line >>> server = smtplib.SMTP(localhost) >>> is when i connect ? >TR> Use the source, Luke. Source code for every standard module is included on >TR> your hard disk. If you look in the __init__ fo

Re: question about smtplib

2005-10-03 Thread Tim Roberts
[EMAIL PROTECTED] wrote: >cool. so this line >server = smtplib.SMTP(localhost) >is when i connect ? Use the source, Luke. Source code for every standard module is included on your hard disk. If you look in the __init__ for "class SMTP", your question will be answered. -- - Tim Roberts, [EMAIL

Re: question about smtplib

2005-10-03 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > cool. so this line > server = smtplib.SMTP(localhost) > is when i connect ? http://www.python.org/doc/lib/module-smtplib.html "If the optional host and port parameters are given, the SMTP connect() method is called with those parameters during initiali

Re: question about smtplib

2005-10-03 Thread nephish
cool. so this line server = smtplib.SMTP(localhost) is when i connect ? i had my syntax wrong anyway, i was using server.close() instead of server.quit() thanks much -- http://mail.python.org/mailman/listinfo/python-list

Re: question about smtplib

2005-10-03 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hey there, > > i am using the smtplib module in python 2.3 > > my question is, this works: > > server = smtplib.SMTP(localhost) > > then server.sendmail(to address, from address, message) > > > what i want to know is, how does the connection work? > > when i do ser

question about smtplib

2005-10-03 Thread nephish
Hey there, i am using the smtplib module in python 2.3 my question is, this works: server = smtplib.SMTP(localhost) then server.sendmail(to address, from address, message) what i want to know is, how does the connection work? when i do server.sendmail, does it connect then ? or did it connec

Re: Question about smtplib, and mail servers in general.

2005-09-26 Thread Christos Georgiou
On Wed, 21 Sep 2005 07:50:26 +0100, rumours say that Steve Holden <[EMAIL PROTECTED]> might have written: >I agree that there's an element of the moral imperative in my assertion >that the mails "should" go through which is largely ignored by the real >world nowadays. Some ISPs force you to use

Re: Question about smtplib, and mail servers in general.

2005-09-26 Thread Christos Georgiou
On Tue, 20 Sep 2005 16:48:41 +0200, rumours say that Piet van Oostrum <[EMAIL PROTECTED]> might have written: >And most smtp servers that I know also pass mail from any from-address to >any to-address if the IP number of he client machine belongs to a trusted >range (usually the range that belongs

Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Steve Holden
Peter Hansen wrote: > Steve Holden wrote: > >>Peter Hansen wrote: >> >>>In any case, unless the mail server will allow "relaying", which most >>>don't these days (to prevent spamming), then it won't work the way you >>>are hoping unless *all* the 100 addresses are local ones, to be >>>delivered

Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Peter Hansen
Steve Holden wrote: > Peter Hansen wrote: >> In any case, unless the mail server will allow "relaying", which most >> don't these days (to prevent spamming), then it won't work the way you >> are hoping unless *all* the 100 addresses are local ones, to be >> delivered to users on the server you

Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Mike Meyer
Peter Hansen <[EMAIL PROTECTED]> writes: > Daniel Dittmar wrote: >> Chris Dewin wrote: >>> Hi. I've been thinking about using smtplib to run a mailing list >>> from my website. >>> >>> s = smtplib.SMTP("server") >>> s.sendmail(fromaddress, toaddresess, msg) >>> >>> I know that in this instance, the

Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Piet van Oostrum
> Steve Holden <[EMAIL PROTECTED]> (SH) wrote: >SH> To add one final note, if the "fromaddress" belongs to a domain that's >SH> properly handled by the SMTP server then you aren't relaying (since you are >SH> a legitimate domain user) so the mails should go through. And most smtp servers that

Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Steve Holden
Peter Hansen wrote: > Chris Dewin wrote: > >>Hi. I've been thinking about using smtplib to run a mailing list from my >>website. >> >>s = smtplib.SMTP("server") >>s.sendmail(fromaddress, toaddresess, msg) >> >>I know that in this instance, the toaddresses variable can be a variable >>of type list

Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Peter Hansen
Chris Dewin wrote: > Hi. I've been thinking about using smtplib to run a mailing list from my > website. > > s = smtplib.SMTP("server") > s.sendmail(fromaddress, toaddresess, msg) > > I know that in this instance, the toaddresses variable can be a variable > of type list. > > Suppose the list c

Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Peter Hansen
Daniel Dittmar wrote: > Chris Dewin wrote: > >> Hi. I've been thinking about using smtplib to run a mailing list from >> my website. >> >> s = smtplib.SMTP("server") >> s.sendmail(fromaddress, toaddresess, msg) >> >> I know that in this instance, the toaddresses variable can be a variable >> of t

Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Tim Williams (gmail)
On 20/09/05, Daniel Dittmar <[EMAIL PROTECTED]> wrote: > Chris Dewin wrote: > > Hi. I've been thinking about using smtplib to run a mailing list from my > > website. > > > > s = smtplib.SMTP("server") > > s.sendmail(fromaddress, toaddresess, msg) > > > > Not really an answer to your question, bu

Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Daniel Dittmar
Chris Dewin wrote: > Hi. I've been thinking about using smtplib to run a mailing list from my > website. > > s = smtplib.SMTP("server") > s.sendmail(fromaddress, toaddresess, msg) > > I know that in this instance, the toaddresses variable can be a variable > of type list. > > Suppose the list c

Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Tim Williams (gmail)
On 20/09/05, Chris Dewin <[EMAIL PROTECTED]> wrote: > > s = smtplib.SMTP("server") > s.sendmail(fromaddress, toaddresess, msg) > > I know that in this instance, the toaddresses variable can be a variable > of type list. > > Suppose the list contains well over 100 emails. Would that create some >

Question about smtplib, and mail servers in general.

2005-09-20 Thread Chris Dewin
Hi. I've been thinking about using smtplib to run a mailing list from my website. s = smtplib.SMTP("server") s.sendmail(fromaddress, toaddresess, msg) I know that in this instance, the toaddresses variable can be a variable of type list. Suppose the list contains well over 100 emails. Would tha