Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#433 2008-10-03 07:00:51
- SebastianS
- Member
- From: Australia
- Registered: 2007-10-05
- Posts: 46
Re: zem_contact_reborn 4.0.3.20
Is it possible to using zem contact reborn, to create a series of questions in the textareas, see above, send the questions linked to ‘buy now’ using using Paypal, and after being paid for to be answered. The Paypal site is highly informative on how to set up a shopping cart. But how does one to link from zem contact reborn to Paypal?
To sumarise;
What I need to know is using zem contact reborn how do I link say this,
<br />
<txp:zem_contact to=“xxxxx@xxxxxxxxxx.com.au”>
<txp:zem_contact_textarea label=“Question 1” break=”“ />
<txp:zem_contact_textarea label=“Question 2” break=”“ />
<txp:zem_contact_textarea label=“Question 3” break=”“ />
<txp:zem_contact_textarea label=“Birth Date” break=”“ />
<txp:zem_contact_submit label=“Send” /> to add cart button?
</txp:zem_contact>
Edit: Many parts rewritten and simplified.
Last edited by SebastianS (2008-10-03 09:50:48)
Offline
#434 2008-10-04 18:35:11
Re: zem_contact_reborn 4.0.3.20
Sebastian, you’d have to write a plugin that hooks in to the ZCR callback event ‘zemcontact.submit’ to trigger the correct response (calling the paypal scripts correctly) when someone submits the form.
Offline
#435 2008-10-04 22:12:27
- SebastianS
- Member
- From: Australia
- Registered: 2007-10-05
- Posts: 46
Re: zem_contact_reborn 4.0.3.20
Ruud, thank you for a reply,
My knowledge of PHP and plugin making is negligible, I will be doing some intense research on the subject in the next couple of days to familiarise myself with the territory, if not successful I will place a message on ‘Seeking Textpattern Pros.’Thank you again for your reply.
Offline
#436 2008-10-06 15:08:04
- Emilw
- New Member
- Registered: 2008-10-01
- Posts: 4
Re: zem_contact_reborn 4.0.3.20
One of my sites using emailaddresses that looks like name@city.example.com. My contactform doesn’t send any mail if the to address looks like that, but it works great with my gmail address.
Have I done something wrong?
Offline
#437 2008-10-06 18:34:43
Re: zem_contact_reborn 4.0.3.20
If it does work with the gmail address, but fails with the other address, I’d recommend asking the webhost to check the mailserver log files to find what causes the delivery to that other address to fail.
Offline
#438 2008-10-06 22:26:37
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: zem_contact_reborn 4.0.3.20
sorry if the question’s already been asked
is it possible to get a unique or incremental number into the subject
?
so something like “response 1”, “response 2”, etc?
Offline
#439 2008-10-07 14:30:01
- Emilw
- New Member
- Registered: 2008-10-01
- Posts: 4
Re: zem_contact_reborn 4.0.3.20
ruud wrote:
If it does work with the gmail address, but fails with the other address, I’d recommend asking the webhost to check the mailserver log files to find what causes the delivery to that other address to fail.
Thanks for your reply.
According to my webhost, no mail were sent. They asked me if it could be some code in the form that doesn’t allow sub domains, the only addresses that wont work is sub domain addresses.
Offline
#440 2008-10-07 14:33:48
Re: zem_contact_reborn 4.0.3.20
Nardo, To get an auto-incrementing counter, you can use my rvm_counter plugin in a form (the subject_form attribute for the zem_contact tag)
Emilw, if the email address was not valid, you’d get an error message (try entering something with a completely invalid domain as the TO address).
Offline
#441 2008-10-07 14:55:17
- Emilw
- New Member
- Registered: 2008-10-01
- Posts: 4
Re: zem_contact_reborn 4.0.3.20
I tried with emil@sadfasdfs.asdaasd.se as the TO address then I got no error message, just that the mail has been sent.
If I put in a space in the domain it doesn’t accept the address.
To address: emil@sadfasdfs.asdaasd.asda.sad.a.sd.asd.ad.se is accepted.
Last edited by Emilw (2008-10-07 15:11:48)
Offline
#442 2008-10-07 15:37:40
Re: zem_contact_reborn 4.0.3.20
Emilw,
This is a long shot. Does the DNS zone file associated with the site bearing the contact form in question have an MX record that directs email to a 3rd party email server, a local MS Exchange Server for instance, instead of the hosting company’s email server? If so, it is likely that email generated by contact forms on your site directed to email addresses in the same domain (as is more often than not the case) will fail. This could account for you being able to send to a Gmail account successfully but not to your own domain’s accounts. Depending on the hosting company set up, email to other domains on the same server as yours could fail too.
If it appears that this is the case, your hosting company can fix the problem for you; it is a common requirement when a 3rd party email server is in play and hosts have to do it all the time.
Offline
#443 2008-10-07 17:04:19
Re: zem_contact_reborn 4.0.3.20
If ZCR doesn’t reject the message, then that email address is used when trying to send an email using the standard PHP mail() function. Since that obviously non-existent address was not rejected, I’m guessing you’re on a Windows server (where it’s not possible to check the validity of the domain name).
Offline
#444 2008-10-08 04:40:16
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: zem_contact_reborn 4.0.3.20
that’s great, thanks ruud
Offline