View Single Post
Old 11-30-2004, 01:39 PM   #1 (permalink)
Artsemis
Insane
 
Location: West Virginia
[Python] Very Simple Email Send

Code:
from smtplib import *

outbox = SMTP('mail.pcwv.com')
MyAddr = "jay@pcwv.com"
Target = "jay@pcwv.com"
outbox.sendmail(MyAddr,Target,"Hi There")
Everytime i try to execute that, I get a "Connection unexpectedy closed". Just to verify, I have also copy and pasted many other senders off internet with no luck.

Anyone see the issue here? Can it be anything other than the mail server not allowing me to do this?
__________________

- Artsemis
~~~~~~~~~~~~~~~~~~~~
There are two keys to being the best:
1.) Never tell everything you know
Artsemis is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54