Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#76 2007-01-11 17:21:59

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Thanks, Ruud. As far as I can see I can’t check the mail logs. I’ve asked the client to check her spam box, but I don’t know if hotmail keeps the spam or removes it right away. In this case I’m not too keen on experimenting, so if it just won’t work I’ll put a normal email link on the site. At least with hotmail I suppose she won’t have to worry about receiving spam ;)

Offline

#77 2007-01-14 18:59:05

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,676
GitHub Twitter

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Hi ruud,

I’m looking to display a form for all the different writers on a site with their individual “to” address.
So I’ have got the corresponding address with this sql query :

<txp:php> global $addr; $query = "SELECT u.email from txp_users u left join textpattern t on u.name = t.authorid where t.id=".$thisarticle["thisid"]; $result = mysql_query($query); if (mysql_num_rows($result) != 0) { $addr = mysql_result($result,0,"email");} </txp:php> <txp:zem_contact to="<txp:php>echo $addr;</txp:php>" />

…but can’t send it. The error message says : “Address to missing”

How to make this rule?
Tks lot.

Last edited by Pat64 (2007-01-14 19:00:17)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#78 2007-01-14 19:25:03

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Patrick, use the to_form attribute instead of the to attribute. Example

<txp:zem_contact to_form="my_to_form" />

Using a TXP form called ‘my_to_form’ that contains:

<txp:php>
  $query = "SELECT u.email from txp_users u left join textpattern t on u.name = t.authorid where t.id=".$thisarticle["thisid"];
  $result = mysql_query($query);
  if (mysql_num_rows($result) != 0) {
    echo mysql_result($result,0,"email");
  }
  else {
    echo 'default-email-address@example.com';
  }
</txp:php>

Last edited by ruud (2007-01-14 19:26:45)

Offline

#79 2007-01-14 19:41:36

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,676
GitHub Twitter

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

ruud you’re my friend! :)
I’d tested the to_form attribute associate with my variable $addr…and obviously it didn’t work.
Tks again, man!


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#80 2007-01-18 06:22:59

infusion
Member
Registered: 2005-08-04
Posts: 19

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Hi everyone. At the recommendation of benbruce (POSTMASTER plugin), I’m posting a problem that I’m having with ZCR. What I’m basically trying to do is to do a copysender except that I want to send a custom email and not the data from the form that was just filled in. What I did was to first create a form called “New Retailer Email” with the content being:-

<code>
<p>Thank you for subscribing with us.</p>

<p>We might occassionally send you emails on the latest products that we have. If you do not wish to receive these emails, please click on the link below:-

<txp:bab_pm_unsubscribeLink type=“text” />
</code>

Then I created a new article and filled it up like so:

<code>
<txp:zem_contact to=“myemail@myemail.com” redirect=“Info/registration-received” copysender=“yes” subject=“New Subscription” thanks_form=“New Retailer Email”>
<txp:zem_contact_text name=“zemSubscriberName” label=“Your Name:” required=“yes” />
<txp:zem_contact_email name=“zemSubscriberEmail” label=“Your Email:” />
<txp:zem_contact_text name=“zemSubscriberCustom1” label=“Phone:” min=7 />
<txp:zem_contact_text name=“zemSubscriberCustom2” label=“Fax:” required=“no” />
<input type=“hidden” name=“zemSubscriberLists” value=“ONE OF MY LISTS” >
<txp:zem_contact_submit />
</txp:zem_contact>
</code>

But this doesn’t work and the subscriber is still just getting a response with the details he/she just keyed in i.e name, tel, etc. Could someone tell me what I’m doing wrong?

Also, the admin (me) does not receive a copy of the subscription when I have copysender=“yes”. I understand that this may be because my host blocks BCC fields? Is there a work around?

Offline

#81 2007-01-18 11:57:31

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

The BCC problem will be solved in the next version, which sends 2 separate emails instead of using BCC.

ZCR currently doesn’t support sending a custom message to the sender, so the form contents are always included in the form. You can however add a zem_contact_secret tag to include extra info in the email. The value/contents of that tag can be a message you want to add to the email. Both sender and you will get the same email.

Offline

#82 2007-01-18 12:06:45

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

ruud wrote:

