Zero Conf Mail
It took me quite some time to check a few existing contact forms and I didn' t like any of them. No, I don't want you to load jquery on every page of my blog. I want it localized, pretty please. Oh, and I want this JavaScript onfocus/onblur effect I wrote about. And why do I have to do any configuration at all anyway?
Update: The plugin now has a simply but hopefully very effective protection against automated spam bots.
Install, add [zcmail] on some page or post, done.
Shortcode demo, please don't send me test mails:
{zcmail}
Downloads at WordPress.org.
Since 0.3.1 the plugin includes a CSS file that is included by default. If you want to modify the CSS styles please have a look at:
WordPress plugin demos are disabled as I don't use WordPress on this site any more.
Hi Nicolas,
I just want thank you for developing and sharing this with all.
Wishing you the best!
Joe Coon
Hey,
it produces a fatal error, when I try to activate it:
Parse error: syntax error, unexpected T_ARRAY, expecting '&' or T_VARIABLE or T_CONST in wp-content/plugins/zero-conf-mail/inc/page.php on line 149
Thanks for your report! Which plugin and PHP version do you use? Does the error happen with a version > 0.1.4?
Hi, I just grabbed this to try it out, and ran into a similar syntax error. From experience, the first thing I did was look for short open tags - i.e. "<?" instead of "<?php" - and found 4: 3 in page.php (lines 145, 148 and 199) and 1 in admin.php (line 354).
With those fixed, the plugin seems to work.
After upgrading to 0.1.7, the form no longer displays properly.
Instead of having one text field per line, the textfields "Your name" and "Your email" now show side by side.
How can I fix this?
Thanks a lot Kelson! I have fixed that and made a new release.
This is a CSS issue, the plugin doesn't generate any <br> or similar. Something like #zcmail input { display: block; } should fix it.
Today I accidentally released the development version as stable. The 0.1.9 release fixes this, I hope not too many people installed a broken version.
I pasted my CSS for the form above on this page. Try to add this to your style.css
Thank you, all is well!
hallo,
sehr schönes plugin. ich benutze es auf meiner seite. habe aber leider ein problem mit der formatierung. die felder werden irgendwie seltsam angeordnet. vielleicht kannst du ja mal einen tipp geben...?
danke und gruß
henning
hallo,
habe das problem schon selbst über die style.css gelöst...:-)
Instead of having one text field per line, the textfields “Your name” and “Your email” now show side by side.
How can I fix this?
Hi costas, the fields have to by styled though CSS. See the example on this page, you can add it to your template's style.css.
I guess I'll have to think about a solution, maybe include a good default stylesheet that I include with the plugin.
I have made new release, 0.3.1. It includes a CSS file that will be included by default, I think this should fix almost all layout problems.
For existing users, you may want to deactivate this feature if you have already styled the form in your template.
Wunderbar! Das Problem scheint öfter aufgetreten zu sein, deshalb gibt es seit 0.3.1 eine Stylesheet-Datei im plugin.
Hi Nicolas,
i've just upgraded zcmail to 0.3.2 and i have to say that the translation program "poEdit" has some problems with your .POT file.
it says that a lot of the lines are "missing `msgstr' section". can you fix the file? i need it to translate the plugin to hebrew.
thanks, asaf
Hi Asaf, thank you for the translation! I don't think you're supposed to edit the .pot file, you should edit zero-conf-mail-he_IL.po. I have already included it in the plugin's translations folder.
The .pot is just a template that's used to generate .po files if I understand correctly.
I love the plugin. I like how customizable the styling is. But the last few times you've posted updates the new styles override what I set in style.css so I have to go in and edit your css file rather than the main css file. Not a huge problem but it makes me not want to install updates.
Thanks again for the great contact form.
Micah, just disable the CSS file in the customization options. That setting will be preserved across plugin upgrades. I made the decision to include it by default so that the plugin works out of the box for as many people as possible.
Thanks for understanding!
This looks great, and so many people seem to have been really pleased with this plug in, that I kind of think I must be doing something wrong.
I think I missed something...
I've installed it, and added the shortcode... I can see it on the page...
how does it know what email to send to?
and when I use it I am getting an error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@youngblood.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.41 Server at youngblood.co.uk Port 80
Hi Tim,
the plugin sends the mails to the admin who installs the plugin, usually the blog owner. It uses the address he is registered with.
Do you have access to your server's error log? I have no idea what's going on. If I understand you correctly the error happens when you try to send mails? Or before?
Unfortunately your webserver looks like it isn't configured properly. And it is ancient and not really supported any more. However, if you find your log I'll look into it.
Hi.
How I can delete a field that I have added by mistake?
Hi diego,
unfortunately you can't - yet! This will be added in one of the next releases. All you can do atm is to reset the form, sorry.
The problem is that the plugin would stop working if certain fields get deleted, and I haven't worked around that yet.
Actually, try <a href="http://downloads.wordpress.org/plugin/zero-conf-mail.0.4.0.1.zip" rel="nofollow">this version</a>. It includes a delete fields option. It's uploaded but might take some time until it's published at wp.org.
i get the following error using the script..
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in \wp\wp-content\plugins\zero-conf-mail\inc\page.php on line 106
Any Ideas, I like what you have done just found your blog going to look it over..
Hi Ray, you server isn't configured properly. Unfortunately there's nothing I can do about that, please check your php.ini.
i checked the php.ini and it has the correct ports 25 set.
Has anyone else had this issue?
Could you try to add something as described <a href="http://drupal.org/node/341969" rel="nofollow">here</a> to the zcmail_sendmail() function in inc/page.php?
Please inform me if adding the correct values fixes your issues, I will add a config option then. (or bug your hoster, sending mails via PHP should just work).
I have added your plugin succesfully. I have 1 question, is it possible to give a link in the mail from wich post the mail was sent?
Good idea, will implement this soon.
Hi Nicolas,
thank you for the plugin. Nice, clean and simple.
Is that possible that you would add this feature? In case required field/s was not filled could you display what field it was?
Right now if I do NOT fill anything just click send message the email is sent. I did not change mandatory settings for any fields.
I was testing the form and it said "Temporarily closed". It would be nice to tell users why.
Thank you,
Radek
Hi Radek, giving information about which fields have to be completed is somewhere on my todo list but really low priority.
If you click send message withoug changing the values no mail should be sent. It works this way on my blog, but I'll do a little testing later this week.
Temporarily closed means that you hit the flood filter. I'm not sure I want spammers to know that. Will think about it.
Hi Nicolas,
i'm having same problem as Radek in that it will send a mail when required fields are left blank, or left with default text.
i tried removing the label text from the boxes so that they would remain empty but form still sends a mail.
fyi in my inbox i get the mails, they contain the following:
"Bug 02 - no subject field defined"
"Bug 03 - no message field defined"
I really like this plug-in, it's clean, and has a great settings control panel. Just what i wanted. Would like to resolve this and would appreciate your thoughts.
Thanks,
Simon
That's very odd. You shouldn't be able to trigger those bug messages as you can't delete fields in a public release yet. Do you use the development version? I'll look into later this week.
Could you try to deactivate the plugin from within the wordpress admin, and delete it from the admin after that?
Or instead, simply reset it.
After that please try to reproduce the bug. I don't really know where to start looking.
On resetting the plugin it works perfectly
but i can easily reproduce the bug from a fresh reset as follows:
Enable customisation options, then save settings to view them, then change or just click on some element within the 'Input Fields Configuration' setting (eg just clicking on a radio button that is already selected then saving settings ie not changing anything will do), and then the form will mail out anything. Have reset it 4 times or so to confirm.
i'll still use it, just wont touch the options panel for now!
I'm using wp 2.8.5
Many thanks,
Simon
Thank you very much for the detailed report! :-)
The bug should be fixed in 0.4.1 which will be available at wp.org in a few minutes.
Thank you Nicolas, it works beautifully now!
This is a great plug-in, very small, very flexible, easy to get working, and intuitive to use and tweak, my first choice by a long way.
simon
That was quick! ;-)
Thank you Nicolas.
Working smoothly now.
R.
Hello Nicolas-
I'm a new WordPress user, using the Headway theme, and I'm getting this:
Warning: Invalid argument supplied for foreach() in /zero-conf-mail/inc/page.php on line 242
You are absolutely right. 0.4.1 introduced a new bug which is fixed in 0.4.1.1. Will be available at wp.org soon. Thanks for reporting!
Hi there. Just an input. it would be good to change the sent from mail address "somevisitor@hotmail.com" to "wordpress@domain.com". The reason is most mail applications setup in mail servers refuse to send emails which are not originated from the mail servers. Emails like domain.com are checked via Reverse DNS to see if the email is authenticated.
The way it is now, your plugin will cause most emails sent from it as spam or rejected. By changing the from address to a valid email address eg "wordpress@mydomain.com" will solve this problem. Other than that. i think so far yours is the best mail plugin there is for wordpress. Ta
Hm, I think you are right about the from address. It's configured this way because in my setup mails never go through any external server. It would be better to put the sender's mail in the reply-to, right?
I'm happy you like my plugin :-)
Actually, I think I shouldn't define a From at all, let the mailserver handle that, and use Reply-To. Comments welcome.
hmm yeah i suppose it good as well. just use a reply to. For the FROM, it would be safe to use wordpress@mydomain.com (whatever the installed domain is).. since this is what the wordpress uses to send out the first details to administrator. hope this help . :D and well done again. Am very impressed on your dedication on your plugin. great work! keep it up.
This is "FREE"..??
can we use "coma" to multiply email..??
Yes, I'm using a WP function now to send the mails. Uses correct From and I add a Reply-To header. Thanks for bringing this to my attention!
Yes, this is <a href="http://www.gnu.org/philosophy/free-sw.html" rel="nofollow">free software</a>
For receivers? No idea, I never tried it.
Hello
Is it possible to translate "Your email here" "Your name" etc. into danish?
Sure, the form can be customized.
Thank you for nice mailform :)
I like simple.
This is easy to setup, especially for Wordpress begginer.
Hi Nicolas, now that the form sends from wordpress_at_domain i no longer get the sender's email (whatever they entered). Is there any way to put that info into the mail that is sent? or to remove the email box on the form? Preferably to send the email field input in the mail as currently I can't reply to anyone. or am i missing something?
Many thanks
Simon
ok just read your comments above and see you have to hit reply to see the email address!
that wasn't so obvious though works perfectly!
thx again for your plugins and support.
simon
Hello simon, you're right, I think I will include the mail address in the mail body beginning with the next release. I guess not all email clients display the reply-to header.
Hi! How can I add contact form to sidebar? In WP2.9 adding text/HTML widget with [zcmail] in it does not working :(
Hi Paul, use the new widget that's included in the 0.5.0 release.
Hi I love the plugin and it does exactly what it says but for one thing. When the fields are not filled out correctly it gives a message "Please fill out all fields!" in white text on a pink background. This is not very easily visible and I would like to change the text color to black on a pink background. Can you tell me how to do this please? p.s. Happy New Year
The color is defined through you theme's css, but I will add a fix to make the font black by default in the next release.
Nicolas, thank you for getting back to me I will endeavour to change the css in the theme although I would appreciate a little point in the right direction. Would it be input: for example?
Hi Nicolas, could you tell me how [zcmail] thing works? I want to trigger some function on a page or where ever I want and I do not know how to do it.
I guess the answer is here, right? http://www.nkuttler.de/2009/10/21/shortcodes-include-css-and-js-only-on-the-correct-blog-pages/
Thank you. Radek
Hi Radek, [zcmail] is a shortcode and it's usage is documentented on this site: http://codex.wordpress.org/Shortcode_API
Hi,
I installed your zero-conf-mail plugin, it installed fine, works fine but... I never receive any e-mails! I've tested it, sending e-mails to the address of my Wordpress site administrator and I receive nothing.
Any ideas?
Спасибо за плагин! Сделал русскую локализацию плагина. Если интересно - скачать можно здесь - http://www.shoptec.ru/files/2010/01/translations.rar
Описание - на странице - http://www.shoptec.ru/?p=2355
Thank you very much for the nice plugin.
1- The widget should have the following options:
A- to set the forms' width. No sidebar is 500px (which is the default width), so it must have its own width setting, independent from the css that applies to the form placed in a page. I modified the style and added width:100% so it stretched the form in the sidebar to the sidebar limits.
B- We should be able to give a title to the widget, I dont know why you disabled that.
2- Iti s great if you add the ability to add a custom antispam question, like I set the question and the only answer that must be input for the message to be sent.
3- It is nice also if you add "send me a copy of the message" checkbox under the form.
If you do these, your plugin will be the ultimate contact me !
Mouad, thanks for your suggestions! I'll look into them.
Thank you ! I hope you do them soon, or at least the widget fixes.. because, btw, setting the widget's width to 100% after setting the form's w max-width to something higher than 150px didnt work, and the widget kept showing very wide , extending beyond the limits of the sidebar.
It must be changed and the width of each of them to be set separately, otherwise, the widget is not usable unless you significantly minimize its width, which will reflect also on the form within a page, and which will not look fairly good.
Thank you for the plugin.
I agree with Mouad on the custom antispam question. Your plugin is just what I had been looking for on my website, but recently I am starting to get spam.
If you can add this feature in, this would be the PERFECT plugin. Thanks again.
Here is my suggestion as i have not seen this on any contact form thus far, and it really does seam like a no brainer....
k, was seeing if you could add user recognition.. so if your logged in, your name and email are filled in the fields(or those fields dont display and just the subject and msg fields are displayed whatever is the best way)
also i know that your goal is a non bloated contact form, and i did read ur reasonings against form security, but i would really love to see recaptcha... you could just add the option for it to be on or off..
i would also be down for this anti spam method which is described in #2(with the ability to set like a few phrases and answers so its not the same one every time) this way you would have to deal with recaptcha stuff...
i also like #3 to have the option to enable that..
"2- Iti s great if you add the ability to add a custom antispam question, like I set the question and the only answer that must be input for the message to be sent.
3- It is nice also if you add “send me a copy of the message” checkbox under the form."
thanks,
madLyfe
In the firefox browser, the fields "Your name" and "Email Address" are side by side (this does not happen in IE).
How do I fix this?
Is this plugin no longer supported?
Anyways, I've managed to solve the issue on my own.
Of course the plugin is still supported, but I don't aways have the time to answer all questions. And I don't do free HTM/CSS support, thanks for understanding.
I was not able to solve this issue with HTM/CSS - i had to modify the core php file.
It took more than 2 weeks for you even to respond to my issue - I'm not sure we can call this product "Supported".
Thanks for understanding.
I'm just releasing version 0.6.0 which includes a very simple but hopefully effective protection against automated spam bots. Enjoy!
Those pesky spammers sent me one email too much. :-)
Hi, Nicolas.
U am using your plugin on many sites but now i ran into a problem: i want to use this plugin in the footer of the page, and not in the post directly - how can i call for it?
I manged to display posts with Shortcode Exec PHP plugin in the footer. But it wont display your form if i add your shortcode in the post...
so the main question: how can i call for your contact without shortcode?
Hi Klemen,
<code><?php echo zcmail_shortcode() ?></code> should work. I'll add that to the readme as well.
Great - that helps alot!
Nicolas, it works great! Thank you for the plugin!!!
I´m just trying to modify a minor detail: is it possible to change the POST=#zcmail so the page that we get in return after pressing the submit botton (that with the success message) apears in a way that my visitors could see my head´s site...
I mean, it was great if when getting the success message, my visitors could see the menus of my site without needing to roll up the sidebar...
I´m not sure I did a clear explanation... hope so...
Thank you in advance! And once again: GOOD JOB!
Hi Marcelo, you're absolutely right. I changed that behavior in the last release. I'll change it back and make the anchor an option in the next release. Thanks for the report!
Hello Nicolas,
Thank you very much for answering my question!
I´ll wait your next release!
Best regards!
Uploading right now. Enjoy!
Great Job! It´s perfect!
Thank you Nicolas!!
hi nicholas.
thanks for all your work on this great plugin. i'm having a strange issue where suddenly the plugin seems not linked to it's own css. i had it set up perfectly and when i went live with the site (and changed the url to the root) the plugin looked completely different and any changes i make to the css (whether in your stylesheet or my own) do not register. i reset, completely uninstalled and reinstalled...checked and unchecked the 'include recommended css styles' box, but no change. any thoughts.
thanks again, tchandler
Hi Todd,
did you perform all the steps described in http://codex.wordpress.org/Moving_WordPress ? I guess not moving the install correctly can cause problems. You should probably check the path to the CSS file in your page source and use firebug to determine which styles are applied. Good luck!
thanks for the quick response.
my wordpress install has it's own directory, i just changed the blog url (to root) and moved the htaccess and index.php files to root.
any css showing up in firebug when inspecting zeroconf elements are from the theme's main stylesheet-- css from my child-theme and from your stylesheet are not applying. but all other css on the site is working just fine.
sorry, you're right, of course. it's something with the css since changing the blog url, the location of the htaccess and index files. my child theme and any other css outside of the parent theme stylesheet is not being recognized. clearly not an issue with your plugin, so i will seek help elsewhere. thanks again.
Hello, First of all, thanks for such a handy plug-in... Sorry to bother you with this, but I seem to be having a little problem with it. I'm using the plug-in on my client's site, however the emails generated are going to my address. The default address in WP is definitely set to go to him. (ie: the email address field in WP General Settings is correct.) But, in Zero Conf Mail Settings, it says "the mails are being sent to [my Email Address]" Is there a specific file on the server where I can manually change this? Again, many thanks.
ps: I did notice in the "readme" file that it said the option can be changed on the "plugin options page"... however in WP, when I select "Plug-Ins/Zero Conf Mail/Edit" I don't see an email address listed anywhere. Thanks again.
Hi Jason, you need to enable the "Customize the form" option, that will show many more option fields. You should be able to change the mail there.
aaargh! I knew it was going to be something simple... Thank you very much for such a quick response!
Hey Nic,
How to clear the background of your plugin? :(
Hi Joey, not sure what you mean. The only thing that has a background is the success + error message. You can override that with CSS.
Hi I have the same question but very limited experience with WP so for me it's not that simple. Can you explain how to enable "customize the form"?
Thanks
Karyn
It's a setting on the plugin's settings page.
Hi,
Great plugin. However, I'm trying to hide the subject field as its not needed. I've tried #zcmail input.zcmail_subject {display:none} but it doesnt seem to work. Any ideas?
Thanks
Hi John,
I had a quick look and maybe an attribute selector http://www.w3.org/TR/CSS2/selector.html#attribute-selectors can be used to hide inputs by name attribute. Not sure how many browsers support that though.
Hi,
Thanks for the reply. Great idea.
Got it to work by adding
input[value=Subject] { display:none; }
Seeme to be supported by most browsers
Hi! Thank you very much for great Plugin that's unreal useful.
I've got only one question (it might be very stupid, but anyway...)
How can i resize form fields in widget-area?
I placed widget there - it looks great but it's a little bit wider, than I need.
Thanks.
You should be able to use the same method John in the comment above used.
Ok.Problem solved, that was my bad - i should just edit css of theme itself.
Great plugin. Simple to use as you promised!
Can I return a 'thank you' page somehow.
Is there a place in the code to modify?
It would help me with my 'goals' in my analtystics program.
Thanks for the great work.
Hi Joanna, that sounds like a great feature. I'll think about how to add. Right now the plugin can't have a thank you page.
Danke für dieses Plugin! Ich möchte es als Widget nutzen, in das man NUR seine Emailadresse eingibt. Sie soll dann an den Admin gesendet werden, der sie händisch in einen Emailverteiler einträgt. Warum lassen sich die Felder "Name", "Subject" und "Message" nicht löschen? Was muss ich im Plugin-Code ändern, damit ich nur ein Feld für Email habe?
Das ist mit diesem plugin so nicht möglich, aber ich werde mir mal anschauen ob ich das Löschen der Felder erlauben kann.
Hi Nicolas, I customize the name of the fields in this blog (http://hiperideal. com.ar/blog/?p=489), but I don´t remember how I did it. Could you help me? Thank you for this spectacular plugin!
You enable the "Do you want to see the customization options?" setting, then you can customize the form.
I´m going to Plugins tab, then Zero Conf Mail are enable. And I only have 2 options: disable it or edit. In edit, I see the zero-conf-mail.php, page.php, admin.php, and others. In these files can not find where I changed the name of the fields. Is it right what I'm doing? Thanks!
Settings->Zero Conf Mail
Now I found it. Thank you so much!
Hi, Nicolas. Thanks again for great job.
I got one more question. I use zero-conf widget, but I didn`t recognise how can I place title of it( I didn`t find such option neither in plugin-settings, nor in widget-settings( Pleas help if it`s possible.
You're right, it looks like I didn't build in a title option. I'll look into this soon.
Hey nicolas, I just tried out your plugin but instead of using it on a page. Is it also possible to directly include it in the sidebar.php file of my template? If so, could you give me the PHP of it? Regards!
Please check the readme.txt
I did, but I still didn't get it to work. There are other Contact Me solutions that allow the user (me) to add an extra button in the navigation bar. When clicking this button, the contact form pops up. Is this possible to achieve with your plugin aswell?
Well.. that's just a little JavaScript. No, this plugin doesn't support this.
Alright thank you for your comment! :) The only thing that bothers me at using [zcmail] as a shortcut on a page, is that the author and post time are also displayed. I want to have a CLEAN contact page, any idea how to hide this quickly? (Yes mabye a little off-topic, but perhaps you know a nice and easy plugin for this)
I'm not sure what you mean by author & time? If you mean your normal template, you can create a page template http://codex.wordpress.org/Pages#Page_Templates
Hi Nicolas!
I find your plugin very useful for those who aren´t familiar with all that configs. I'm translating into portuguese-brazil.
Cool! You can use my contact page and I will send you a reply, so that you can send me the po/mo files :-)
Hi -
Is there any way to configure the Widget width? My right side column is 250 pixels and the form is wider than that, causing it to stick out too far to the right.
Also, a way to specify a widget title would be great.
Thanks - it really looks great - and exactly what I was looking for - nice & simple, nothing super-fancy.
- Fred.
Sorry ... another request. Is it possible to allow for multiple emails (separated by commas, I suppose) in the "who receives emails" area in the settings?
- Fred.
Sorry again ... I hope this is my last question/request for the day!
I just took a look at the message I received a little closer.
I mainly want to use the form to allow folks to send their email addresses to us and subscribe to an email list.
I would love to have a configurable static subject rather than have the user enter it. Also, our site name contains an apostrophe, and it gets mangled in the current subject (Chandler&#039s World).
Thanks!
- Fred.
Hi Fred, no, that's not possible at the moment.
with this: