Ultime notizie
Home » Archivio per il tag: smtp

Archivio per il tag: smtp

[VB.NET] : Inviare una mail in formato HTML

[sourcecode language=”vb”] Function SendEmail(ByVal ToAddress As String, ByVal FromAddress As String, ByVal MessageSubject As String, ByVal MessageBody As String) Dim MessageHead As String = "<html><head>" MessageHead = MessageHead & "<style " MessageHead = MessageHead & "body {background-color:#F7F7F7; color:#000; font-family:arial,verdana,sans-serif; font-size:12px;}" MessageHead = MessageHead & "</style></head></body>" Dim MessageFoot As String = "</body></html>" MessageBody = MessageHead & MessageBody & MessageFoot Dim ReturnMessage …

Continua a leggere »