Re: email questions

2008-11-13 Thread Steve Holden
ted & irma slage wrote:
> I tried to get a message to the below email address and this information
> was sent back to me.  Can you help me find out why it would not go
> through, or send it to the place that may help me?
> Thank you,
> Irma Slage
> [EMAIL PROTECTED] 
> 
> The error that the other server returned was: 553 553 5.3.0
> <[EMAIL PROTECTED] >... Addressee
> unknown, relay=[64.233.182.185 ] (state 14).
> 
Perhaps if you explain the Python aspect of your question.

regards
 Steve
-- 
Steve Holden+1 571 484 6266   +1 800 494 3119
Holden Web LLC  http://www.holdenweb.com/

--
http://mail.python.org/mailman/listinfo/python-list


email questions

2008-11-12 Thread ted & irma slage
I tried to get a message to the below email address and this  
information was sent back to me.  Can you help me find out why it  
would not go through, or send it to the place that may help me?

Thank you,
Irma Slage
[EMAIL PROTECTED]

The error that the other server returned was: 553 553 5.3.0 <[EMAIL PROTECTED] 
>... Addressee unknown, relay=[64.233.182.185] (state 14).--
http://mail.python.org/mailman/listinfo/python-list


Re: email questions

2006-02-09 Thread Carsten Haese
On Thu, 2006-02-09 at 00:50, Dennis Lee Bieber wrote:
> On Wed, 8 Feb 2006 10:49:27 -0800, Scott Frankel <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
> 
> 
> > 
> > mail..net
> 
>   Not sure why you feel you need to hide it -- I'm presuming it is the
> same ISP in your email address...
> 
>   However, I'm currently finding a dead access to it...
> 
> C:\Documents and Settings\Dennis Lee Bieber>tracert smtp.pacbell.net
> Unable to resolve target system name smtp.pacbell.net.
> 
> C:\Documents and Settings\Dennis Lee Bieber>tracert mail.pacbell.net
> 
> Tracing route to mail.pacbell.net [207.115.57.20]
> over a maximum of 30 hops:
> 
>   1 1 ms<1 ms<1 ms  192.168.1.1
>   217 ms13 ms14 ms  user-11fa401.dsl.mindspring.com
> [66.245.16.1]
>   313 ms13 ms15 ms cor02-vl-10.ca-sanfranc0.ne.earthlink.net
> [209.165.103.65]
>   416 ms13 ms16 ms
> bor01-ge-6-1.ca-sanfranc0.ne.earthlink.net [209.165.103.17]
>   522 ms22 ms22 ms
> bor02-so-3-1.ca-pasadena0.ne.earthlink.net [209.165.109.154]
>   623 ms27 ms31 ms
> bor01-ge-1-1-0.ca-losangel4.ne.earthlink.net [209.165.107.182]
>   728 ms21 ms22 ms  ex1-g8-1s1.eqlaca.sbcglobal.net
> [206.223.123.79]
>   824 ms22 ms23 ms  ex2-p3-0.eqlaca.sbcglobal.net
> [151.164.191.226]
>   925 ms24 ms24 ms  bb1-p6-0.crrvca.sbcglobal.net
> [151.164.41.34]
>  1023 ms24 ms27 ms  core2-p4-0.crrvca.sbcglobal.net
> [151.164.41.1]
>  1158 ms61 ms59 ms  core2-p3-0.crhstx.sbcglobal.net
> [151.164.241.125]
>  1288 ms89 ms81 ms  core1-p9-0.cratga.sbcglobal.net
> [151.164.191.192]
>  1383 ms82 ms84 ms  core2-p1-0.cratga.sbcglobal.net
> [151.164.241.82]
>  1482 ms82 ms83 ms  core2-p6-0.crhnva.sbcglobal.net
> [151.164.41.206]
>  1588 ms89 ms90 ms  core2-p3-0.crnyny.sbcglobal.net
> [151.164.188.197]
>  1691 ms88 ms89 ms  bb2-p3-0.nycmny.sbcglobal.net
> [151.164.240.221]
>  1788 ms90 ms87 ms  ded2-g8-3-0.nycmny.sbcglobal.net
> [151.164.41.181]
>  1893 ms90 ms98 ms  66.10.112.6
>  19 *** Request timed out.
>  20 *** Request timed out.
>  21 *** Request timed out.
>  22 *** Request timed out.
>  23 *** Request timed out.

This does not necessarily mean that the server is down. Routers can
filter traceroute and ping. Telnet to mail.pacbell.net on port 25 works
just fine. If the server had been down, the OP would not have gotten
"connection refused", he would have gotten a connection timeout.

The OP's problem is most likely that he's doing this:

s = smtplib.SMTP("mail.pacbell.net")  # This already connects s
s.connect() # This reconnects s to localhost and is refused

when he should do this:

s = smtplib.SMTP()  # make an unconnected SMTP instance
s.connect("mail.pacbell.net") # and connect it.

or simply this:

s = smtplib.SMTP("mail.pacbell.net")

-Carsten


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: email questions

2006-02-08 Thread Scott Frankel

