Sending Alertmanager alerts to my email address with Jenkins mailer webhook - jenkins-plugins

I have my Alertmanager up and running and I can see all active alerts on alertmanager dashboard.
Now I want an email notification for alerts based on created rules.
I tried getting internal smtp details but seems like its a very hectic task in organizational env.
For other small tasks, we use Jenkins webhook to send an email notification to our org email address and it works.
I assume there is something I can do to integrate alertmanager with Jenkins and send alerts to my email address, but not completely sure how to do that.
I was wondering If someone can redirect me to a relevant post or a brief HowTo to achieve this model.
thanks in advance.

Related

how to send "order is confirmed emails to customer" in django

I am trying to make an e-commerce website in Django and react. but I am not able to find a way for this scenario.
whenever a user purchases something a confirmation email should go to the user and one to the admin that a user buy something.
can we do this just by code or we have to use something like Mailchimp?i want to do it by writing code.
You don't need a service like Mailchimp for this. You need to write your own code for sending emails.
To send emails in Django you need to configure a mail server. You can use your own mail server or use providers like AWS SES (Simple Email Service) or SendGrid.
Then you need to write the code that will send two emails after the purchase. Ideally, it should be done in the webhook that will wait for payment confirmation from your payment provider (for example Stripe).
BTW, I'm working on Django+React tutorials at SaaSitive and just committed example code how to send activation emails (after registration) https://github.com/saasitive/django-react-boilerplate

Validate user registration with firebase

I am new to Firebase. I have a custom subscription page with email and password.
In the webApp I am working on, I would like to send an activation email every time someone subscribes. However, I would like this email to be sent to an administrator instead of being sent to the user itself.
I do not want the users to activate their accounts, but an administrator, who does not know anything about programming.
Is there an easy way with firebase to do such a thing?
Thank you!
PS: I am using firebase with ReactJS, if this helps :-)
Firebase has an example of sending emails through Gmail. Please see the link. You can store and read the administrator email address in the firebase db. In the email to the administrator, you direct the admin to click the link to your webapp to activate the user.
https://github.com/firebase/functions-samples/blob/master/quickstarts/email-users/functions/index.js

Send Google Cloud Error Reporting emails to a Group email list

I am using the Error Reporting functionality inside Google Cloud.
Is there a way to send email notifications to an arbitrary email address ?
Or at least, to a Google Group email list ?
Currently, email notifications only get sent to the account address. As a workaround you can implement mail forwarding rules that will forward to the correct desired address based on the email subject and contents.
Thanks for using Stackdriver Error Reporting!

Check email id real or fake in AngularJS project

I have a web project in AngularJS and using NOdeJS and ExpressJS on Backend.
I have a contact form in my application when I click on submit form data is sent as an email. This I have achieved using npm package called nodemailer.
But, now I wanted to check if that email id exists in real world (fake or real) before sending an email. So what is the best way to achieve this?
Can any one help me with this?
Thank you
There are some open source api like http://api.mailtest.in/v1/XXX
Where XXX is the domain from email. Which means if XXX exists as domain you can assume that mailbox might exist. Try using curl / parser to fetch the response via api call if its true means domain exists and email might exist as well.
Theoratically its possible by actually sending email and verifying the response itself. Check this https://github.com/hbattat/verifyEmail
But still there are certain conditions, many times the responses are not being sent by Mail Exchange servers for security reasons. Also your email can be blacklisted by doing this.
The real world scenario might be simple with user interaction, send email and ask them to verify their mail using the secret shared in email.

Open Gmail Client With File Already Attached

I see you can send emails with uploaded attachments using the Google Gmail API. However, I want the user to be able to preview the email before sending. It looks like there isn't a way to do this?
So essentially would the only solution be to create my own simple email client, then send the email through the API? Or would using the API even be necessary as in that case I could just use the server's native sendmail client to sent out the email with the user's gmail address as the return address.
I guess using the API, the advantage is the email would appear in the user's SENT folder.
Unfortunately, I don't think there's a live preview that's available in a way you intended. As far as I know, Outlook (for reference) doesn't even have it. What they have is to upload the attachments while the mail is still being drafted.
The best I can think of is once the message will be sent, save it as draft at first and retrieve the mail again on the succeeding page. This will look like a preview that you intended. Once done, you can then finally send the drafted email to the receipients.

Resources