Current Version 2.6
How long till V3.0? I am getting very close to finishing off the very new and very cool rewrite of the contact form. It is sleeker, safer and more customizable that the current version… help keep me motivated by showing your appreciation….. ![]()
If not a donation, how about jumping off your Amazon search from this box. I am collecting vouchers for some new code reference books… they will help me with the contact form ![]()
The current download is a new version that has some neat new features and better compatibility. It has a CC Sender option and no longer requires a seperate admin options file. If you have any previous versions, please delete the options-pxsmail.php file from the wp-admin directory. There is also a different code for the page where you want the form inserted so that it should now be compatible with the RTE editor in WP 2+. The Charset used is now pulled from the blog settings so I hope this helps where people have had issues!As always, please let me know if there are any problems!
Overview
PXS Mail Form was originally based on the contact form layout by Ryan Duff. I have expanded on his plugin by including various checks on the entered data and including an optional automatic redirect on successful transmission. The plugin will also check that the email address entered is in the correct format.
The latest update is eaier to use, allows you to deactivate the CSS injection from the options page.
Now cross references the quality of the content with a new referrer check. By ensuring that both the content is not dangerous and that a special md5 key matches information in the form, exploits should be harder to complete. In addition, if an exploit attempt is made, the script will quietly return to the homepage offering no feedback or warnings about this to the user. The plugin can send to multiple recipients and it will even create a drop-down menu if required to allow the user to select a recipient. See the instructions below.
I also suggest that it is only used on a page.
Latest features include the option to allow the sender to copy the message to themself, option to allow the user to add their own subject, completely new CSS and layout code for compatibility. Install and check the options page to see what you can do!
Requirements
PXS Mail Form has been built and tested on Wordpress 1.5.2 and 2.0RC3
Installation
1. Copy pxsmail.php into the /wp-content/plugins/ directory.
2. Go to the plugin manager and activate ‘PXS Mail Form‘.
3. Go to Options > PXS-Mail and update your email address and any other options you wish to change. To disable the automatic redirect, leave the destination field empty.
4. Add {mailform} to the page where you want the form to be inserted.
Sending to only one address
Simply enter 1 email address on the options page .
Sending to a group with no select menu
Enter a list of email addresses on the options page seperated by commas email@domain.com,email@domain2.com,email@domainx.com
Sending to a group with a select menu
You need to enter a list of email addresses on the options page, but you also need to specify the value that will be displayed in the menu and the subject that will be sent with the email. Use the following syntax email@domain.com,Person 1,Subject 1;email@domain2.com,Person 2,Subject 2 . The menu will be automatically displayed as the first field of the mail form. Note that each group is seperated by a ‘;’ and the variables are seperated by a ‘,’.
Sending to a group with a select menu and the option to send to all
Use the same system as above but create the last entry with ‘all’ as the email address as in this example email@domain.com,Person 1,Subject 1;email@domain2.com,Person 2,Subject 2;all,To All,Subject to all . The Menu option and subject are customisable as usual.
Update 12th September 2005:
I have finally updated the plugin and should fix a few issues that people were having.
There is now the option to turn off the CSS injection for those that would rather have the CSS in their own stylesheet. You can find the code used by the plugin at the end of the ‘pxsmail.php’ file. The option to turn this off is on the options page in your admin area.
As with the prior release, it should be placed on its own page or after the <!��more��> tag.
Update 13th September 2005:
Now cross references the quality of the content with a new referrer check.
By ensuring that both the content is not dangerous and that a special md5 key matches information in the form, exploits should be harder to complete. In addition, if an exploit attempt is made, the script will quietly return to the homepage offering no feedback or warnings about this to the user.
The new update should ensure that it is much more secure against spammers trying to exploit the script. If anyone receives any evidence that it has been compromised, please let me know and I will try to secure it again.
Update 14th September 2005:
Now works with the Markdown plugin.
Update 21st September 2005:
This major update adds a new feature as requested in the comments. The plugin can now send to multiple recipients and it will even create a drop-down menu if required to allow the user to select a recipient.For instructions on using these features, see the instructions above.
Update 21st December 2005: V2.5
The plugin now only has one file, the options file is no longer required. The code to insert the form has changed to {mailform} and should be compatible with the WP 2 RTE editor. There is a new option to show a ‘CC Myself’ box on the form… should be obvious what this does!
Update 23rd December 2005: V2.6
More new features and (hopefully!) much better CSS compatibilty with different themes and browsers. This code has been completely rewritten so please let me know if/when you have any layout problems! Another new option has been added that allows the sender to enter their own subject. If allowed, a subject will be shown on the form. If this is left blank, the default subject will be used. When using the multi-mail feature, the entered subject will be appended to the subject defined in the multi-mail code.
Good luck and please contact me if you have any difficulties or leave a comment below to help out other users!
The previous list of comments has been archived due to the size of the page… they can still be viewed here.