ZCR currently doesn’t support sending a custom message to the sender, so the form contents are always included in the form. You can however add a zem_contact_secret tag to include extra info in the email. The value/contents of that tag can be a message you want to add to the email. Both sender and you will get the same email.

Argh! This is a really bad news for Postmaster needs. Are there plans to support custom message? I.e, via two forms that could contain the custom message for admin and subscriber/sender (that would include one or more form elements used in the form itself, so that the mail could contain – or not – some information filled in by subscriber, but in a more flexible way)? It would raise a new world of opportunities for this amazing plugin…

Z-

Offline

#83 2007-01-19 03:48:11

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

I’m getting 500 Internal Server errors with this version. I’ve used pre 18 versions for ever and never had an error. It does copy sender successfully but fails to send to the “to” email address. I’m not doing anything out of the ordinary. Any ideas?

Offline

#84 2007-01-21 21:11:12

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

zanza, let me think about making customizable email messages. I think just one form will suffice, combined with a conditional tag to differentiate between recipients (to vs. cc)

mrdale, you’re getting a http 500 error but the email is sent. That is strange… are you using the ‘redirect’ attribute? Can you provide more details on which form you’re using and where/when the error occurs?

Offline

#85 2007-01-22 09:21:34

forgethisname
New Member
Registered: 2007-01-22
Posts: 5

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Excuse me if this has been answered already but I can’t find a solution in the forums.

I have a validation error: ID “Excellent” already defined.
I’m creating a feedback form with radio buttons i.e.

<p>What was your overall experience like?</p>
<txp:zem_contact_radio name="overall" label="Excellent" /><br />
<txp:zem_contact_radio name="overall" label="Good" /><br />
<txp:zem_contact_radio name="overall" label="Satisfactory" /><br />
<txp:zem_contact_radio name="overall" label="Poor" /><br />
<txp:zem_contact_textarea name="comment_overall" label="Tell us about your experience" max=1024 rows=3 cols="45" />
<p>How did you find the coffee?</p>
<txp:zem_contact_radio name="coffee" label="Excellent" /><br />
<txp:zem_contact_radio name="coffee" label="Good" /><br />
<txp:zem_contact_radio name="coffee" label="Satisfactory" /><br />
<txp:zem_contact_radio name="coffee" label="Poor" /><br />

How do I get a unique ID for the radio buttons without changing the label value?

Any advice would be much appreciated.

(Using ZCR 4.0.3.18 on 4.0.4)

Offline

#86 2007-01-22 09:39:35

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

forgethisname, I suppose this problem only occurs with radio buttons because for all other form fields the name attribute can be used to create unique IDs. I’ll combine the name+label of the radio button to create a unique ID in the next version of ZCR (should be ready within a few weeks, still busy cleaning up the help). Thanks for pointing this out!

Offline

#87 2007-01-22 09:55:14

forgethisname
New Member
Registered: 2007-01-22
Posts: 5

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Thanks Ruud, that would be great.

Offline

#88 2007-01-22 18:27:07

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

>rudd
Sorry to leave this so long, but I forgot to subscribe to this thread.

Here’s what’s happening…

  1. When the user hits send it produces a 500 page.
  2. It sends a copy to the user (as per copysender)
  3. It does not send a copy to the “to” person.

my ZCR call:

<txp:zem_contact to="a@bcd.com" copysender="yes" form="page-email" />

my ZCR form:

<txp:zem_contact_text break="" label="Name" />
<txp:zem_contact_email break="" label="Email" />
<txp:zem_contact_text break="" label="Phone" required="no" />
<txp:zem_contact_textarea break="" label="Message" rows="5" />
<span class="button"><txp:zem_contact_submit label="Send to C*2" /></span>

Not Sure what’s happening. I’m at TextDrive and all otrher versions of ZCR have worked as implemented

Offline

#89 2007-01-22 19:00:25

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

mrdale, what happens if you don’t use copysender and/or if you use the built-in standard form?

No need to be sorry, it took me till yesterday to answer your question (I don’t subscribe either).

Last edited by ruud (2007-01-22 19:01:37)

Offline

#90 2007-01-22 19:05:09

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

>rudd

Same result on both counts

[update] Looks like it is specific to a “to” email. l perhaps it is blacklisted by ISP or someplace else?

Last edited by mrdale (2007-01-22 19:09:38)

Offline

Board footer

Powered by FluxBB