Yes, I was doing something wrong:  I was connecting to the localhost  
after instantiation.  All better now.

Thanks for the tips!
Scott



On Feb 8, 2006, at 11:04 AM, Carsten Haese wrote:

>
> Then you're doing something wrong. The line
>
> s = smtplib.SMTP("mail.ispname.net") instantiates an SMTP instance and
> connects it. Are you doing s.connect() afterwards? If yes, don't do
> that, it'll try to connect to the local host, which is not an smtp
> server.
>
> If you want to separate instantiation and connection, do this:
>
> s = smtplib.SMTP()
> s.connect("mail.ispname.net")
>
> -Carsten
>
>

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: email questions

2006-02-08 Thread Carsten Haese
On Wed, 2006-02-08 at 13:49, Scott Frankel wrote:
> Seems I'm still having issues with syntax.
> 
>  From what I can tell from my mail client, my outgoing mail server  
> name is either
>   
>   mail..net

This is it.

> or
>   mail..net:@.com

Not this.

> The former yields the same socket error on connect() that I reported  
> earlier.

Then you're doing something wrong. The line

s = smtplib.SMTP("mail.ispname.net") instantiates an SMTP instance and
connects it. Are you doing s.connect() afterwards? If yes, don't do
that, it'll try to connect to the local host, which is not an smtp
server.

If you want to separate instantiation and connection, do this:

s = smtplib.SMTP()
s.connect("mail.ispname.net")

-Carsten


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: email questions

2006-02-08 Thread Heiko Wundram
Scott Frankel wrote:

> 
> Seems I'm still having issues with syntax.
> 
>  From what I can tell from my mail client, my outgoing mail server
> name is either
> 
> mail..net
> or
> mail..net:@.com
> 
> The former yields the same socket error on connect() that I reported
> earlier.  The latter yields a "nonnumeric port" error upon
> instantiation.  Instantiating with the port number,

The latter isn't a hostname, it's a hostname (mail..net) padded
with user information for SMTP-Auth, which shouldn't be written in this
format anyway.

Probably your Provider only supports SMTPs or the like (which doesn't use
the default port 25, check for that. Otherwise: if connections are still
refused, does your provider really want you to use this mailserver? Or are
they providing some other relay? I know most ISPs I know and work with use
smtp. for their outgoing client-relay.

--- Heiko.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: email questions

2006-02-08 Thread Scott Frankel

Seems I'm still having issues with syntax.

 From what I can tell from my mail client, my outgoing mail server  
name is either

mail..net
or
mail..net:@.com

The former yields the same socket error on connect() that I reported  
earlier.  The latter yields a "nonnumeric port" error upon  
instantiation.  Instantiating with the port number,

s = smtplib.SMTP("mail..net:@.com",  
portNum)

yields the following error:

socket.gaierror: (7, 'No address associated with nodename')


Suggestions?

Thanks again
Scott




On Feb 8, 2006, at 9:47 AM, Carsten Haese wrote:

> On Wed, 2006-02-08 at 12:34, Scott Frankel wrote:
>> I'm looking for a way to send a simple, plain text email message
>> using Python.  My initial attempts are failing with the following  
>> error:
>>
>>  socket.error: (61, 'Connection refused')
>>
>> Does this imply that I do not have the machine's smtp server
>> running?
>
> Yes.
>
>>   (I don't; and I'd like to avoid setting it up.)
>
> You don't have to set up an smtp server to use smtplib. You should be
> able to use your ISP's outgoing mail server, as in
>
> s = smtplib.SMTP("")
>
> HTH,
>
> Carsten.
>
>
> -- 
> http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: email questions

2006-02-08 Thread Carsten Haese
On Wed, 2006-02-08 at 12:34, Scott Frankel wrote:
> I'm looking for a way to send a simple, plain text email message  
> using Python.  My initial attempts are failing with the following error:
> 
>   socket.error: (61, 'Connection refused')
> 
> Does this imply that I do not have the machine's smtp server  
> running?

Yes.

>   (I don't; and I'd like to avoid setting it up.)

You don't have to set up an smtp server to use smtplib. You should be
able to use your ISP's outgoing mail server, as in

s = smtplib.SMTP("")

HTH,

Carsten.


-- 
http://mail.python.org/mailman/listinfo/python-list


email questions

2006-02-08 Thread Scott Frankel

I'm looking for a way to send a simple, plain text email message  
using Python.  My initial attempts are failing with the following error:

socket.error: (61, 'Connection refused')

Does this imply that I do not have the machine's smtp server  
running?  (I don't; and I'd like to avoid setting it up.)

I'm following example code in the lib ref docs:

 >>> s = smtplib.SMTP()
 >>> s.connect()
Traceback (most recent call last):
   File "", line 1, in ?
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/smtplib.py", line 303, in connect
 raise socket.error, msg
socket.error: (61, 'Connection refused')


Python 2.4.1
MacOSX 10.4.3


Is there a better/easier way to send a plain text message?

Thanks in advance!
Scott
-- 
http://mail.python.org/mailman/listinfo/python-list