#370
[…] Muchos blogeros no usan el contacto por miedo al Spam. El formulario de contacto una de las mas praticas aplicaciones bombardeadas de Spam pertenece al tiempo pasado, salio PXSMail mit Akismet lo puedes bajar en PSXMail bajate la ultima version, para el funcionamiento optimal tienes que tener ya el plugin Askimet Activado y con Key valida. Baja el PSXMail y subelo por FTP al fichero de plugins, activalo en el tablero de admin /Dashboard en la seccion opciones puedes configurarlo a tu manera. Para publicar tienes que crear una Pagina asi; Escribir/Escribir Pagina: Ahi das Como titulo Contacto y en el Contenido de la Pagina o Context vas a la parte CODIGO y pegas esto […]
Pingback by PSXMail plugin para Contacto » Latino-Blog.Com — 25/2/2007 @ 12:21 pm
#369
[…] PXS Mail Form: Creates a feedback form for your visitors, with verification. […]
Pingback by Deziner Folio - A site dedicated to the creative aspects of design. — 24/2/2007 @ 6:09 pm
#368
Mark,
I am really not sure what the problem was but it is clearly something to do with the loop! You could try hard coding the url of the contact form into the script file itself.
Andy,
Good point about the plugin… when I implemented that originally I was not aware it would affect the whole site. I will probably remove the filter completely.
Dan, Mark & Sam,
The new version (If I ever get around to completing it!!!) will have a number of antispam methods as well as a lot of other features that will help with customisation etc.
Comment by Phrixus — 24/2/2007 @ 11:44 am
#367
Thanks for the contact form. Looks great.
captcha would be good though.
Comment by Sam — 24/2/2007 @ 11:01 am
#366
Captcha is bad, but there is simpler solutions that will work. Just ask a question such as “What is 3+3?” or “Type the word written here”. I can’t see spammers rewriting their scripts just to bypass that. I they do, just write the question using javascript.
Comment by Mark Barnes — 22/2/2007 @ 8:57 pm
#365
I love this plugin and I use it on several sites. Any chance you have plans to add a captcha or some kind of anti-spam feature? I’m getting flooded with stupid link spam…
Comment by dan — 22/2/2007 @ 12:09 pm
#364
Thanks for the reply re: multiple emails. I found the earlier discussion at http://www.phrixus.co.uk/index.php?page_id=227&cp=26#comments
However, the problem was only explained, not solved.
I have tried changing the redirect of my contact for, but that doesn’t work. I wonder whether the problem is caused because of my blog being in the root, and/or my permalink structure being /index.php/id-name?
Comment by Mark Barnes — 21/2/2007 @ 11:25 pm
#363
Rigged this into some friends site today running Markdown. I skimmed your comments and found another poster last year who made a work around and I wanted to report it still works but it would be better if you could roll his patch into your base so that in future versions we’re not having to dig for the solution again.
If you don’t want to roll his notes into your code please add the note that you will be disabling people’s markdown plugin as it was a real surprise to see the site go from right to wrong.
Appreciate your time and efforts putting this into the community.
-a
Comment by Andy C — 19/2/2007 @ 11:09 pm
#362
Hi Mark,
That issue has been reported in the past. The answer is in the comments here but I cannot remember offhand what the solution was! Take a look and see if you can find the solution… if not let me know!!
Shane
Comment by Phrixus — 19/2/2007 @ 7:11 pm
#361
[…] The site is built around WordPress and K2 (a theming framework on top of WordPress). On top of this I implemented the Blue-K2 theme and have added the following plugin: Askimet, Blue-K2 Quicktags, Feedburner Feed Replacement, PXS Mail Form, Smart Update Pinger and Ultimate Tag Warrior. […]
Pingback by Only Network » Blog Archive » AskOwen.info — 19/2/2007 @ 2:57 pm