Jenkins Scripted Pipeline - Is this possible to send a mail attachment - email

I opened an old ticket without answers :
How to send attachments through jenkins pipeline using mail
Do you know if it's possible to send an email attachment with mail . I know that it's possible to send it with emailext but it's not installed on our Jenkins and the team doesn't want to install it.
Please let me know if it's atleast possible because if it's not, it's a good reason to pressure the IT team in charge of the Jenkins :)
Thanks in advance

No you cannot send attachments with the built-in mail steps.
Its parameters are quite limited
https://www.jenkins.io/doc/pipeline/steps/workflow-basic-steps/#mail-mail
You would need email-ext for this.
e.g. How to send email with attachment in jenkinsfile (Groovy Script)?

Related

how can i get email notification on salesforce from my customers?

ןs it possible to synchronize between my email and salesforce so that I can send emails to my customers and receive an alert when they reply to the email?
If so I would love to know how to do it :)
Quick&dirty way - configure Email-to-Case and you could be forwarding certain emails (manually? with some automated rule?)
Read up about InboundEmailHandler and you could have it bit smarter, piece of code that could find previous messages, reopen cases, link them to right contact...
Bit more involved would be proper Gmail / Office 365 /... mail sync. It used to be called "Lightning Sync" but looks like they're phasing it out. Try https://help.salesforce.com/articleView?id=sf.einstein_sales_aac.htm&type=5

PowerShell (?) Check office 365 mailbox and forward emails to another system by reset API

I would love to have guidance as to the right way to do it.
I have to forward emails from Office 365 mailbox to another system by reset API.
The format of email is something like that:
Subject: TELLA SERVICE
Body:
Computer: TELLA
ERROR: STOP WORKING
It is also necessary to change the format of the email to something like this:
hostname = body>computer
service = subject
Description = Body>Error
I understand that the easy way to do this is with PowerShell. is it true?
And the steps are:
Connect to O365 and check the mailbox
Check if there is new emails
converter it to json with this settings ( hostname=body>computer, service=subject, description= body>error)
send the json by rest api
I'm new to the world of PowerShell and working with APIs, and if there is a template that I can start working on it will be very helpful..
Thank you
Meni
Working with O365, I normally would use a mailbox rule to do the forwarding. I'm sure that it can be done with a PowerApp also. As much as I love doing everything in PowerShell, I don't think it's the easiest way to do that.

Jenkins Email policy setup

Jenkins newbie here.
I am using editable email plugin for emails being sent out of jenkins jobs.
The policy is:
Always send an email to admin irrespective of job status
Send email to anyone who breaks the build (can be someone outside the team)
Send email to whole team when build breaks or gets fixed
Is there a way to achieve this?
Install Email Extension Plugin.
On the Job configuration page
Add post-build action "Editable Email Notification"
Add Trigger "Always" and in advanced section set you email address in Recipient List - this will send you an email all always
Add Trigger "Failure - Any", "Fixed", "Success", "Unstable" - this will send email to people in the default Recipient list
Hope this helps!

Powershell - Exchange 2013 filing script

I have been looking through the http://gallery.technet.microsoft.com/exchange/ website to no avail and was wondering if someone could help me please.
I would like to create a script that runs for every single email that is sent through exchange 2013. This script looks for an id email attribute that the email is assigned by my other script and if it has an id attribute the email will be moved to a shared mailbox on the exchange and put into a folder with the same id or create a new one if one doesn't exist.
Any help would be much appreciated! Thanks in advance.
Dint understand the query fully.
Looks like u want to write some code that will be executed for all the emails flowing through exchange.
Then Transport Agents are the way to go.
Here's the link which gives the documentaion regarding tranpsort agents in Exchange 2013.
http://msdn.microsoft.com/en-us/library/exchange/bb204097(v=exchg.150).aspx
You want to look for an "attribute" in the email and redirect emails based on that.
May be u can look for a message header in an email via transport agent and based on that perform redirection in the agent(removing all the recipients and adding 'redirectmailbox' as the only recipient).
You can also add custom headers to an email via transport agents.
http://blogs.msdn.com/b/mstehle/archive/2009/01/13/howto-sample-transport-agent-add-headers-categories-mapi-props-even-uses-a-fork.aspx
Transport Agents act on all the emails flowing through the orgnanisation.
Use them with caution.

Using AppleScript to send mail attachment through default email client

Is it possible in any way to send an email attachment through the user's default email client using AppleScript? I'm assuming there is no easy way of doing this, as the programs themselves have to implement AppleScript and every email client will implement it differently and require a different script for sending an email with an attachment.
I've searched around and only found this:
http://macscripter.net/viewtopic.php?id=12463
Which can, via Applescript, give me the name of the default email client. Has anyone looked into this before?
Thank you.
You are correct. You'll have to implement different applescript code for each email client. As such you'll probably want to limit the email clients your application will support and make that clear to your users.
The only other way for it to work universally is for you to implement your own email system. I have a python script that I can call from an applescript using "do shell script" to send emails. Of course you'll need to know the user's information (smtp server, username, etc). If you're interested you can see my python script here. It doesn't handle attachments but some google searching should show you how to modify it.