MS Service und WMDLL
This commit is contained in:
@@ -18,17 +18,14 @@ Public Class Email
|
||||
'Für jeden Empfänger eine Neue Mail erzeugen
|
||||
For Each _mailempfaenger As String In empfaenger
|
||||
Try
|
||||
Dim message As New Message With {
|
||||
.From = New Mailbox(mailfrom, mailfrom)
|
||||
}
|
||||
Dim message As New Message()
|
||||
message.From = New Mailbox(mailfrom, mailfrom)
|
||||
message.[To].Add(New Mailbox(_mailempfaenger))
|
||||
message.Subject = mailSubject
|
||||
|
||||
Dim textBodyPart As New BodyPart With {
|
||||
.ContentType = New ContentType("text", "plain", "utf-8"),
|
||||
.ContentTransferEncoding = ContentTransferEncoding.QuotedPrintable,
|
||||
.Body = mailBody
|
||||
}
|
||||
Dim textBodyPart As New BodyPart()
|
||||
textBodyPart.ContentType = New ContentType("text", "html", "utf-8")
|
||||
textBodyPart.ContentTransferEncoding = ContentTransferEncoding.QuotedPrintable
|
||||
textBodyPart.Body = mailBody
|
||||
message.BodyParts.Add(textBodyPart)
|
||||
If attment <> String.Empty Then
|
||||
If System.IO.File.Exists(attment) Then
|
||||
|
||||
Reference in New Issue
Block a user