C Christos Dorotheou Member Licensed User Longtime User Nov 3, 2016 #1 Hi everybody I am trying to send an email from within my Application, using the default email client application (MS Outlook) on a pc with the fx.ShowExternalDocument subroutine. It works perfectly good as far as mailto:, subject and text in the body is concerned but I need to insert in the email's body, an image of a canvas snapshot from within my code. I will greatly appreciate any suggestions as to how I can implement this request. Code: Copy Sub ShowMailClient(Address As String, Subject As String, BodyText As String) fx.ShowExternalDocument($"mailto:${Address}&subject=${Subject}&body=${BodyText}"$) End Sub
Hi everybody I am trying to send an email from within my Application, using the default email client application (MS Outlook) on a pc with the fx.ShowExternalDocument subroutine. It works perfectly good as far as mailto:, subject and text in the body is concerned but I need to insert in the email's body, an image of a canvas snapshot from within my code. I will greatly appreciate any suggestions as to how I can implement this request. Code: Copy Sub ShowMailClient(Address As String, Subject As String, BodyText As String) fx.ShowExternalDocument($"mailto:${Address}&subject=${Subject}&body=${BodyText}"$) End Sub
eurojam Well-Known Member Licensed User Longtime User Nov 3, 2016 #2 I would try to put HTML Text into the body and embed the image as base64 encoded string. Encoding can be done with StringUtils... best Stefan Upvote 0
I would try to put HTML Text into the body and embed the image as base64 encoded string. Encoding can be done with StringUtils... best Stefan
Erel B4X founder Staff member Licensed User Longtime User Nov 3, 2016 #3 It will not work. mailto creates plain text messages. Upvote 0
C Christos Dorotheou Member Licensed User Longtime User Nov 3, 2016 #4 OK. Thank you all for your replies Regards Chris Upvote 0