ok. fehler gefunden....
hatte das passwort falsch geschrieben. :-/

danke an alle. jetzt funzt es...

Thomas Beckert
SitePoint GbR
Vorstadtstrasse 57
66117 Saarbr�cken
tel       0681 - 947 26 27
fax      0681 - 947 28 28
mobil   0178 - 49 15 16 9
e-mail  [EMAIL PROTECTED]
www.sitepoint.de
----- Original Message ----- 
From: "oskar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 07, 2004 1:04 PM
Subject: Re: [Asp.net] Server Authentifizierung


was mir noch auff�llt sind die ; hinter den 3 zeilen.... in c# w�rd das
passen, in vb auch?
ansonsten stimmen die 3 zeilen (wenn mit eckigen klammern!) f�r c#
zumindest....

lg
----- Original Message -----
From: "Thomas Beckert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 07, 2004 1:07 PM
Subject: Re: [Asp.net] Server Authentifizierung


ok. hier der ganze code. :-)


Sub sendMail(from As String, recepient As String, subject As String, _
                      bodyText As String, mailServer As String)
    Dim objMail As New System.Web.Mail.MailMessage()

    objMail.From = from
    objMail.To = recepient
    objMail.Subject = subject


objMail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthentic
ate"] = 1;

objMail.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername";
) = "[EMAIL PROTECTED]";

objMail.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword";
) = "xxxxxxxx";

    objMail.BodyFormat = MailFormat.Text 'MailFormat.HTML to send HTML email
    objMail.Body = bodyText

    System.Web.Mail.SmtpMail.SmtpServer = mailServer
    System.Web.Mail.SmtpMail.Send(objMail)
    objMail = Nothing
End Sub

'Absender-Adresse
Function getAbsender () As String
    return "[EMAIL PROTECTED]"
End Function

'Email-Server
Function getMailserver () As String
    return "mail.sitepoint.de"
End Function


----- Original Message -----
From: "oskar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 07, 2004 12:40 PM
Subject: Re: [Asp.net] Server Authentifizierung


und wo hast du den server angegeben?

lg,
oskar
----- Original Message -----
From: "Thomas Beckert" <[EMAIL PROTECTED]>
To: "ASP.NET" <[EMAIL PROTECTED]>
Sent: Friday, May 07, 2004 12:37 PM
Subject: [Asp.net] Server Authentifizierung


Hallo zusammen -

jene, die es im Coffeehouse nicht mit verfolgt haben, es geht um folgendes
Problem:

ich verschicke mittels MailObject eine Email. Der Email-Server ben�tigt aber
eine Authentifizierung.

Jetzt habe ich als Tip folgenden Link bekommen und das dort gefundene
eingebaut:
http://www.dotnetgerman.com/blogs/aspxintra.net/CommentView.aspx?guid=6A6128
6F-6E57-40F2-81C9-3210B4F47AC6

aber irgendwie peil ich das nicht. mein Code:

Dim objMail As New System.Web.Mail.MailMessage()

    objMail.From = from
    objMail.To = recepient
    objMail.Subject = subject


objMail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthentic
ate"] = 1;

objMail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername";
] = "[EMAIL PROTECTED]";

objMail.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword";
] = "xxxxxxx";


der fehler:

Compiler Error Message: BC30545: Property access must assign to the property
or use its value.

Source Error:


Line 11:         objMail.Subject = subject
Line 12:
Line 13:
objMail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthentic
ate"] = "1";
Line 14:
objMail.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername";
) = "[EMAIL PROTECTED]";
Line 15:
objMail.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword";
) = "$itePoin1";


*************************
_______________________________________________
This ASP.NET email is sponsored by:
UDEX ProMenu.Net  - Die Software f�r Navigation - Jetzt kostenlos testen!
Tree- Style, Horizontal- Slide, Vertical- Slide. http://www.udexnet.com

_______________________________________________
Asp.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net
*************************

*************************
_______________________________________________
This ASP.NET email is sponsored by:
UDEX ProMenu.Net  - Die Software f�r Navigation - Jetzt kostenlos testen!
Tree- Style, Horizontal- Slide, Vertical- Slide. http://www.udexnet.com

_______________________________________________
Asp.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net
*************************


*************************
_______________________________________________
This ASP.NET email is sponsored by:
UDEX ProMenu.Net  - Die Software f�r Navigation - Jetzt kostenlos testen!
Tree- Style, Horizontal- Slide, Vertical- Slide. http://www.udexnet.com

_______________________________________________
Asp.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net
*************************

*************************
_______________________________________________
This ASP.NET email is sponsored by:
UDEX ProMenu.Net  - Die Software f�r Navigation - Jetzt kostenlos testen!
Tree- Style, Horizontal- Slide, Vertical- Slide. http://www.udexnet.com

_______________________________________________
Asp.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net
*************************


*************************
_______________________________________________
This ASP.NET email is sponsored by:
UDEX ProMenu.Net  - Die Software f�r Navigation - Jetzt kostenlos testen!
Tree- Style, Horizontal- Slide, Vertical- Slide. http://www.udexnet.com

_______________________________________________
Asp.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net
*************************

Antwort per Email an