I have searched the forum but i could not find an answer on how to send an email using the SendMsg function, with a base64 encoded attachment. The problem is that Zimbra server is encoding the string I am sending and returning it in base64 format, hence garbling the image.
For example:
Code: Select all
<mp ct="multipart/related">
<mp ct="text/plain">
<content>email body</content>
</mp>
<mp ct='image/png;name="logo.png"'><content>iVBORw0KGgoAAAANSUhEUgAAAAoAAAAUCAYAAAC07qxWAAAABHNCSVQICAgIfAhkiAAAAAZiS0dEAP8A/wD/oL2nkwAAAKRJREFUKJHtkL0NwkAMhZ9NemASWIENGAUJpQGFcMWVkcIIjMAGGSUjQIs4PwoUdCSBIGpeZ/vz84+gR/kmnd/EJk3sfVElMZBt13uIrigYj6BxSZIYEtW8bwKAqE1l+Q4CgKejQGavJZ6CseyAbQVj6X1RdUcPSHZZykFIr9OvHJ07nAdBEhcASGjmHvatH5JHkjVUawCQJt/eNZgtfrr6D37UHRhyNADGMeqzAAAAAElFTkSuQmCC</content>
</mp>
</mp>
Thank you for anyone who can help!