Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#301 2008-04-10 22:17:57

alannie
Member
From: Minnesota, USA
Registered: 2005-09-15
Posts: 150

Re: zem_contact_reborn 4.0.3.20

Hello, is it possible to specify that articles sent to a friend also be sent to a second email address hard-coded into the attributes?

Offline

#302 2008-04-11 09:04:23

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

Re: zem_contact_reborn 4.0.3.20

Not possible, although you could add

mail('hardcodedemail@example.com', $subject, $msg, $headers);

Just below these lines in the plugin code:

        if (mail($to, $subject, $msg, $headers))
        {

Last edited by ruud (2008-04-14 17:52:10)

Offline

#303 2008-04-14 17:00:21

alannie
Member
From: Minnesota, USA
Registered: 2005-09-15
Posts: 150

Re: zem_contact_reborn 4.0.3.20

Thanks, Ruud! I tested it out and it works nicely.

I also have a regular contact form on the website and my tests show that it also sends those forms to the hard-coded email. This is not a problem for me, just wanted to confirm that the change indeed affects all forms and not just the send-article forms.

Last edited by alannie (2008-04-16 16:31:14)

Offline

#304 2008-04-14 17:54:32

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

Re: zem_contact_reborn 4.0.3.20

If you only want the hardcoded email for send_article forms, you can do this:

if ($send_article) mail('hardcodedemail@example.com', $subject, $msg, $headers);

Offline

#305 2008-04-16 16:24:21

markgr
New Member
Registered: 2008-04-16
Posts: 4

Re: zem_contact_reborn 4.0.3.20

Hello

I posted a little while ago with relation to using this plugin and compatibility with PHP5. I know that it is PHP5 friendly but my hosting provider claims that the forms are failing to send because of a scripting error, and not an issue with them.

The form submits and sends successfully to mailboxes away from the domain, but doesn’t submit to mailboxes on the domain. The form doesn’t show an error either. I’m not a php developer so I don’t understand why it would submit to some email addresses and not others!

cheers

Mark

Offline

#306 2008-04-16 16:47:58

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

Re: zem_contact_reborn 4.0.3.20

If the difference is only in the email address used, then it’s related to something in the local SMTP server, because the fact that you can use the form to send emails to external email addresses, indicates that the plugin is working. They (your webhost) can check the mail server logs to see why local mail delivery fails.

Offline

#307 2008-04-18 11:49:17

markgr
New Member
Registered: 2008-04-16
Posts: 4

Re: zem_contact_reborn 4.0.3.20

I’ve had this back from my webhosts:

“Does this sending mail form have the ini_set() function correctly set in it? This is a server requirement for php based scripts that send mail we have enforced.”

Where would I need to look for this function?

cheers

Mark

Offline

#308 2008-04-18 12:45:09

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

Re: zem_contact_reborn 4.0.3.20

The plugin doesn’t have this ini_set() function set, but if it’s the ini_set I think it is, then you can add the following line to the beginning of the plugin code. Just edit the plugin and add it before the first line:

ini_set('sendmail_from', 'user@domain.com');

Where, of course, you can replace that email address with your own address.

Alternatively, you can place that line in the /textpattern/config.php file (insert on the line right after <?php).

Last edited by ruud (2008-04-18 12:46:34)

Offline

#309 2008-04-18 13:18:30

markgr
New Member
Registered: 2008-04-16
Posts: 4

Re: zem_contact_reborn 4.0.3.20

success !
thanks for all your help Ruud

Mark

Offline

#310 2008-04-19 05:17:10

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: zem_contact_reborn 4.0.3.20

I am using this for a client. And for some reason or another, the contact form inquiries aren’t getting through to their email address. But when I change it to a gmail account, he is getting the inquiries ,although they do fall into the spam folder.

Two questions;

Why aren’t the inquiries going into his initial email account. Is it something wrong with the domain registrar email solution that is causing this?

Aside from marking the email as “not spam”, is there anything else that I can do to make sure that the inquiries don’t fall into the spam folder but the inbox. A temporary workaround that we are using is to forward the inquiries from his gmail into his main email account.

But the permanent solution that I’m seeking is to figure out why the inquiries aren’t coming in at all with the initial email account

Offline

#311 2008-04-19 08:53:07

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

Re: zem_contact_reborn 4.0.3.20

If it does arrive at gmail, the mail does get sent, so the most likely cause is that the receiving mail server is rejecting the email, which should be visible in the mail server logs of that mail server.

Offline

#312 2008-04-26 18:00:35

t1m
Member
From: Massachusetts, USA
Registered: 2004-09-11
Posts: 17
Website

Re: zem_contact_reborn 4.0.3.20

I like this plugins ability to specify field default values. but what if I wanted to use javascript to clear on focus so the user doesn’t have to manually delete the text? does anyone know how I could get a class name attr for my zem_contact_email tag?


“You know you’ve achieved perfection in design, not
when you have nothing more to add, but when you have
nothing more to take away.” -Antoine de Saint-Exupery

Offline

Board footer

Powered by FluxBB