Sending Emails Using Github Actions - devops

I have created a pipeline and there is a requirement to send an automated email regarding the outcome of the process to specific user. Is there a verified action to send emails using github action. I have seen couple of actions already in the marketplace but unfortunately those are not verified.

At the moment of answering unfortunately there isn't any verified GitHub Action regarding email sending.
I can recommend you the Send email action with which I had no bad experience.

Related

Email survey monkey survey automatically

Is it possible to automatically send a survey to everyone who registers at my website as soon as they are finished with the registration process? As I understand send_flow only sets up a flow and the user still has to send the email through the surverymonkey interface.
If you need to use the features of send_flow to distribute your invitation via SurveyMonkey's mailer, you can send the email immediately by setting "send" to true in your request to send_flow. The email will send in about 5 minutes as will all email sent from SurveyMonkey.
Using send_flow will create one collector for each request which could get unwieldy in SurveyMonkey's UI, but it will work.
Maybe you want to check out Examinare instead? You can with less than 10 code rows do this by combining the following functions:
Create the recipient:
https://developer.examinare.com/apidocs/addrecipient/
Send the email with the created ID:
https://developer.examinare.com/apidocs/sendsurvey/
I bet if you contact Examinare support email you will get help from them.

How do I associate notification mail reply to user's inbox?

I have an Rails web-application where a user can send message to any other registered user. Once a user sends a message to another user, another user gets a notification on application and also by email in his/her personal email inbox (Like basecamp).
I want to implement this functionality where if a user reply to a message from his/her personal email inbox(say gmail/yahoo), the message becomes available in the application and receiver gets a notification as usual.
As I could understand, we’ll need to associate a unique id and set it as reply-to field in notification mail. Any help in the right way to approach this problem will be very much appreciated.
Thank you
We are already using sendgrid. And sendgrid provides web-hook for emails. Which is quite easy to integrate with a rails application. It also uses mails gem. I'll keep posted if I find anything new on this.
I'm still working on finding out how to associate unique id in reply-to field in email. Any help on this will be much appreciated.
Thanks,
Chandan

Is there any way to send the email without opening the MFMailComposeViewController?

I need to send the email without opening the MFMailCompseViewController. I have searched about this and got some point like use the web service and another one is connect with gmail server through ask the emailID and password from the user.
My email format is fixed i just have to send the email to user whose id will be given by the user without showing any thing else.
Your existing research is accurate - you can connect to some web service to send the e-mail automatically, but you can't automatically create, configure and send using MFMailComposeViewController. The user always gets to see the presented controller and choose whether to do any editing and whether to send or not.
There is no way of sending an email directly from iDevice without showing the MFMailComposeViewController.
If it was possible it would be a great tool for mobile distributed spam bots.
Things to consider: MFMailCompseViewController is an interface for the user to compose an email.
If you want to use it, you have to hand over control to it. Apple does not expose the underlying functionality to you: it has to go through this view controller.
If you don't want the user to be aware that you are sending emails on their behalf (I assume it is on their behalf or you wouldn't need the composer view) you are probable doing things a little wrong; why would you want to send an unsolicited email?
If you want to report information from the device, implement a web service and send it to that. Email is meant for correspondence; don't hijack an account.
If you still need an email, have the web service create it

Rails sending emails through an outside email service

Alright so I've got an app in which users can send 'invitations' to other users to download files. What I'd like to do is set it up so that rather than using ActionMailer I can ask users for their username/pass to their Exchange email account and then send the invitations through their account. Ideally I'd like it so that after sending an invitation through their site it will also pop up under sent emails in their account. I'm a bit unsure about how to go about this besides a rough idea of a few ajax calls and wanted to see if anybody had any experience in something similar/good ideas about how to structure this.
Thanks ahead of time!
You would still need to use ActionMailer to send the email. However, you would be routing the email to be sent from ActionMailer through the user's SMTP server.
msg = MyMailer.some_message
msg.delivery_method.settings.merge!(#user.mail_settings)
msg.deliver
Where in the above mail_settings returns some hash with appropriate keys IE
{:user_name=>username, :password=>password}
There is more information regarding this on this post. How to send emails with multiple, dynamic smtp using Actionmailer/Ruby on Rails

Email Verification plugin for rails?

I'd like to verify a user's email address by sending them a verify-email-message. Do you know of a good Rails plugin that they've used or seen?
Since I didn't see anything good via Google, at this point, my thought is:
Add a verified boolean field to the user model. Default false.
After user is added (unverified), combine email with a salt (a secret), and create the sha1 hash of the email/salt combo. The result is the verification.
Send a welcoming / verification email to the user. Email includes a url that has the email address and verification as GET args to a verify action on my server.
The verify action recomputes the verification using the supplied email and checks that the new verification matches the one in the url. If it does, then the User rec for the email is marked 'verified'
Also will provide action to re-send the verification email.
Any comments on the above?
Thanks,
Larry
Devise
https://github.com/plataformatec/devise
Confirmable: sends emails with confirmation instructions and verifies whether an account is already confirmed during sign in.
Recoverable: resets the user password and sends reset instructions.
Authlogic
https://github.com/binarylogic/authlogic
Also take a look at this Stackoverflow thread
Email confirmation in Rails without using any existing authentication gems/plugins
Hope this helped!
Devise is an amazing gem that can do this with very little effort.
Dont know of a plugin, but the Action Mailer guide covers some of what you want to do: http://guides.rubyonrails.org/action_mailer_basics.html
It shouldnt be too hard to build on the Guide example for your exact use case.

Resources