Re: Unclear on argument passing to "sendmail'

2006-08-22 Thread John Draper
I will respond to part of this, although it wasn't directed to me. Tim Williams wrote: > However it really depends on the use-case, relaying through another > server will give you no control over bad addresses, you have to wait > for bounces from the recipient's server, or conversely the ISP

Re: Unclear on argument passing to "sendmail'

2006-08-22 Thread Tim Williams
On 22/08/06, Tim Roberts <[EMAIL PROTECTED]> wrote: > John Draper <[EMAIL PROTECTED]> wrote: Hi Tim :) > Tim William's answer is not exactly correct. The host you specify in the > smtplib.SMTP constructor should NOT be the MX record for any of the > recipients. You should never have to look up

Re: Unclear on argument passing to "sendmail'

2006-08-22 Thread John Draper
Tim Williams wrote: > On 21/08/06, John Draper <[EMAIL PROTECTED]> wrote: > >> In "smtplib" module, the "sendmail" method of function is to be passed > > > host, but it is the Domain name > >> for the SMTP Server as gotten from the "dig" command? IE: dig -tMX >> would give me the SMTP >> serv

Re: Unclear on argument passing to "sendmail'

2006-08-22 Thread Tim Roberts
John Draper <[EMAIL PROTECTED]> wrote: > >In "smtplib" module, the "sendmail" method of function is to be passed a >host, but it is the Domain name >for the SMTP Server as gotten from the "dig" command? IE: dig -tMX >would give me the SMTP >server. In my code I have: > >try: >print "Sen

Re: Unclear on argument passing to "sendmail'

2006-08-21 Thread Tim Williams
On 21/08/06, Tim Williams <[EMAIL PROTECTED]> wrote: > On 21/08/06, John Draper <[EMAIL PROTECTED]> wrote: Sorry, there's an indentation error here except smtplib.SMTPRecipientsRefused, x : #all recips failed for recip in x.recipients: print recip server.quit() break it

Re: Unclear on argument passing to "sendmail'

2006-08-21 Thread Tim Williams
On 21/08/06, John Draper <[EMAIL PROTECTED]> wrote: > In "smtplib" module, the "sendmail" method of function is to be passed > host, but it is the Domain name > for the SMTP Server as gotten from the "dig" command? IE: dig -tMX > would give me the SMTP > server. In my code I have: > > try:

Unclear on argument passing to "sendmail'

2006-08-21 Thread John Draper
In "smtplib" module, the "sendmail" method of function is to be passed a host, but it is the Domain name for the SMTP Server as gotten from the "dig" command? IE: dig -tMX would give me the SMTP server. In my code I have: try: print "Sending message to host: %s" % mailHost server=s