Mandrill Forward a friend and Unsubscribe - mailchimp

Full Request in sending mail.
{
"message": {
"subject": "Test message",
"from_email": "",
"html": "this is a test message with Mandrill's PHP wrapper!.Unsubscribe | Forward A friend",
"to": [
{
"email": "*",
"name": "Recipient 1"
}
]
},
"async": false,
"ip_pool": "",
"send_at": "",
"key": "*" // API KEY
}
Full Response
[
{
"email": "*",
"status": "sent",
"_id": "********",
"reject_reason": null
}
]
Getting the mail but Unsubscribe and Forward A friend not work in mail.
I am using the mandrill API.
Please guided me.

Those merge tags are specific to MailChimp and won't work by default in Mandrill. More info can be found in the Mandrill KB: Can I use MailChimp merge tags in Mandrill emails?

Related

I am using rocket chat websocket. In those messages when we get the message of "user added" or "removed" I want the user's full name

wss://[ABC.DOMAIN.COM]/websocket
I am using websocket of rocket chat.
This is one of the message from the list of messages response the websocket provides.
{
"_id": "some id",
"t": "au",
"rid": "some id",
"ts": {
"$date": 1663823165892
},
"msg": "7d4e5ab4-34ca-11ed-b29a-7cc2c61d171e",
"u": {
"_id": "some id",
"username": "svc_site_prod",
"name": "svc_site_prod"
},
"groupable": false,
"_updatedAt": {
"$date": 1663823165902
}
}
It uses t = "au" for added user and "ru" for removed user.
The real user added is present in "msg".
But it only shows the username of user who is added or removed.
I want the full name of this user.
I know I can just make another request to find the user's info by api. But what I want is to get the details in this response.
Edit: the headers of request
{
"msg": "method",
"method": "loadHistory",
"id": "1",
"params": [
"AyzhtTJiE6YG3cnfA",
null,
50,
null
]
}

Microsoft Graph API - How to find out which user sent an email on behalf of a shared mailbox address with Send As permission?

I have a shared mailbox. The shared mailbox has an address SHAREDBOX1#mycompany.com. A handful of users have access to send emails on behalf of that mailbox. Via the Microsoft Graph API, is it possible to see which user sent an individual email via the sharedbox1 address?
With this use case in mind, it makes sense this would only be something we would check on outgoing messages.
Looking at the docs https://learn.microsoft.com/en-us/graph/api/resources/message?view=graph-rest-1.0 , the message properties specifically, is there any way to find which user sent an email on behalf of a shared mailbox?
For example, this is a (fake, all ids have been faked and sanitized) example email sent from a shared mailbox by a user on behalf of the shared mailbox represented in the the MS Graph API to 3 other users
{
"#odata.etag": "W/\"CQSJDKJGKJGROwCC\"",
"id": "AASDGSDGSDFMP4-RK_VSDFA1-bSDFSDFjB-JHUffy=",
"createdDateTime": "2022-07-06T16:50:55Z",
"lastModifiedDateTime": "2022-07-06T16:51:03Z",
"changeKey": "CSDFSDFSDGSFDSDFSFCC",
"categories": [],
"receivedDateTime": "2022-07-06T16:50:00Z",
"sentDateTime": "2022-07-06T16:50:45Z",
"hasAttachments": false,
"internetMessageId": "<PDSVSSVSVFGNFGHJ.something.prod.outlook.com>",
"subject": "RE: Work Stuff",
"importance": "normal",
"parentFolderId": "SDFFGAGSDFHSDFHDFNIUERGHSJHDNVUIAGNOIGAIU",
"conversationId": "JHFBVJHSBVJBVJHZVJ=",
"conversationIndex": "ETHYTJTJDGNRYJD",
"isDeliveryReceiptRequested": false,
"isReadReceiptRequested": false,
"isRead": true,
"isDraft": false,
"webLink": "https://outlook.office365.com/owa/?ItemID=SFBHWIUEwfADtegVAJBVSHFBVYUS&exvsurl=1&viewmodel=ReadMessageItem",
"inferenceClassification": "focused",
"sender": {
"emailAddress": {
"name": "SHAREDBOX1",
"address": "SHAREDBOX1#mycompany.com"
}
},
"from": {
"emailAddress": {
"name": "SHAREDBOX1",
"address": "SHAREDBOX1#mycompany.com"
}
},
"toRecipients": [
{
"emailAddress": {
"name": "Thad",
"address": "thad#mycompany.com"
}
}
],
"ccRecipients": [
{
"emailAddress": {
"name": "Chad",
"address": "chad#mycustomer.com"
}
},
{
"emailAddress": {
"name": "Vlad",
"address": "vlad#mycustomer.com"
}
}
],
"bccRecipients": [],
"replyTo": [],
"flag": {
"flagStatus": "notFlagged"
}
}
The email is from SHAREDBOX1#mycompany.com, being sent to Chad, Vlad, and Thad.
Let's say the user who actually sent the email on behalf of SHAREDBOX1#mycompany.com is brad#mycompany.com
I was hoping that the "sender" field would have contained brad#mycompany.com, as according to these docs https://learn.microsoft.com/en-us/graph/outlook-send-mail-from-other-user#send-on-behalf but that appears to not be the case. Both "sender" and "from" are always populated as SHAREDBOX1#mycompany.com (so that would indicate that the permission on the shared box for the users is "Send As" instead of "Send on Behalf")https://learn.microsoft.com/en-us/graph/outlook-send-mail-from-other-user#send-as
Assuming the permission is "Send As", is there somewhere else in the API where that information can be looked up?
Thank you!

