How I can send a email with attachments in Camunda? - email

I am new here and also using the Camunda application, my question is that when I try to send an email with Camunda's own extension ( camunda-bpm-mail ) I don't see that I have the option to send attachments along with the email and I would like to know if there is a way to do it. Thank you.

The camunda-bpm-mail component supports attachments. See:
https://github.com/camunda-community-hub/camunda-platform-7-mail/blob/6470b1351818d90b61d941fe05b1205e14a637a4/extension/core/src/main/java/org/camunda/bpm/extension/mail/send/SendMailRequest.java#L40
https://github.com/camunda-community-hub/camunda-platform-7-mail/blob/6470b1351818d90b61d941fe05b1205e14a637a4/extension/core/src/main/java/org/camunda/bpm/extension/mail/send/SendMailConnector.java#L121
and includes an example;
https://github.com/camunda-community-hub/camunda-platform-7-mail/tree/main/examples/print-service/src/main/resources

Related

How to send multiple confirmation emails after order-process in HYBRIS?

How can I send multiple emails after order-process? In my way when I add products to cart and go to cart , I have option to choose some emails. For example before place order I want to send emails and to test#test.com, test1#test.com and test3#test.com confirmation emails. Hybris OOTB has a process for sending email to customer which you are login in storefront. ( For example lucas#lucas.com ) . So I'm with Lucas in storefront and now when I place order only Lucas#lucas.com recived an email from customerservices#hybris.com. I saw in GenerateEmailAction.java this piece of code
final List<EmailMessageModel> emails = new ArrayList<>();
emails.addAll(businessProcessModel.getEmails());
emails.add(emailMessageModel);
businessProcessModel.setEmails(emails);
getModelService().save(businessProcessModel);
so probably somehow can set multiple emails. One note, when I place order , I already have in orderProcessModel selected emails.
orderProcessModel.getOrder().getEmails()
which is Collection< String>
In OOTB Hybris email functionality does not support attachment, CC, BCC, multiple toAddress, etc. It should be OOTB, I hope it may come in the latest version.
To solve this, you have to define those custom attributes in BusinessProcessModel to stores the values and access them later in DefaultEmailGenerationService service. Also, you have to override the DefaultEmailGenerationService to support multiple toAddress.
For more details, follow hybris-support-multiple-toaddress.

How can we add attachment to default mail Application Using NSWorkSpace in cocoa Mac OSX application

I am using NSWorkspace to set TO, CC, BCC , SUBJECT and body text in default mail application through my application. How can i add attachments using NSWrokSpace?
Is there any way to attach files in the default mail app using NSWorkSpace?
I have tried using NSSharingService but problem with NSSharingService is that you cannot set CC and BCC email addresses in the default application Email Compose.
Is there any way to add CC, and BCC recipients using NSSharingSerivce ??
or is there any way to add attachments in mail using NSWorkSpace??
My code to open and set TO, CC and BCC is here
NSWorkspace.sharedWorkspace().openURL(NSURL.init(string:"mai‌​lto:(self.txtTo.‌​stringValue)"+"?subj‌​ect=YourSubject"+"&c‌​c="+self.txtCC.strin‌​gValue+"&bcc="+self.‌​txtBcc.stringValue)!‌​)
And Using NSSharingService i can set only recipients as TO
service!.recipients = [self.txtTo.stringValue]
service!.subject = "Subject"
thanks!.
It looks like NSSharingService has the method performWithItems, which takes an array of the things you want to share.
It appears you can create a sharing service of type NSSharingServiceNameComposeEmail and then attach a message body and a file to attach.
I've never used NSSharingService before, so the above is based on some Googling and reading the docs. (And I mostly work in iOS these days so my Mac OS is getting a little stale.)
Check out this link:
http://cutecoder.org/featured/programmatically-sending-rich-text-mail-attachment-mac/

Send Email with attachment to a specific recipiant , using share Content WinRT

I'm using WinRT and I want to send an email with attachment to a specific recipient programatically, that means the user of the app will not write the recipient address.
I found to solutions that dont correspond to my needs.
the first one is to use mailto protocol like this :
var mailto = new Uri("mailto:?to=ratatata#gmail.com&subject=our first subject &body=as you know this is our first mail baby ");
await Windows.System.Launcher.LaunchUriAsync(mailto);
this solution allow me to specify the recipient but the mailto protocol dont support attachement.
the second one is by using Share Content , like this microsoft sample ,
https://code.msdn.microsoft.com/windowsapps/Sharing-Content-Source-App-d9bffd84
this solution allow me to attach any type of files , but the user of the app should write the email address of the recipient.
NB: any other methods using MessageEmail , and system.net.mail dont work !
Any help please !!

How to get the no of attachments in an email using objective-c?

Hi am new to xcode programing,i am trying an app regarding the email attachments to show the no of attachments an email contains,i got the single attachment showing but i need how n=many are there in particular email,if any body knows about this please help me.Here is the code regarding the app:
From looking solely at the code you have provided, it would appear that all you need is [attachments count] to provide the number of attachments in the current message

Force.com email service

I have created an email service in force.com.Can anyone help me out of how to use thta in apex classes.say,i wanna send mail when user registration is successful??
Many Thanks,
Sandhya Krishnan
I assume you want to send an email directly from Apex code, either in a Trigger or from a page controller ... ? If so, this page can get you started:
http://www.forcetree.com/2009/07/sending-email-from-your-apex-class.html
Clearly you don't want to hard-code your email template into your classes, so make sure to read at least through the part that shows how to look up the template dynamically. That should be enough to get you on your way.