Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 16th, 2004, 05:59 PM
saddlebacks saddlebacks is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 8 saddlebacks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old August 16th, 2004, 06:13 PM
saddlebacks saddlebacks is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 8 saddlebacks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ahhhhh


i figured it out


i changed the server to smtp.sbcglobal.net and it works fine now

Reply With Quote
  #3  
Old August 17th, 2004, 06:57 PM
dbickett dbickett is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 34 dbickett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Thats actually a really great idea, what a great thing to show off to your friends. ;)

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > smtp "access denied" issue


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT