Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2007-04-12 07:08:10

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

Re: zem_contact_reborn 4.0.3.19 (old version)

jstubss, the current version is MLP compatible, but requires the zem_contact_mlp (?) plugin (instead of zem_contact_lang) that is supplied with the MLP pack. The next main ZCR version with new features will have native MLP support. The code for that is mostly finished, but I’m ironing out some bugs and it needs proper documentation.

The dynamic select box is possible by calling the zem_contact_select function directly from within <txp:php> tags. That way you can dynamically set the “list” attribute value.

Offline

#122 2007-04-12 07:36:13

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

Re: zem_contact_reborn 4.0.3.19 (old version)

nardo, are you sure that setting your email address (within your own domain) in the from attribute of the zem_contact tag isn’t enough to pass filtering?

Setting the hostname in the smtp handshake means re-implementing the entire PHP mail function in ZCR. It also means that TXP itself can’t send emails containing a password for a new user, because TXP also uses the built-in mail function, as do most PHP scripts in existence.

I think your webhost should seriously reconsider dropping that requirement for mail that is sent from an website that is hosted on the same server as the mailserver itself. It’s a nice anti-spam measure for mail that comes in from the outside, but applying that to mail that was sent from within doesn’t seem to be a very effective anti-spam measure to me.

btw. ZCR does already check if the domain name of the recipient address is a valid hostname that has either an MX or an A record (which is one of the things that FromHost does). But that’s mostly to detect typos in email addresses.

Offline

#123 2007-04-12 12:27:48

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: zem_contact_reborn 4.0.3.19 (old version)

Hadn’t considered the password/new author issue. Thanks for the informed response Ruud.

Offline

#124 2007-04-12 13:45:22

sugoo
Member
Registered: 2006-05-29
Posts: 20

Re: zem_contact_reborn 4.0.3.19 (old version)

I’m using this plugin with Ben Bruce’s Postmaster plugin, and I’m trying to figure out a way to get the date/time that a form was submitted into the subscriber table in the database… any ideas? Thanks in advance for any help you can offer.

Offline

#125 2007-04-12 13:55:26

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

Re: zem_contact_reborn 4.0.3.19 (old version)

sugoo, that subscriber table is part of the Postmaster plugin, so I think Bruce can give better advice on how to do that.

Offline

#126 2007-04-12 14:01:46

sugoo
Member
Registered: 2006-05-29
Posts: 20

Re: zem_contact_reborn 4.0.3.19 (old version)

OK, thanks, I’ll put the question over in that forum.

Offline

#127 2007-04-12 17:27:10

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

The error message that is output when the form can’t be sent, Sorry, unable to send e-mail., isn’t handled the same way as the other form errors (i.e. empty required fields). Is this by design?

It would be nice to be able to markup and style all the errors the same way. Perhaps with an attribute like the thanks_form which allows control of all the error messages.

Offline

#128 2007-04-12 17:48:50

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

Re: zem_contact_reborn 4.0.3.19 (old version)

I think if that error occurs, markup and style are the least of your problems :)
That message, along with a few other error messages, is there to make setting up contact forms easier; as a diagnostics tool. Visitors to your website shouldn’t see such errors.

Offline

#129 2007-04-12 18:05:44

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

Yes I am getting a strange issue where that message shows up but it does, in fact, send the email.

I get the same issue if I try to reset another user’s password in txp. However, if I change my own password in txp I get no error and the email is sent fine.

I suspect it has something to do with php on my server but I have no idea how to debug it. Any ideas?

Last edited by tinyfly (2007-04-12 18:05:53)

Offline

#130 2007-04-12 18:22:45

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

Re: zem_contact_reborn 4.0.3.19 (old version)

try setting your own email addres in the ‘from’ attribute of the zem_contact tag.

Offline

#131 2007-04-12 18:46:25

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

No luck, I still get the Sorry, unable to send e-mail. message but the form sends anyway.

Offline

#132 2007-04-12 21:22:43

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

Re: zem_contact_reborn 4.0.3.19 (old version)

Create a file called test.php with the following contents and upload it to your website (use your own email address instead of that example address):

<?php echo mail('your@email.address','subject','message') ? 'succeeded' : 'failed'; ?>

When you open that page with your browser, it should show ‘succeeded’.
Now try it with a different email address that you know exists and is not hosted on the same server that hosts your website. If that gives a “failed” message when loading the page in your browser, contact your webhost, and show them the code you just tested with. They should be able to investigate what’s causing it.

Last edited by ruud (2007-04-12 21:27:06)

Offline

Board footer

Powered by FluxBB