Magento 2 - Send all communication emails to secondary email - php

I have created a new customer attribute to store customer secondary/communication email address details.
I want to send all kind of emails to only secondary/communication email address.
Which is the best way to achieve this ??
Thanks in advance for your suggestions.

Related

create dynamic replay to email address

I'm creating a system using laravel for a very specific use. For each customer he will register a ticket, and for each ticket I would like to create an email address. This email address will be specific to that ticket, and will be used for "replay to". Whenever the "replay to" is answered, the system loads the message directly into the ticket.
I have no idea how to do this? How to create this email address?
Can anybody help me?
You are propably looking for inbound email routes, and the easiest way is to use a third-party provider.
Read this for example

gumtree like email communication system

looking for some pointers on how to develop a buyer/seller email sysem like Gumtree's, ie the seller will get an email from the buyer but the email is sent from gumtree's domain and when the seller replies it is sent to the buyers personal email address via gumtree. Nor the buyer or the seller will ever see each other's email address.
PHP is preferred but any language will do just to understand the concept of how it is done.
well thnks all. what would one do without google? (yahoo?)
https://www.quora.com/How-do-I-set-up-an-email-relay-system-similar-to-craigslist-where-both-parties’-anonymity-is-protected

magento order notification doesn't contain email of a customer

I would like to know if there is possibility to include customers email into email notification that is sent to sales person after order is made.
I get all the data like name, last name, address of a customer, ordered items, but no email of a customer. Is there a way to add email of customer to email notifications for sales department?
Thanks in advance and best regards.
If you wish to see your customer’s email address in the order confirmation emails sent out by Magento, you will have to edit (or create a new template and assign it to new order emails) the new order confirmation email template and add this code to it.
{{htmlescape var=$order.getCustomerEmail()}}
First make sure you already have the email template in Transactional emails. If you do not know how to do that you can google it or look at this Stackoverflow post: Magento - New Order mail.
In the corresponding transactional email template add the following code wherever you want the email address to appear:
email: {{var order.getCustomerEmail()}}
regards

I want to add the members on Google Groups by Email

Actually, I want to add the email address automatically join on my google groups by emailing on mygroupname+subscribe#googlegroups.com. But the issue is, when i email from php code to my group email for add. The google first send the reconfirm email to the user email and if direct email from hotmail,yahoo or gmail then google directly add the person as a member.
My Question is: Is this any php email code which works like the second scenerio i.e. add the person directly on group. I used PHP Mailer gmail smtp also but on that case, it adds the smtp user email not the email address which i set on From ? Please help me out.
Thanks in advance!
No, this is on Google's side, not php's Google must confirm the user wants to be added, and confirm the email address is valid.

Magento sends too many confirmation emails

I have a Magento store that apparently sends too many confirmations emails on an order. My theory is that the emails are resent all over again to the store admin when the customer tries to shop entering an inexistent email address.
How can I debug and/or fix this?
Thanks
Is the customer's email getting returned to sender? If so try setting the sender address to a blackhole, a mailbox that drops all messages. It's not uncommon for sites to have a "noreply#" address for this purpose.

Categories