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
>
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
> 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
[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
[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
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
[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
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
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
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
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
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
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
> 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
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
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
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
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
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
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
>
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
21 matches
Mail list logo