Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

vb.net system.web.mail-klasse html-format

Empfohlene Antworten

Veröffentlicht

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:
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

eventuel liegts am Encodeing aber sicher bin ich mir nicht.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.