Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#961 2011-02-28 23:05:35
- chume
- Member
- Registered: 2009-12-03
- Posts: 27
Re: zem_contact_reborn 4.0.3.20
How could I use zem_contact to send email to multiple recipients from a database? I have searched this forum without luck.
I will appreciate any help that I can get.
<txp:zem_contact to=“emails_in _db (ign_db)”>
Offline
#962 2011-02-28 23:46:12
Re: zem_contact_reborn 4.0.3.20
If you can write the code that returns the list of recipients as a comma-separated list, it’s really easy. Opening a new topic for that question may give you the answer faster than asking it here. Once you have the comma-separated list you can do:
<txp:zem_contact to='tags or code that returns a comma-separated list of email addresses'>
Offline
#963 2011-02-28 23:53:51
- chume
- Member
- Registered: 2009-12-03
- Posts: 27
Re: zem_contact_reborn 4.0.3.20
Thank you Ruud for the quick response.
I think I will follow your advice and open up another thread.
Offline
#964 2011-03-01 18:50:08
- chume
- Member
- Registered: 2009-12-03
- Posts: 27
Re: zem_contact_reborn 4.0.3.20
Hello Ruud,
Is there a way to hide the recipients from showing up in the zem_contact email?
Thank you.
Offline
#965 2011-03-01 23:35:01
Re: zem_contact_reborn 4.0.3.20
@chume, not without hacking plugin code.
Offline
#966 2011-03-01 23:50:22
Re: zem_contact_reborn 4.0.3.20
chume AFAIK zem_contact_reborn doesn’t support a bcc= instead of to=.
But maybe you should look for a newsletter plug-in or use a static workaround solution like a single group newsletter address to a specific newsletter software or a Google or Yahoo group.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#967 2011-03-02 00:08:25
- chume
- Member
- Registered: 2009-12-03
- Posts: 27
Re: zem_contact_reborn 4.0.3.20
Thank you Ruud and Markus for the helpful hints.
Offline
#968 2011-03-02 12:04:17
Re: zem_contact_reborn 4.0.3.20
I’m planning to do just this. Extract a list of users (from ign_users) and then hack ZCR to allow for BCCs. I’m no coder, but doing some research it looks like it just needs an extra header.
But I haven’t started anything yet…
All of the other options look like overkill to me.
Offline
#969 2011-03-02 13:47:44
- chume
- Member
- Registered: 2009-12-03
- Posts: 27
Re: zem_contact_reborn 4.0.3.20
Hello Anura.
I have a function which retrieved emails from the ign_users_db and using the zcr, I was able to send email to everyone or to a filtered group. I will look into the BCCs aspect that you mentioned. If you need the function, please let me know.
Offline
#970 2011-03-03 04:07:22
- sutivnn
- New Member
- Registered: 2011-03-03
- Posts: 1
Re: zem_contact_reborn 4.0.3.20
Hi,
I am using the latest version of this plugin on a web project.
What I encounter is that in IE6 Window XP (SP2), after the message is send, the page remain at the ‘thank you’ page. Even if I click on the link back to the contact form, it stays the same until I cleared the cache manually.
This does not happen to other browsers and even IE7 on Vista works.
Could anyone share some thoughts on this and how can I make the cache work on IE6 because a large number of my potential visitors will still be relying on IE6 and most of them have not upgrade to Window Vista. I may not be possible to convince everyone to use FireFox either.
The scenario:
I use the template “Block Rocker” by Matthew Smith.
When a user click “SEND” in the contact form, the message is send and
A “Thank you” page is shown
When the user click “contact” again, the contact form shows.
<p>Cong ty <a href=“http://www.noithat190.net.vn”>noi that 190</a> va cong ty <a href=“http://www.noithat-fami.net”>noi that fami</a>deu ban hang <a href=“http://www.noithat-fami.net/ban-ghe-fami-khac.html”>Ban ghe fami</a></p>
However in IE6, no matter how many times you click the “contact” button,
the “Thank you” page remain….until you clear the cache….
Thank you
Last edited by sutivnn (2011-03-03 04:12:47)
Offline
#971 2011-03-09 20:49:14
- MonkeyChap
- New Member
- Registered: 2007-01-03
- Posts: 7
Re: zem_contact_reborn 4.0.3.20
Hello,
I’ve never been able to get Textpattern to send mails, so I’m not able to use this really useful plug-in. Is there any way to just store the e-mail addresses in the database for retrieval later ?
Ian
Offline
#972 2011-03-10 01:26:15
Re: zem_contact_reborn 4.0.3.20
Offline
#973 2011-03-10 03:45:01
Re: zem_contact_reborn 4.0.3.20
aslsw66 wrote:
You should be able to do this using @mem_form@ to post HTML form contents to a custom table in the textpattern database.
Also, don’t forget mem_simple_form. mem_form provided the api for the form fields, but it doesn’t know what to do with the input by itself. mem_simple_form can be used in conjunction with mem_form to direct the input into your database.
Offline
#974 2011-03-22 15:33:45
Re: zem_contact_reborn 4.0.3.20
I have an error occurs. I’ll try to describe it …
if I’m doing here is so, then everything is fine sends:
Pay your attention to the field: zem_contact_email
<div id="form_contact">
<txp:zem_contact_serverinfo name="REMOTE_ADDR" label="IP number" />
<div id="contact_email_name"></div>
<div id="contact_email"><txp:zem_contact_email break=":<br>" /></div>
<div id="contact_email_name">Ваше сообщение:</div>
<div id="contact_body"><txp:zem_contact_textarea label="" break="" /></div>
<div id="contact_submit"><txp:zem_contact_submit label="Отправить" /></div></div>
Но если сделать вот так, что смоей точки зрения более правильно для дизайна:
<div id="form_contact">
<txp:zem_contact_serverinfo name="REMOTE_ADDR" label="IP number" />
<div id="contact_email_name">Вашь E-mail:</div>
<div id="contact_email"><txp:zem_contact_email label="" break="" /></div>
<div id="contact_email_name">Ваше сообщение:</div>
<div id="contact_body"><txp:zem_contact_textarea label="" break="" /></div>
<div id="contact_submit"><txp:zem_contact_submit label="Отправить" /></div></div>
The plugin returns an error and replaces the email address on what is written in the message body:


Last edited by ruud (2011-03-22 18:01:23)
Offline
#975 2011-03-22 18:06:22
Re: zem_contact_reborn 4.0.3.20
Lera, that’s caused by setting label="" on multiple ZRC tags while at the same time not setting the name attribute for these tags, so either use a non-empty label or explicitly specify a the name attribute for each of the tags.
Offline