Remove Mandrill unsubscribe link - mandrill

Is there any way in Mandrill to remove their unsubscribe link : *unsubscribe from this list* & use just mine : *|UNSUB:http://mywebsite.com/unsub|* ?

In the mandrillapp > settings > sending defaults you can disable the setting of mandrill to add an unsubscribe footer.
Then add your own link in the html or text of the mail message.

Related

How to send custom url from jenkins to email?

I need to send my report url in content to mail from jenkins after build in editable email notification. Can any one please help on this?
Please configure the editable email notification build steps as below :
Project Recipient List: someone#example.com,anyone#example.com
(NOTE: This is a comma-separated list of email addresses that should receive emails)
Project Reply-To List: replyto#example.com,plsreplyto#example.com (NOTE: This is a comma-separated list of email addresses that should receive emails)
Content Type: HTML (text/html)
Default Subject: This is subject of email
Default Content: (NOTE: here you can write HTML Code to add links and other elements) below is the example
<b>Build Status: </b>$BUILD_STATUS <br><br>
<b>Console Output of Build #$BUILD_NUMBER : </b> <br>
<span style="display:block; padding: 3px 10px; border-radius: 5px;white-space: pre">
$BUILD_LOG
</span>
<br>
<b>Build URL : </b>$BUILD_URL<br>
<b>Report URL :</b> https://myreport_url.com
Now, click on Advance Settings
In "Triggers"
Triggers: click "Add Trigger", select the condition when you want to trigger the email based on build status. for example, if you want to trigger an email for all the builds then select "Always"
Now, remove the "Developers" from "Sent To" (In the same trigger configuration as shown below)
In the same configuration, ensure below configuration
Recipient List should be empty
Reply-To List : $PROJECT_DEFAULT_REPLYTO
Content Type : Select Project Content Type
Subject : $PROJECT_DEFAULT_SUBJECT
Content : $PROJECT_DEFAULT_CONTENT
You can always click (?) next to each field to understand its role and what values it expects.

How to add more than 1000 email address using mail_to

Currently i have the below code in index view
<div id = "GetEmails"><%= mail_to "xyz#gmail.com" do %><strong>Send Mail</strong><% end %></div>
In runtime, I am updating the value of mailto: which consists of more than 1000
+email address
Now, when I click on "Send Mail", outlook is not getting opened by copying all the email address in To: field
But, if the number of email address are < 100, the on click of "Send Mail" I am able to copy all the email address in To: filed
Manually, I am able to copy more than 3000 email address.
How do I get copy all the email address in To line by clicking "Send Mail".
The mailto:(as any other URL) has a character limit for the URL, it's vary from browser to browser, or from E-Mail client to E-Mail client.
Please try to use JS.
You could have a HTML element with data attribute where all emails would be stored and then try this:
<div id="my-mails-storing-element-id" data-mails="person1#domain.com, person2#domain.com,person3#domain.com"></div>
var mailsDom = document.getElementById("my-mails-storing-element-id")
location.href = mailto:mailsDom.dataset.mails;
But it would be better if you create separate action in your controller to get those emails. Then you just need to make AJAX call to get mails data.
I hope it'd help you. Please let me now if it worked (I've tried with Mailspring mail client and it worked)

OpenEdX's Email tab missing from Instructor Dashboard?

In the Instructor Dashboard of our OpenEdX, the Mail tab is missing. This allows bulk mailing to OpenEdx participants.
How to enable the Instructor Dashboard > Mail functionality ?
Edit: I though is would be a parameter in /lms/envs/common.py but it doesn't seems to be there. I noticed the test ./lms/djangoapps/bulk_email/tests/test_email.py#L198 with :
#patch.dict(settings.FEATURES, {'ENABLE_INSTRUCTOR_EMAIL': True, 'REQUIRE_COURSE_EMAIL_AUTH': False})
But I didnt find any meaningful instances of it elsewhere.
The way you [configure bulk email has changed] in 2016. As of 2018, see 6.2. Changing the Bulk Email Setting : http://edx.readthedocs.io/projects/open-edx-release-notes/en/latest/bulk_email.html
On http://{your_URL}/admin > Bulk email flags > Add > Set it such :
And then :

Slack mentions not working

I'm using the slack-notifier gem to send notifications to my slack channel.
notifier = Slack::Notifier.new "https://hooks.slack.com/services/ABC1234567890"
notifier.ping "Text <#user1>"
That is the general setup in rails.
When I send to #user1 (my coworker), everything is OK.
But if I send it to #user2 (myself), text is displayed without mention creating notification or being a clickable link.
Also, if i send it to a usergroup, #my_team text is same above.
I have also tried !my_team and <#user1|user1> . The output to the slack channel looks like <my_team> or #user1. So it appears it is not parsing correctly.
Why could this be happening?
(Moving my comment to an answer.)
I'd suggest this:
notifier.ping "Text #user1", parse: "full"
The "full" parse mode means you'll get automatic linking of #username, #channelname, etc., just like you get when typing into the Slack website/clients.

How to send a link via MFMailComposer?

My actual problem is to send a link with a YouTube-Adress per email with Swift.
I use MFMailComposer and sure, it´s no problem to attach a file. But a link?
Is there any way to attach a link only, so the receiver can click the link that calls the YouTube-Page???
Just use HTML for that purpose:
// Add your body in a HTML format
let body = "<p>This is a test. Check out the link to youtube</p> YouTube"
// In your mail instance in setMessageBody, add your body and set isHTML to true
mail.setMessageBody(body, isHTML: true)
Update
If you don´t need a placeholder you could just add http://... URL in the email text as #rmaddy commented.

Resources