Hello all,
Newbie question: This is my first post here. I used the search option extensively, but without success.
I'm wrinting an application which should forward a result and open a new Outlook E-mail.
Now I'm running into a bit of a problem.
The result which I would like to send is a file path like file:\\server\share\subfolder. When I'm creating this e-mail with the _INetMail UDF, the mail gets created with the IE mailto option,
which is using the Outlook default mail format. (i.e. HTML). But when the e-mail opens in the HTML format the link gets broken by any special caracter like Ä,Ö,Ü.
That doesn't occur when it gets created in RichText format. So I have to find a way to create an E-Mail with the RichText format.
This is the mail part of my script I have so far.
Func Button7Click()
Opt('RunErrorsFatal', 0)
$address = ""
$subject = "Created with Pathfinder"
;$Body = GuiCtrlRead($Input2)
$body= @CRLF & @CRLF & _
"Created with Pathfinder" & @CRLF & _
@CRLF & _
GuiCtrlRead($Input2);& @CRLF & _
_INetMail($address, $subject, $Body)
EndFunc
My questions:
1) Is there any way to send an E-mail with the _INetMail UDF with some unknown switch in RichText format?
I also don't want to use _INetSmtpMail because my task is just to open an E-mail and to put a body information into it.
2) Can I solve it by sending it directly through Outlook?
Therefore I found this snippet of Visual Basic Code and honestly speaking I'm not able to transfer it into AutoIt code.
May I ask you guys for help, please?
Private Sub CreateMailItem()
Dim mailItem As Outlook.MailItem = _
Me.CreateItem(Outlook.OlItemType.olMailItem)
mailItem.Subject = "This is the subject"
mailItem.To = "someone@example.com"
mailItem.Body = "This is the message."
mailItem.Form = Outlook.OlFormat.olFormatRichText
mailItem.Importance = Outlook.OlImportance.olImportanceLow
mailItem.Display(False)
End Sub
Thank you for your most appreciated help
/Chris