Page 2 of 2

Re: Create one PDF

Posted: Wed Jun 11, 2014 2:44 pm
by fko
Hi,

Thanks for the attached file...:-)

Yes, i knew that JSON was not code for LiveCode...The problem i had is that once i managed to make it work from Mandrill, i didn't know how to make the call from LiveCode...:-(

I was testing with what you sent me and with the options of the API Messages of Mandrill, and i tried to add one "Bcc"...

So, in your query i added this line just before the attachement part:

"bcc_address": "message.bcc_MyMail@gmail.com",

But it didn't work...:-(
Is it not correct this line?

Here is all the code of this query:

{
"key": "[THEKEY]",
"message": {
"text": "MIEUX",
"subject": "HELLO WORLD",
"from_email": "message.from_email@example.com",
"from_name": "Example Name",
"to": [
{
"email": "[ADDRESS]",
"type": "to"
}
],
"bcc_address": "message.bcc_MyMail@gmail.com",
"attachments":
[{"type":"application/pdf",
"name":"[FILENAME]",
"content":"[FILECONTENT]"}],
"headers": {
"Reply-To": "[ADDRESS]"
},
"images": []
},
"async": false,
"ip_pool": "Main Pool"
}

regards,
fko

Re: Create one PDF

Posted: Wed Jul 09, 2014 2:31 am
by scott_morrow
Thanks for demo stack showing how to get started with mandrill!
In the example stack, data is sent to the https mandrill url using "post"
Although I can use the same method from the on-rev server if I use an http url
How would you "post" to mandrill's https url from the on-rev server?

I'm thinking it can be done with "get" but if so, I haven't quite worked out how to correctly append the json data

I assume that libURL is not part of on-rev server (though the docs say it is) as libUrlSetSSLVerification "false" produces a "can't find handler" error

--
Scott Morrow

Re: Create one PDF

Posted: Thu Jul 10, 2014 4:14 pm
by fko
Hi Scott,

I would like to help you, but my knowledge about this concret subject is quite zero...:-(

Even if you saw the code here, it is not belonging to me...I only adapted some few things...

How knows better than me and can help you more is "bangkok "...

regards,
fko