Exclude the mailto: in each email address. 

Bob S


> On Feb 24, 2017, at 07:54 , Matthias Rebbe via use-livecode 
> <[email protected]> wrote:
> 
> Hi,
> did someone already tested the new mime library, especially the command 
> mimeEncodeAsMIMEEmail.
> 
> I tried it already and i am having problems to use the command with an 
> attachment. My problem is, the attachment is not encoded and not added to the 
> encoded message in the IT variable.
> 
> This is my sample code i am using for it
> 
> on mouseUp
>   answer File "file" 
>   if it is empty then exit to top
>   put it into tFile
>   put URL ("Binfile:"&tFile) into tData
>   set the itemdelimiter to slash
>   put item -1 of tFile into tFileName
>   put tFile into tAttachment["filepath"]
>   put "tFileName" into tAttachment["name"]
>   put tData into tAttachment["data"]
> 
>   put "[email protected] <mailto:[email protected]>" into tTo
>   put "[email protected] <mailto:[email protected]>" into tCc
>   put "[email protected] <mailto:[email protected]>" into tFrom
>   put "this is the subject" into tSubject
>   put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field 1) into 
> tBody
> 
> 
>   mimeEncodeAsMIMEEmail tBody, tFrom, tTo, tCC, tSubject, tAttachment
> 
>   put it
>   answer the result
> end mouseUp
> 
> Shouldn´t that work? Or is there an error in it? The Result does not show any 
> error.
> 
> 
> Regards,
> 
> Matthias
> Matthias Rebbe
> Bramkampsieke 13
> 32312 Lübbecke
> Tel   +49 5741 310000
>       +49 160 5504462
> Fax: +49 5741 310002
> eMail: [email protected] <mailto:[email protected]>
> 
> BR5 Konverter - BR5 -> MP3 <http://matthiasrebbe.eu/portfolio/produkte/brx/>
> 
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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

Reply via email to