, in
? s.connect() File "C:\Python24\lib\smtplib.py",
line 307, in connect (code, msg) =
self.getreply() File "C:\Python24\lib\smtplib.py", line 348, in
getreply line = self.file.readline() File
"C:\Python24\lib\socket.py", line 3
essage, and
multiplerecipients may be given.
The email is sent by forwarding to your local SMTP server, which then does
thenormal delivery process. Your local machine must be running an SMTP
server.
Traceback (most recent call last): File "C:\Documents and
Settings\User\Desktop\EB2.
I have three books on Python programming, "Learning Python" by O'Reilly,
"Beginning Python" by Hetland, and "Python in a Nutshell" by O'Reilly. Are
these good (recommended) books? Any others that might be recommended?
___
Tutor maillist - Tutor@p
line = self.file.readline() File
"C:\Python24\lib\socket.py", line 340, in readline data =
"">error: (10054, 'Connection reset by
peer')
Anybody have any
suggestions?
Grady Henry
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I think that I am so close to getting this
simple program to run correctly:
# Import smtplib for the actual sending
functionimport smtplib
# Import the email modules we'll needfrom
email.MIMEText import MIMEText
# Open a plain text file for reading. For
this example, assume that# the
The following script will run on Microsoft Outlook
but not on Outlook Express:
from win32com.client import
Dispatchs=Dispatch("Mapi.Session")s.Logon()newMsg =
s.Outbox.Messages.Add("Hi from Python", "Hello")recip =
newMsg.Recipients.Add("Greg Hart",
"SMTP:[EMAIL PROTECTED]")newMsg.Send()s