Hi Sean

The MIME lib is all my fault so don’t blame Ali ;-)

It may help you to read RFCs 2045-2049 to gain an understanding of MIME. With 
the exception of mimeEncodeFieldAsMIMEMultipartDocument you really need to 
understand MIME to use the library.

You probably want the mimeEncodeAsMIMEEmail command though.

For the body presuming plain text email then you want something like:

put "Content-Type: text/plain; charset=UTF-8" & crlf & \
         "Content-Transfer-Encoding: quoted-printable" & crlf & crlf & \
          mimeEncodeForMIMETransfer(tText, "quoted-printable”) into tBody

If you want html email then if you don’t know what you need as parameters for 
mimeEncodeAsMIMEMultipartDocument then best to see the code of 
mimeEncodeFieldAsMIMEMultipartDocument as an example which builds that from 
field content.

Regarding BCC that’s nothing to do with the library. See tsNet recipients list 
for that.

Cheers

Monte

> On 29 Dec 2020, at 3:18 am, Sean Cole (Pi) via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi all,
> 
> The dictionary, as usual, is a bit lacking in regards to the Mime Library.
> For MimeEncodeAsMIMEMultipartDocument we have parameters but no idea what
> the values (enum) for them could or should be.
> 
> pContentA: How do we pre-encode parts including headers?
> 
> pMultipartType: What MultiPart types are there?
> 
> pParamA: What kind of parameters does ParamA take?
> 
> There is a lesson that has a single use-case instance but it does not cover
> all attachment or part types so we are still left guessing. Perhaps this is
> where either Monte or Ali who coded this could help us out. (
> https://github.com/livecode/livecode/blob/38790fc428ff5fc3dc769b3a9cde5733bcf209a2/extensions/script-libraries/mime/mime.livecodescript
> )
> 
> I'm trying to attach a pdf to an email and have bcc addresses too.
> 
> Thanks
> 
> Sean Cole
> *Pi Digital *
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to