Setting customer's Name and Email for POP3 fetching

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
AleksidEr
Posts: 4
Joined: Thu Aug 12, 2021 11:43 am

Setting customer's Name and Email for POP3 fetching

Post 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?
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Re: Setting customer's Name and Email for POP3 fetching

Post 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?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
AleksidEr
Posts: 4
Joined: Thu Aug 12, 2021 11:43 am

Re: Setting customer's Name and Email for POP3 fetching

Post 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!
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Re: Setting customer's Name and Email for POP3 fetching

Post 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!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
AleksidEr
Posts: 4
Joined: Thu Aug 12, 2021 11:43 am

Re: Setting customer's Name and Email for POP3 fetching

Post 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.
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Re: Setting customer's Name and Email for POP3 fetching

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
AleksidEr
Posts: 4
Joined: Thu Aug 12, 2021 11:43 am

Re: Setting customer's Name and Email for POP3 fetching

Post 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.
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Re: Setting customer's Name and Email for POP3 fetching

Post by Klemen »

Thanks for sharing what worked for you!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply