Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
How to create Zendesk tickets by using zem_contact_reborn
Hi, following Zendesk APIs I was trying to build a contact form to make visitors open support tickets.
I then wrote the following contact form by using zem_contact_reborn :
<txp:zem_contact to="myEmail@myDomain.tld" subject_form="bs_support_subject_form" label="Submit a support ticket" show_error="1">
<txp:zem_contact_text label="Name" size="30"/><br/>
<txp:zem_contact_email label="Email" size="30"/><br/>
<txp:zem_contact_select label="Product" list="product1,product2 / Pro,product3" break="br" /><br/>
<txp:zem_contact_text label="Version" size="30"/><br/>
<txp:zem_contact_textarea label="Problem Description" /><br/>
<txp:zem_contact_submit label="Send" />
</txp:zem_contact>
and then, as explained here, I created a bs_support_subject_form
whith the following content:
notextile. <txp:php>
global $zem_contact_form;
echo "{{requester:" . $zem_contact_form['Email'] . " " . "assignee:support@myDomain.tld}}";
</txp:php>
but… it doesn’t work. :( Where am I wrong?
Thank you all.
Offline
#2 2011-03-28 23:21:42
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: How to create Zendesk tickets by using zem_contact_reborn
What is “it doesn’t work”?
Have you looked at the source code? Is there a remainder of the above code? If so: Would notextile..
(two dots) work? (You need to avoid Textile treating several lines!) If not: What have you tried to make it work?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#3 2011-03-29 07:12:45
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How to create Zendesk tickets by using zem_contact_reborn
caruso_g wrote:
I created a
bs_support_subject_form
whith the following content:
notextile. ...
You don’t need notextile.
in a form…
Offline
Re: How to create Zendesk tickets by using zem_contact_reborn
Hi all, thank you, as always, for your help.
@Uli
Sorry mate, “it doesn’t work” = “it doesn’t send the E-mail”
@Els
Yep, deleted, but still nothing :(
I tested another, simpler, form on the contact page and it doesn’t work as well. I begin to think that is something related to the mail()
PHP function.
Could it be sendmail is missing since mail()
uses it as a driver?
If so, how can I check for it?
Offline