Hallo zusammen,
ich versuche derzeit über eine Funktion eine Outlookmail zu generieren, die dann Templates von mir und meinen Arbeitskollegen enthält und wir diese an Kunden senden.
Soweit funktioniert das erstellen der Mail einwandfrei - ich bekomme nur keine Textformatierung hin. Bestimmte Sachen in der Mail sollen halt formatiert sein. Manches halt fett manches kursiv usw und so fort.
Gibt ja mehrere Wege die Mails zu generieren:
[autoit]CreateMailItem()
Func CreateMailItem()
Local $olMailItem = 0
Local $olFormatRichText = 3
Local $olImportanceLow = 0
Local $olImportanceNormal= 1
Local $olImportanceHigh = 2
$oOApp = ObjCreate("Outlook.Application")
$oOMail = $oOApp.CreateItem($olMailItem)
With $oOMail
.To = ("to@domain.com")
.Subject = "email subject"
.BodyFormat = $olFormatRichText
;.Importance = $olImportanceHigh
;.Attachments.Add ("C:\test.txt")
.Body = "email message"
.Display
;.Send
EndWith
EndFunc
oder
[autoit]$address = "to@domain.com"
$subject = "Testbetreff"
$Body = "Aktueller Mailtext" & @CRLF & _
"Testzeile 2" & @CRLF & _
"Testzeile 3"
_INetMail($address, $subject, $Body)
Gibt es irgendeinen Befehl um eine Formatierung mit übergeben zu können? Ich habe auch über Google leider nichts passendes finden können