Remove Mandrill footer - mandrill

I'm sending emails using the Mandrill API, Is there any way to remove their footer or edit it enter image description here
as I wanted to use my unsubscribe url instead

You can turn it off by their settings ! as the following image :

Related

iOS - Broken iMessage Link Sharing

I am trying to share an URL via iMessage.The problem is when I sent it the URL breaks up into domains & remaining URL and some URL works properly
Link 1
https://www.americanexpress.com/india/mumbai/dmVyc2lvbj0xO3RpdGxlPUludmFsaWRlbnN0cmElQzMlOUZlKzExNDtsYXQ9NTIuNTMwNzQ7bG9uPTEzLjM4NDI2O3N0cmVldD1JbnZhbGlkZW5zdHJhJUMzJTlGZTtob3VzZT0xMTQ7Y2l0eT1CZXJsaW47cG9zdGFsQ29kZT0xMDExNTtjb3VudHJ5PURFVTtkaXN0cmljdD1NaXR0ZTtzdGF0ZUNvZGU9QmVybGluO2NvdW50eT1CZXJsaW47Y2F0ZWdvcnlJZD1idWlsZGluZztzb3VyY2VTeXN0ZW09aW50ZXJuYWw
Link 2
https://www.google.com/india/mumbai/search?q=stackoverflow
Screenshot
As you can see Link 1 breaks into 2, while link 2 is sent properly
Is the link preview broken or am I doing something wrong?
I was not able to find the reason or fix the issue but found a workaround to send links. Send the links in the following manner
<SOME_PREFIX>
In this way, the Link Preview doesn't work and the link can be shared without breaking the text
Eg:
Check this Amex Card:\n
https://www.americanexpress.com/india/mumbai/dmVyc2lvbj0xO3RpdGxlPUludmFsaWRlbnN0cmElQzMlOUZlKzExNDtsYXQ9NTIuNTMwNzQ7bG9uPTEzLjM4NDI2O3N0cmVldD1JbnZhbGlkZW5zdHJhJUMzJTlGZTtob3VzZT0xMTQ7Y2l0eT1CZXJsaW47cG9zdGFsQ29kZT0xMDExNTtjb3VudHJ5PURFVTtkaXN0cmljdD1NaXR0ZTtzdGF0ZUNvZGU9QmVybGluO2NvdW50eT1CZXJsaW47Y2F0ZWdvcnlJZD1idWlsZGluZztzb3VyY2VTeXN0ZW09aW50ZXJuYWw

Launch App from eMail with URL-Sheme

Hello I have a custom URL to open an app with a link. It works in the browser. But I want to send an email that another user can click the link in the email and the app will be started. Does anybody know a solution?
It is not possible to send an email with the link (myApp://). It always shows the the link as blank text.
Or does anyone know another solution to transfer data between an app to a other users app?
I think you need to write the link in href html tag
i.e. open my app
another solution is to try to add any text after the double slash i.e. myApp://open

Poosh Woosh - How to make URLs in push note open in app

I am building a news website where one of the views is a webview of articles.
I had installed push woosh but when i send out notifications with URLs in them tapping the URL opens the web page in the native browser, is there any way i can set it so that the pages open in the webview in the app?
You can use Rich HTML Pages,
Such pages can contain rich-formatted text, links and images.
From GUI - yes, rich pages.
Also there is "remote_page" parameter in API. It's similar to "url" parameter, but it will be opened in webview.
For example:
{"request":{
"auth":"TOKEN",
"application":"APP-CODE",
"notifications":[{
"send_date":"now",
"content":"test",
"remote_page":"http://google.com"
}]
}}
This url will be delivered as "r" parameter on your device. Be careful: max ios payload size is 255 bytes. And Pushwoosh will not short this url automatically. Do it by yourself if needed.

How to send background email after button press?

I'm building an internal app. I want to be able to press a button, and have the app automatically send a predefined email message to a specified email address, without the user knowing. I have access to a web-server, but I'm just not quite sure on what the best way to go about doing this is.
I'm using storyboard in xcode, this is a singleview application for the ipad.
Any suggestions are greatly appreciated.
You can create a PHP script that can do this (code below). Use a library such as ASIHTTPRequest to post the user's email address to the script and then the script will automatically send the message.
<?php
$to = $_POST["email"]; //this is the user's address; you can replace $_POST["email"] with "user#example.com" to try it out
$subject = "Subject";
$body = "Message";
$headers = "From: Name <noreply#example.com>\r\n" . "X-Mailer: php";
if (mail($to, $subject, $body, $headers)) {
//sent
}
?>
If you want to use the user's mail account that they have set up in the mail.app - you can't do that without the MFMailComposeViewController.
Solutions are:
Use some Framework or roll your own mail solution that you or the user fills with their respective mail acc data and then send mails.
or
Write a little PHP/Ruby/Java/... script that sends a mail which you can trigger via web request (i.e. REST).
SKPSMTPMessage works well for sending emails without the need for a UI.
(Make sure you add a reference to the CFNetwork.framework in your project.)

SendGrid - Custom Event Notification App in header

I am trying to use SendGrid's Event Notification App (http://sendgrid.com/documentation/display/apps/EventNotification) for emails of certain categories. The Event Notification on my SendGrid account is empty. The header I'm putting on my email is:
X-SMTPAPI: {"category":"category","filters":{"eventnotification":{"settings":{"url":"theurl"}}}}
But I'm not getting a callback on my url. A simple curl post on this given url gives me the expected output, so I'm pretty sure that should be working with SendGrid too.
Do you have any ideas on what the header should look like? I couldn't find too much documentation on the website for this specific app...
Thanks!
Here is an example of the header that I am successfully sending with my Sendgrid emails:
headers("X-SMTPAPI" => "{\"unique_args\": {\"customer_id\":\"#{customer.id}\",\"email_batch_id\":\"#{batch_id}\"}, \"category\":\"monthly_statement\"}")
Make sure you have the correct events checked under the event notification settings in Sendgrid.

Resources