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

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.

Related

SendGrid Transactional Templates - Address and Unsubscribe Link Broken

I've configured several Transactional Templates to be sent from my SendGrid account via their handy Design Tool, which work great!.
However the Address Line and Unsubscribe links on the template footer aren't activated. In an email they display as placeholders, like so
[Sender_Name]
[Sender_Address], [Sender_City], [Sender_State]
[Sender_Zip]
Unsubscribe << (Not a Hyperlink)
I've followed SendGrid's documentation and configured my account address but am unable to find the solution for this.
Any ideas on this? Thanks for any input or guidance!
To get the unsubscribe to function you will need to create one or more unsubscribe groups. If you look under the Marketing menu you will see the sub menu to create those. Once you create one it will be assigned an ID number. When you are generating your email you will need to pass that ID value in as part of the EmailMessage object. If you are using V3 of the API you will be looking for SetAsm.
As for the Sender fields, for transactional templates they do not work correctly, as they are meant for marketing campaigns. Your two options are:
Remove the Sender fields from that block in the template. Add a new text block above it with static values.
Download the template into HTML and convert the sender objects into substitution variables. You will then be able to set them in your code when you are creating the email.
GitHub Bug
The unsubscribe link will only appear if you create an unsubscribe group and specify it while sending using
asm: {
group_id: <the unsubscribe group ID>
}

How to send email by simple email address using crm?

I'm working with Dynamics CRM 2016, I want to send an Email from crm using an email address that the user insert (the email Id is taken from a field in incident-Entity and not from crm-user) according to examples online the option is to use entityreference from another entity that will hold and get the Email address, is there a way not to use Entityreference but instead get my email address from a simple field on incident form?
You can use e-mail addresses that are not associated with e-mailaddress fields. It just requires a few steps.
In the UI navigate to Settings > System Settings > tab Email > header "Set Email form options".
Make sure setting "Allow messages with unresolved email recipients to be sent" is Yes.
Now you can use literal e-mail addresses like in this example:
var sender = new EntityCollection();
sender.Entities.Add(new Entity("activityparty")
{
["addressused"] = "me#home.test"
});
var recipients = new EntityCollection();
recipients.Entities.Add(new Entity("activityparty")
{
["addressused"] = "info#acme.test"
});
var eMail = new Entity("email")
{
["from"] = sender,
["to"] = recipients,
["subject"] = "Just a test",
["description"] = "Body of your e-mail"
};
organizationService.Create(eMail);
You can do it programmatically! You can send an email to a person who is not a Lead/Contact/Account.. The CRM will send email but it will show un resolved referenced when you open it in CRM
Update:
but instead get my email address from a simple field on incident form?
This is not possible in CRM UI. But possible using the code snippet from the blog link in comment. You have to query the textbox content and put in recipient party address.
(These two lines are for sending email to activity party email Id from associated record non-email field from CRM UI, without any code or customization for this particular scenario)
Unfortunately you cannot achieve it.
Only way is associated record.

TYPO3 tt_products: send a tracking email on status change to admin as well as user

I use tt_products 2.7.18 on TYPO3 6.2.25.
I configured orderEmail_to to the admins email address.
When an order is placed the customer and the admin gets a respective email - as expected.
But when I change the tracking status, only the customer gets an email.
The manual does not tell me how to configure and I'm starting to question the possibility altogether.
Can anyone tell me if and how to configure?
Thanks in advance.
plugin.tt_products {
...
orderEmail_to = admin#emaildomain.com
...
}
It is correct to set the orderEmail_to. You should check in the TypoScript Object Browser (backend module Template) that this setup is applied on your tracking page id, where in this example I have given "admin#emaildomain.com" as the admin's email address.
Only the tracking status numbers between 50 and 59 will send a notification email to the customer.
tt_products 2.7.27 is already available. Maybe your version 2.7.18 is already outdated.

Amazon SES Unsubscribe list with PHP

I have used amazon SES service for email campaigning. PHP Class that I am using can be found at http://www.orderingdisorder.com/aws/ses/.
I want to place a link in html mail that will be used to unsubscribe that user from list. I am sending mail to a list of users however, I want link to be unique for each. Link should appear as
http://www.mydomain.com/mail_unsub.php?userid=mymails#gmail.com&key=kjhgporhfs
Is there any function in SES that I can use directly??
suggestions please
You could place a special tag like #unsub# at the footer. When you loop through the mail list, you need to replace unsub tag with the current user email ( add the http://mydomain.com too of course)
When user click on that link, you need to remove them from you list. Or mark it as unsubscribe. It should be done inside mail_unsubscribe.php

Wordpress plug-in to instantly reply to a form?

Does anyone know if there is a wordpress plug-in which lets you set up a form which has an email field, among others.
The form, after filled in, would:
send the content of the form fields to an email address (name:joe, phone number: 555 etc)
send an instance response to the email provided ('thanks for your contribution')
add email address to an internal database (which is exportable) within the wprdpress admin
Thanks.
This will accomplish your task and more - http://wordpress.org/extend/plugins/formstack/
cformsII from Delicious Day is what you're looking for. Customizable, easy to set up, and can be set up to track all form submissions. Find it at http://www.deliciousdays.com/cforms-plugin/