Normalerweise sollte tats�chlich Localhost verwendet werden. Bei mir
zumindest funktioniert es.
Vorraussetzung daf�r ist allerdings logischerweise, dass auf localhost auch
tats�chlich ein (virtueller) Smtp-Server l�uft.

Gru�
Sebastian

-----Urspr�ngliche Nachricht-----
Von: Ralph Remensperger [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 18. M�rz 2003 11:06
An: [EMAIL PROTECTED]
Betreff: Re: [Coffeehouse] Email-Versand



Huhu, ich hab den Fehler. Hier zur Info falls jemand auch mal daran h�ngt:

Ich musste noch explizit die Eigenschaft "SmtpServer" auf den SMTP-Server
setzen. In der Doku steht zwar dass automatisch der Localhost verwendet
wird, dem ist aber nicht so.

    Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
        Dim msgMail As New MailMessage()

        msgMail.To = "[EMAIL PROTECTED]"
        msgMail.From = "[EMAIL PROTECTED]"
        msgMail.Subject = "Fehler aufgetreten"

        msgMail.BodyFormat = MailFormat.Text
        msgMail.Body = Server.GetLastError.ToString

        SmtpMail.SmtpServer = "MailServer"

        SmtpMail.Send(msgMail)
    End Sub

Thx 4 help!!

Gr�sse

Ralph




 

                    Sebastian Krampe

                    <[EMAIL PROTECTED]>         To:
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>               
                    Sent by:                     cc:

                    [EMAIL PROTECTED]        Subject:     AW:
[Coffeehouse] Email-Versand                                    
                    ngamoi.com

 

 

                    18.03.2003 10:47

                    Please respond to

                    coffeehouse

 

 





Hmm. Ich kenne zwar VB.Net nicht aber kann es sein, dass Du in der Zeile
'msgMail.Body = Server.GetLastError.ToString' die Klammern '()' vergessen
hast, und somit eine Exception ausl�st die wiederum erneut eine Fehlermail
erzeugen soll... Und der ganze Spass von vorne beginnt?

Gru�
Sebastian

-----Urspr�ngliche Nachricht-----
Von: Ralph Remensperger [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 18. M�rz 2003 10:43
An: [EMAIL PROTECTED]
Betreff: [Coffeehouse] Email-Versand


Hallo,

ich m�chte nach einem Fehler in der Applikation ein Mail an mich mit dem
Inhalt der Fehlermeldung schicken lassen. Der User wird dabei auf eine von
mir erstellte "Fehlerseite" umgeleitet.

Nun habe ich in der Global.asax folgenden Code:

    Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
        Dim msgMail As New MailMessage()

        msgMail.To = "[EMAIL PROTECTED]"
        msgMail.From = "[EMAIL PROTECTED]"
        msgMail.Subject = "Fehler aufgetreten"

        msgMail.BodyFormat = MailFormat.Text
        msgMail.Body = Server.GetLastError.ToString

        SmtpMail.Send(msgMail)
    End Sub

Soweit ist alles toll, er l�uft ohne Fehler durch, leider bekomme ich nicht
wirklich ne Mail sieht so aus dass er das Mail zwar generiert aber dann
nicht verschickt.

Woran liegt das??? Muss ich noch irgendwas hinzuf�gen, damit das Mail dann
auch wirklich verschickt wird???

Please help!!!

Merci und Gr�sse

Ralph

~~~~~~~~~~~~~~~~~~~~~~~~~~~sponsored by United Planet~~~~~~~~~~~~~~~~~
Kaffeepause im United Planet Communityserver ...
http://www.intrexx.com/communityserver
_______________________________________________
Coffeehouse mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/coffeehouse
~~~~~~~~~~~~~~~~~~~~~~~~~~~sponsored by United Planet~~~~~~~~~~~~~~~~~
Kaffeepause im United Planet Communityserver ...
http://www.intrexx.com/communityserver
_______________________________________________
Coffeehouse mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/coffeehouse




~~~~~~~~~~~~~~~~~~~~~~~~~~~sponsored by United Planet~~~~~~~~~~~~~~~~~
Kaffeepause im United Planet Communityserver ...
http://www.intrexx.com/communityserver                         
_______________________________________________
Coffeehouse mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/coffeehouse
~~~~~~~~~~~~~~~~~~~~~~~~~~~sponsored by United Planet~~~~~~~~~~~~~~~~~
Kaffeepause im United Planet Communityserver ...
http://www.intrexx.com/communityserver                         
_______________________________________________
Coffeehouse mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/coffeehouse

Antwort per Email an