From sergej at dergatsjev.be Fri Mar 2 20:25:19 2007
From: sergej at dergatsjev.be (Dergatsjev Sergej)
Date: Fri, 2 Mar 2007 20:25:19 +0100
Subject: [python-nl] probleem met smtplib
Message-ID: <003001c75d00$83e8e550$6402a8c0@noneiylkramyvm>
Heeft iemand een idee over het probleem met smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
from email.MIMEImage import MIMEImage
# Define these once; use them twice!
strFrom = 'ser op telenet.be'
strTo = 'info op eecho.info'
# Create the root message and fill in the from, to, and subject headers
msgRoot = MIMEMultipart('related')
msgRoot['Subject'] = 'test message'
msgRoot['From'] = strFrom
msgRoot['To'] = strTo
msgRoot.preamble = 'This is a multi-part message in MIME format.'
# Encapsulate the plain and HTML versions of the message body in an
# 'alternative' part, so message agents can decide which they want to display.
msgAlternative = MIMEMultipart('alternative')
msgRoot.attach(msgAlternative)
msgText = MIMEText('This is the alternative plain text message.')
msgAlternative.attach(msgText)
# We reference the image in the IMG SRC attribute by the ID we give it below
msgText = MIMEText('Some HTML text and an image.
Nifty!', 'html')
msgAlternative.attach(msgText)
# This example assumes the image is in the current directory
fp = open('over.gif', 'rb')
msgImage = MIMEImage(fp.read())
fp.close()
# Define the image's ID as referenced above
msgImage.add_header('Content-ID', '')
msgRoot.attach(msgImage)
# Send the email (this example assumes SMTP authentication is required)
import smtplib
smtp = smtplib.SMTP()
smtp.connect('mail-out.telenet.be')
smtp.login('mijn_geruiker', 'mijn_wachtwoord')
smtp.sendmail(strFrom, strTo, msgRoot.as_string())
smtp.quit()
Deze script veroorzaakt volgende foutmelding:
File "C:\Python25\lib\smtplib.py", line 554, in login
raise SMTPException("SMTP AUTH extension not supported by server.")
SMTPException: SMTP AUTH extension not supported by server.
Ligt het waarschijnlijk aan mijn provider?
Heeft al iemand zo iets gezien?
------------- volgend deel ------------
Een HTML-bijlage is verwijderd...
URL: http://mail.python.org/pipermail/python-nl/attachments/20070302/bb8dff75/attachment.html
From wichert at wiggy.net Fri Mar 2 20:33:24 2007
From: wichert at wiggy.net (Wichert Akkerman)
Date: Fri, 2 Mar 2007 20:33:24 +0100
Subject: [python-nl] probleem met smtplib
In-Reply-To: <003001c75d00$83e8e550$6402a8c0@noneiylkramyvm>
References: <003001c75d00$83e8e550$6402a8c0@noneiylkramyvm>
Message-ID: <20070302193324.GB28459@wiggy.net>
Previously Dergatsjev Sergej wrote:
> smtp.login('mijn_geruiker', 'mijn_wachtwoord')
Daar zit de fout: je probeert in te loggen op je SMTP server, maar:
> File "C:\Python25\lib\smtplib.py", line 554, in login
>
> raise SMTPException("SMTP AUTH extension not supported by server.")
de SMTP server die je gebruikt snapt dat niet. Weet je zeker dat het
nodig is om in te loggen? Dat is vrij ongebruikelijk voor smtp servers.
Wichert.
--
Wichert Akkerman It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
From lists at janc.be Fri Mar 2 20:57:57 2007
From: lists at janc.be (Jan Claeys)
Date: Fri, 02 Mar 2007 20:57:57 +0100
Subject: [python-nl] probleem met smtplib
In-Reply-To: <003001c75d00$83e8e550$6402a8c0@noneiylkramyvm>
References: <003001c75d00$83e8e550$6402a8c0@noneiylkramyvm>
Message-ID: <1172865478.13488.26.camel@localhost>
On vr, 2007-03-02 at 20:25 +0100, Dergatsjev Sergej wrote:
> smtp.login('mijn_geruiker', 'mijn_wachtwoord')
Laat deze lijn maar weg; Telenet heeft geen authenticatie op de
uitgaande mail-relay (zoals de foutmelding ook zegt).
--
Jan Claeys
From dick.kniep at lindix.nl Mon Mar 12 16:11:24 2007
From: dick.kniep at lindix.nl (Dick Kniep)
Date: Mon, 12 Mar 2007 16:11:24 +0100
Subject: [python-nl] Pythonistas gevraagd
Message-ID: <200703121611.24548.dick.kniep@lindix.nl>
Beste lijst,
Wij zoeken een ontwikkelaar die meer wil dan alleen coderen. Bijgevoegd is een
functiebeschrijving.
---
Met vriendelijke groet,
Dick Kniep
Lindix BV.
tel 036-521 5580
fax 036-844 1825
mob 06-50991858
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Vacature Pythonist 13032007.pdf
Type: application/pdf
Size: 56714 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-nl/attachments/20070312/e541d4a2/attachment-0001.pdf