Page 1 of 1
Setting customer's Name and Email for POP3 fetching
Posted: Thu Aug 12, 2021 11:53 am
by AleksidEr
Hi,
My website uses Contact Form 7 to send a message for POP3 fetching in Hesk.
By default, Hesk set Name and Email fields in a new ticket according email "From" field. But all email tickets come from my email server.
Is it possible to pass hidden meta-tags in email message with a custom Email and Name and ask Hesk get these fields for a ticket?
Re: Setting customer's Name and Email for POP3 fetching
Posted: Thu Aug 12, 2021 12:30 pm
by Klemen
No built-in way, no. As you mentioned, it gets the name and email from the "From" header.
You'd probably need to pass the name and email in the message somewhere (preferably in a tag; not sure how Contact Form 7 works), then modify the email piping logic to use regex, for example, to extract the name and email from the message.
That, or you could send your customers directly to the ticket form?
Re: Setting customer's Name and Email for POP3 fetching
Posted: Thu Aug 12, 2021 2:22 pm
by AleksidEr
Hi,
Thanks for your quick reply. Probably it would be too complex for me to change something in Hesk files.
I used Contact Form 7, because it was easy to integrate it with a design of my website on WP.
Currently I use "From" field as my customer name/email for sending ticket email withing my VPS server. And Hesk correctly processes it with desired name/email. But CF7 always shows me a warning about wrong configuration and there is a chance that email message can be treated as a fake email by my VPS.
P.S. I purchased a Hesk license, thanks for your great work!
Re: Setting customer's Name and Email for POP3 fetching
Posted: Thu Aug 12, 2021 7:42 pm
by Klemen
Yeah, the problem is if, for example, the "From" email shows "@gmail.com" but is actually sent from another server (one not authorized to send emails from @gmail.com addresses), this triggers spam filters.
Since you are sending the emails locally within a single VPS you can most likely instruct your spam filters to ignore locally delivered emails and ignore the warning message. If you would be sending from one server to another server, you would have to be more careful and maybe whitelist the sending server's IP from your spam filters.
Thanks for supporting our work!
Re: Setting customer's Name and Email for POP3 fetching
Posted: Tue Aug 17, 2021 12:52 pm
by AleksidEr
Hi,
I understand, thanks for your reply.
If it possible, please add in future Hesk version meta-tags in email text to overwrite "From" name/email when ticket is created in POP3 fetching.
Re: Setting customer's Name and Email for POP3 fetching
Posted: Tue Aug 17, 2021 1:34 pm
by Klemen
The problem with using meta tags with this in an official version is that everyone will know what tags to use and someone can exploit this by crafting emails with fake data.
Your best bet would be to have your code customized and keeping the tags you use private.
Re: Setting customer's Name and Email for POP3 fetching
Posted: Tue Mar 12, 2024 2:51 pm
by AleksidEr
Hi,
Can I clarify my question in 2021 in this topic?
I found a simple solution.
Contact Form 7 on my Wordpress website generates email with the field FROM
noreply@mydomain.com TO
tickets@mydomain.com
And I add additional REPLY-TO field for this message:
Reply-To: John Smith <
john@smith.com>
After POP3 fetching, the ticket was created from John Smith at
john@smith.com
It seems to work correctly.
Re: Setting customer's Name and Email for POP3 fetching
Posted: Tue Mar 12, 2024 2:56 pm
by Klemen
Thanks for sharing what worked for you!