|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
smtp "access denied" issue
im trying to make a program that sends a text message to my phone whenever i get an im on through my Aol screen name..
currently aol doesnt support "virgin mobile" phone numbers... which is what i have... but i figure i can still send it through SMTP, i can get it to work if i send the text messages through yahoo ..I.E. 0001112222@vmobl.com that works, so im trying to use python to send the emails when i get an im ( i have all of the aim stuff figured out already) the problem comes when i try to use pythons smtplib module i dont have much knowledge in this area.. but this is what happens apparently my sbc dsl modem blocks port 25, which i use to send out the emails in STMP, so i set it up so that it uses the sbc mail server 'mail.pacbell.net' my test script is this.. import smtplib toaddrs = "myphone@vmobl.com" fromaddr = "someaddress@wherever.com" msg="This is the message" server = smtplib.SMTP('mail.pacbell.net') failed = server.sendmail(fromaddr, toaddrs, msg) server.quit() print "done" and it prints... Traceback (most recent call last): File "E:/Programs/Python 2.3.4/cellphone.py", line 8, in -toplevel- failed = server.sendmail(fromaddr, toaddrs, msg) File "E:\Programs\Python 2.3.4\lib\smtplib.py", line 676, in sendmail raise SMTPSenderRefused(code, resp, from_addr) SMTPSenderRefused: (550, '5.0.0 Access denied', 'someaddress@wherever.com') i dont know why its saying "acces denied" ive tried several of my emails, and none of them seem to work can anyone tell me how to work aroudn this? thanks for any help, and sorry for the lengthy post |
|
#2
|
|||
|
|||
|
ahhhhh
i figured it out i changed the server to smtp.sbcglobal.net and it works fine now |
|
#3
|
|||
|
|||
|
Thats actually a really great idea, what a great thing to show off to your friends. ;)
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > smtp "access denied" issue |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|