Visualizzazione dei risultati da 1 a 2 su 2

Discussione: formattare la mail??

  1. #1

    formattare la mail??

    come si formatta una mail... ovvero riuscire a riceverla in modo cliccabile direttamente nel messaggio di posta ?


    mail.Body = LName.Text & " " & FName.Text & Email.Text


    Grazie!
    de gustibus non disputandum est

  2. #2
    puoi formattare l'email come html:

    codice:
    emailObject.BodyFormat = MailFormat.Html
    e poi generare l'html che ti serve:

    codice:
    emailObject.Body = "<a href=\""& url &"\" target=\"_blank\">"& name &"</a>"
    magari così è un po' più carino, credo che si possafare anche in VB.Net (io uso C# e faccio fatica a ricordarmi il VB...):

    codice:
    emailObject.Body = String.Format("<a href=\"{0}\" target=\"_blank\">{1}</a>",url,name)
    spero ti sia utile.
    ciao.
    If you want a picture of the future, imagine a boot stamping on a human face-for ever.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.