Reply to an email address within Order Confirmation Mail
Hi there,
I am trying to create a Zap within Gmail to automate a sales process for my ecommerce shop. I have come this far:
The trigger looks up new emails within my inbox with a certain line of text in the subject - works just fine
Now for the action, I want a reply to the email. However, I do not want a reply to the sender address of the email, since it is simply an order confirmation, so the sender email will always be the same and won’t be the email of the customer that has purchased one of my items
Instead, within that email there is a link to that customer’s email (it says “Send them an email” and when I hover over that link I can actually see the customer’s email as a preview in the bottom left of the screen). I want the Zap to find that field within the email it looked up in the trigger section and use that email to reply to
Unfortuantely, I haven’t found the right field in the “To” (Send to) section of the action for that link or I do not know which of those fields refers to the “Send them an email” button. Can anybody help me out with this?
For easier understanding I have attached a screenshot of what the link within the email looks like.
Thank you for your answers in advance!
Friendly, Mathias
Page 1 / 1
Hi @LowRider ,
There can be several ways to do that. The first way that comes to mind is to use Zapier Email Parser as the Trigger instead of Gmail. To use the Parser you would need to setup auto forward in your gmail with the same rule of your current trigger. When you get the data into the parser we can take it from there. I THINK you would see the Hyperlink in this case and we can then use Formatter by Zapier to extract the email address from there.
Afternoon @LowRider , were you able to give @MohSwellam suggestion a go?
div, p, a, li, td { -webkit-text-size-adjust:none; }
@media only screen and (max-device-width: 480px) {
* {-webkit-text-size-adjust: none;}
tablebid=frame-body],
tablebid=frame-top],
tablebid=frame-bottom],
divdclass=fifty50-left],
divdclass=fifty50-right]
{ width: 100% !important; }
divdclass=splitter]
{ clear:right; }
divdclass=fifty50-right]
{ border-left: 0px; }
divdclass=fifty50-right]
{ padding-top: 20px !important; }
td>class=fifty50-padding],
td>class=… (truncated)
The element of the “Send them an email” part looks like this when inspecting it:
<a href="mailto:EMAILADDRESS (The customer’s email address is here; I deleted it for privacy reasons)" style="text-decoration:none;color:#e55400" target="_blank"> Send them an email </a>
I hope that helps with the Python code!
Friendly, Mathias
Hey everybody, thank you for all the answers (truepaintballer)! I have been busy moving, so I didn’t find the time to try everything out yet.
I’ll keep you updated once I have made some progress.
Friendly,
Mathias
I wish these answer would be helpful for your try once and then let us know.
I have set up the workflow so far and everything works just fine; I just don’t know what Python code to use to extract the email address from the email.
Maybe someone can help with this?
Cheers
@MohSwellam I used Zaper Email Parser now to find a solution.
I basically built 2 different Zaps for this:
The first Zap filters emails within Gmail according to the criteria I am looking for and then forwards those emails as an HTML body to the Zapier Parser mailbox. I then created a template in the Parser to find the email address within that HTML body
The second Zap has “new email” as a trigger in the Zapier Email Parser. I then create the rest of the workflow from there and in the end I simply send an email via the Gmail account to the customer. The customer email is then provided by the Zapier Parser
Thanks to everyone for the help, works perfectly!
Cheers
@LowRider can you attach the html as a file?
What you pasted above got truncated.
I think the code below will work but I cannot test until the HTML file is shared or you can test and if there are issues then send me the HTML (do a search for the email address and redact it before sharing the file).