No ChannelData except message text while receiving incoming message from Skype in Bot Framework

When I'm receiving the message from Telegram, I get detailed information about account in Activity.ChannelData field (such as username, conversation_id and so on).
{
"update_id": ,
"callback_query": {
"id": "",
"from": {
"id": ,
"is_bot": false,
"first_name": "",
"last_name": "",
"username": "",
"language_code": ""
},
"message": {
"message_id": ,
"from": {
"id": ,
"is_bot": true,
"first_name": "",
"username": ""
},
"chat": {
"id": ,
"first_name": "",
"last_name": "",
"username": "",
"type": "private"
},
"date": ,
"text": "Example text"
},
"chat_instance": "",
"data": ""
}
}
But when it comes to Skype, all I see is the message text and nothing else.
{ "text": "Example text"}
How to know out, who exatly sent me the message?
Upd: That should not be exactly the user's name, any additional data like user unique id would fit.
Unfortunately, what is returned is channel specific, as determined by the channel developers. It is not a function of the Azure Bot Service or Bot Framework that determines this.
As for knowing who sent a message, this is not possible. Skype only returns a unique id per user in order to provide a layer of confidentiality with respect to privacy concerns.

Mandrill emails stuck in queued

I managed to figure out how to send emails via Mandrill and Parse Cloud Code with Back4App. When checking the API logs for Mandrill I see the following:
Full Request
{
"message": {
"text": "asdf Email Test",
"subject": "adsf Email Test",
"from_email": "no-reply#asdf.ca",
"from_name": "Site",
"to": [
{
"email": "myemail#gmail.com",
"name": "Martin",
"type": "to"
}
],
"headers": {
"Reply-To": "no-reply#adsf.ca"
}
},
"async": false,
"ip_pool": "Main Pool",
"send_at": "2018-03-13T17:14:41.645Z",
"key": "oc7ueJMLRGgaEDrjhk5DBg"
}
Full Response
[
{
"email": "myemail#gmail.com",
"status": "queued",
"_id": "7c28e80e4de1405f93d1d096600128d4",
"reject_reason": null
}
]
It seems as if the code is executing properly but the response body indicates that the email is queued. I decided to wait 24 hours and nothing has changed. I sent some more test emails and I get the same result. Basically, the emails are not sending. What is going on?
apparently for Mandrill work with Back4App you need to setup a own domain, and it looks like you're using a Gmail email address. Therefore, it is recommended to use SendGrid in this case :)

MobileFirst create wrong SMS request

IBM MobileFirst Platform Foundation 8.0.0.
After configuring SMS settings I am trying to send a message but the request is created in the wrong way. See the result below.
//REST API : send notification request
{
"message": {
"alert": "Hello World from an SMS message"
},
"notificationType":3,
"target" : {
"deviceIds" : ["9a149c24-8859-3383-6067-d161e46d2554"]
}
}
The created request:
473607:[2017-01-02 16:44:02.494] - [440093822] Request received: HTTP GET /send.aspx?
encode=false&name=toParamName&value=Recipients&encode=false&name=textParamName&value=MessageText&encode=false&name=MessageType&value=text&encode=false&name=SenderName&value=PLIX&encode=false&name=UserName&value=MahmoudSamy&encode=true&name=Password&value=xyz&to=20100051111&text=Hello+World+from+an+SMS+message+2
//SMS settings
{
"port": "80",
"programName": "/sendsms",
"host": "xyz.com",
"name": "SMSGateway",
"parameters": [
{
"encode": "false",
"name": "toParamName",
"value": "to"
},
{
"encode": "false",
"name": "textParamName",
"value": "text"
},
{
"encode": "false",
"name": "SenderName",
"value": "Support"
},
{
"encode": "false",
"name": "UserName",
"value": "xyz"
},
{
"encode": "false",
"name": "Password",
"value": "xyz"
}
]
}
We tried to send SMS with SMS settings shared by you.
We are able to get correct value pair in the created request.
Below is the created request
GET /gateway/add.php?encode=false&name=toParamName&value=to&encode=false&name=textParamName&value=text&encode=false&name=SenderName&value=Support&encode=false&name=UserName&value=xyz&encode=false&name=Password&value=xyz&to=99&text=Hello+World+from+an+SMS+message HTTP/1.1
Also in created request shared by you, I am noticing different username value than given in sms settings.
Could you please tell us how you are checking the request. We are using wireshark to capture.
the below configuration works with me but it force me to accept to and text parameters.
{
"port": "80",
"programName": "/sendsms",
"host": "xyz.com",
"name": "SMSGateway",
"parameters": [{
"SenderName": "Support",
"MessageType": "text",
"UserName": "xyz",
"Password": "xyz"
}]
}
HTTP GET /send.aspx?SenderName=Support&MessageType=text&UserName=xyz&Password=xyz&to=083127312763&to=hello+world

Resources