Veröffentlicht 26. Juni 200718 j Hallo Leute, ich versende E-Mails aus VB.NET mit der "System.Web.Mail"-Klasse. das ganze funktioniert auch. ich möchte nur jetzt in meine Mails links einbauen. nur funktioniert das ganze nicht so wie ich das möchte. mein code ist folgender:Dim email As New MailMessage With email .From = "test@test.de" .To = "test@test.de" .Subject = "test" .BodyFormat = MailFormat.Html .BodyEncoding = System.Text.Encoding.Default .Body = "<html><head><title></title><body><a href=" & Chr(34) & "http://www.google.de" & Chr(34) & ">google</a></body></html>" .Priority = MailPriority.Normal End With SmtpMail.SmtpServer = "blablabla" SmtpMail.Send(email) ich bekomme aber in der email nicht das "google" als link sondern folgendes:google <http://www.google.de>ich habe es auch mit folgendem body probiert:.Body = "<!DOCTYPE HTML PUBLIC " & Chr(34) & "-//W3C//DTD HTML 4.0 Transitional//EN" & Chr(34) & "><HTML><HEAD><META http-equiv=Content-Type content=" & Chr(34) & "text/html; charset=iso-8859-1" & Chr(34) & "><META content=" & Chr(34) & "MSHTML 6.00.6000.16481" & Chr(34) & " name=GENERATOR></HEAD><body><a href=" & Chr(34) & "http://www.google.de" & Chr(34) & ">google</a></body></html>" allerdings auch ohne ergebnis. bin jetzt ein bischen ratlos. lg jasso
26. Juni 200718 j Autor :uppsmeine mails sind im spam-ordner gelandet. dort werden links nicht als solche angezeigt ... ich sollt mehr schlafen^^ danke trotzdem lg jasso
Archiv
Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.