11-30-2004, 01:39 PM | #1 (permalink) |
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") 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 |
11-30-2004, 04:44 PM | #2 (permalink) |
Crazy
Location: here and there
|
I'm just learning python so i cant really comment on the code. I know that from the interpreter i have to do this:
outbox = smtplib.SMTP('mail.myserver.com') many isps disable relaying so you cant send from a mailserver other than theirs. You may want to try and set-up an email account using the server just to make sure you can send from the account. Also if your server requires authorization, that may be a problem.
__________________
# chmod 111 /bin/Laden |
11-30-2004, 06:02 PM | #3 (permalink) | |
beauty in the breakdown
Location: Chapel Hill, NC
|
Quote:
__________________
"Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws." --Plato |
|
Tags |
email, python, send, simple |
|
|