Abandoned cart email Hybris - sap-commerce-cloud

I have a requirement whereby the customer should be sent a mail after a certain time of abandoning the cart.
Is there some out of the box functionality in Hybris to achieve this or we would have to build our own logic?

There is no OOTB solution for abandoned cart email, you can check CartRemovalJob source code for finding carts and ticket event emails source code and templates for sending localized emails.

Related

How to disable workflow initiated email from SP workflow

I have a workflow in SharePoint 2013 that sends out emails to the user whenever their requests gets worked on. They however also get an email that says "A workflow has been initiated on the following list item".
Is there any way to disble that email from being generated or sent to the requestor?
Please advise, thank you.
With SharePoint Designer, you can change or simply remove the initial email send to the Author.
There are some workaround to do, since you'll have to copy the OOTB Workflow before editing him.

Want to now to send Cortana Email Mark-up for users to track?

I am working on Cortana Email Markup, and as per my research and understanding https://msdn.microsoft.com/en-us/library/dn632191.aspx I have found some schema that work for tracking flight reservation. But I want to know
1) Does Cortana track Gmail or only outlook mails?
2) Does it also track Packages,Events then will i get procedure and schema related to it?

Gmail wronlgy classifies invoices/purchase emails

we sell software licenses but our emails end in the gmail Promotions tab of the main Inbox or even in the spam folder. During the purchase process we send one email with login details, another email with a link to download the invoice and finally another email with an attachment containing the license. Also on every new release, more or less every six months, we send an email notifying users about free upgrade to the new version. We have some complains from gmail users about not having received the license because they didn't notice the email was classified as a promotion or spam. All emails come dkim signed, from spf authorized servers, we are even on the main postmaster feedback loops and in several dns whitelists.
Is there any way to have gmail correctly classify this emails ?
I am not expert on bulk emails. My suggestions are based as my experiences as active Gmail consumer and experiences with learning algorithms
(1) Avoid being labeled spam:
Request/Advice users to add your Id into their contact list.
Follow the GMail Bulk Mail Guidelines link.
Apart from DKIM/SPF do you handle abuse, unsubscribe emails?
If a user marks you spam, nobody can help. Your emails are annoying to user and Gmail will honor user's preference.
(2) Make it to Primary Tab in Gmail Inbox:
Categories in the INBOX are filtered based on Gmail learning algorithm about user preference.
Play with keywords in your mail. If Gmail identifies email content to be important, they'll put it in Primary. I noticed emails from Godaddy.com with expiration/renewal/promo/profile complete request etc always make it to my Primary tab. Either they have figured it out or could be I have replied to them couple of time. Or I may have spend above threshold time staring at content of their emails.
You may request user to mark Star and Important. GMail learning algorithm should pick it.
Usually nobody replies emails in Promotion and Social tabs. Have your user reply your email. Not the best idea I know.
Noticed another ‘major’ retails emails practice :
For Order confirmation they used retailer#accounts.retailer.com : GMail classified Primary
For Reminders, Upgrade and feedback they used retailer#value.retailer.com : GMail classified Promotions
For Pure promotion they have yet another email ID dealnews#promo.retailer.com : GMail classified Promotions
If user is really annoyed with hundreds of promo email, GMAIL learning algorithm may classify promos to go into spam first than value emails. Three ID strategy seems promising.
Good luck !

Plugins for incoming and outgoing emails in CRM 2011

I need to create two plugins for CRM 2011
Whenever an email is incomging or outgoing I need to check if the email has any attachments in it. If yes I need to set one boolean value to true.
When user (user only, not workflow or automatic message etc.) answers some email I need to fire a plugin that checks incident's status (email is regarding to an incident) and depending on the status do some things.
I'm not really familiar with this whole email tracking concept. We have an email router configured, but that's all I can say.
What are the steps that I need to use in order to achieve plugins described?
For the first plugin I think "Create of email" is enough, right? What about the second plugin and how can I make sure that plugin is fired only when a real person sends an email?
For the first plugin:
To check for attachments for an email you will need to create a plugin which executes on create of the ActivityMimeAttachment entity, which is the entity which stores email attachments.
When an inbound email is processed by the Email Router (or tracked in the Outlook Client) the parent Email record is created first, and then an ActivityMimeAttachment record is created for each attachment.
If you try to check for attachments when an Email is created it will be executing before any attachments are created. However, you may also need a plugin to execute when an Email is created to set the 'Has Attachments' field to false.
The plugin on ActivityMimeAttachment will need to get the parent email activity and set the 'Has Attachments' field to true. This will handle both inbound and outbound emails.
Also note that for 100% accuracy you may need to consider the scenario of a user who is writing an email and adds an attachment, and then deletes it. This could be handled by a plugin running when attachments are deleted, but that logic can get complex (what if two attachments were added but only one was deleted?)
There is some useful sample code for dealing with the ActivityMimeAttachment entity here.
For the second plugin:
A plugin which executes on update of an email would then need to validate the following criteria:
The email direction is outbound (a user has answered an email, e.g. sent a reply)
The email status reason is Sent (the email has actually been delivered and is not saved as a draft)
The email sender and/or owner and/or created by is a real user (filter out automatic and workflow sent emails)
The regarding object is an incident
Then you can implement the required custom validation and logic.
The second item could potentially be achieved using a standard workflow, depending on how complex the custom logic is. If the logic is too complex for a standard workflow, a custom workflow activity might also be useful since additional logic or validation could be added without writing additional code.
For the 1. Plugin: Register on email create and on update (maybe users create the mail first and then update some attachments later)
For the 2. Plugin: Check the following:
plugin context depth should be 1 (this makes sure that no mail created by another plugin is processed)
Check the created by and created on behalf by fields on the email entity to be a non technical users and that no one is acting on behalf of another user creating this mail
Check that regarding object points to incident
If this is not sufficient enough and the users sends mails only via CRM Web GUI you can additionally set a special flag on the record via javascript to make sure that the mail was created using the gui. Than check this status flag in the plugin.

Custom E-Mail Event for Sharepoint Upon InfoPath Form Submit

A customer wants an e-mail notification sent to a select group of people when a new InfoPath form is submitted to a particular Document Library on their SharePoint 2007 setup.
Easy, right? Use a custom set of rules for an e-mail submission in InfoPath, plop in the addresses, use a fancy equation to construct a useful e-mail subject line... and done. Worked like a charm. Problem solved in just a few minutes...
However, the customer doesn't want the whole form e-mailed out or even attached to the e-mail. They only want a few select fields from the form in a very simple message.
I've tried writing an ItemAdded event handler from the SPItemEventReceiver base class, but it doesn't seem to do anything. Yes, I added the event handler to the GAC and created a Feature.xml and Elements.xml to register the event handler with SharePoint. But, I'm not sure if this is even the right event to customize. Is an item in a Document Library the same as an item in a List?
Has anyone had luck doing a similar e-mail notification event? Is there an easier way to accomplish what I'm attempting? Perhaps there's a way to do this easily through the SharePoint interface or edit the contents of the e-mail submission rule to be a simplified version of the form?
Any advice is greatly appreciated!
How about a very simple SharePoint Designer workflow that is triggered when the form is uploaded. From there you send an email and include content of the (exported) columns in an email body.

Resources