Ph: 14092005

Support

PXS Mail Form - WP Plugin

General
— by Phrixus14-09-2005 | Categories:

Current Version 2.6

Download Now

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 ;-)

[ http://rcm-uk.amazon.co.uk/e/cm?t=encaptured-21

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.


Additional Related Entries

PXSmail Updated
PXSmail - Updated again!
PXS Mail Form - WP Plugin
My First Plugin - PXS Mail Form

446 Responses to “PXS Mail Form - WP Plugin”

Pages: « 4516 15 14 13 12 [11] 10 9 8 7 61 » Show All

Get your own Gravatar at Gravatar.com

#110

Thanks Phrixus!

I’ve installed and started using the new pxs_mail and it looks good and works fine to me and one file for the plugin is ALWAYS easier than more. But thats just me! :-P

So I have started looking at ur new version and Ill be taking the next few days to “read” it and see what I can do, I started renaming the functions and strings and stuff today, before I read ur post - but I get what u mean now… …make it all new but keep the structure and I should be good to go.

Thats a fantastic offer mate and Ill see what I can do before I even send it ur way, cos Im learning as I go… …I dont know how to program php, but Im learning. ;-)

Cheers, Richard

PS - Sorry mate, whats ur real name, just in case I want to send u an email from that site: R u Shane, Adrian or Davide? ;-)

Comment by Richard Waters — 22/12/2005 @ 1:38 pm

Get your own Gravatar at Gravatar.com

#109

Hi Richard, unfortunately all of the functions need to be renamed in the script. I think the best way to do it is to do a ‘Replace All’ on the file. None of the functions can have the same name as another plugin. I can give you one hint though… use the new file for one of the forms and the options. Since the database data is the same, you could use the old modified form happily with it… this way you wont have issues with having 2 options pages (more errors!)… unfortunately you also wont have the CC option unless that is hacked in aswell!! If you would like any help with the mods, please let me know as I hopefully I should be able to modify it a little easier due to familiarity. As the contact form wont run on this site (Old WP!) please use the form here if you need to send me a message

As the code has grown, I have been wondering about its readability so I am pleased that you seem to be getting on ok with it. I will definately try to keep it up!!!

Comment by Phrixus — 22/12/2005 @ 11:15 am

Get your own Gravatar at Gravatar.com

#108

Sorry, can u help me get around this error please, if u know what it is:


Fatal error: Cannot redeclare validateemail() (previously declared in C:\xampplite\htdocs\rmagic\wp-content\plugins\online-quote.php:21) in C:\xampplite\htdocs\rmagic\wp-content\plugins\pxsmail.php on line 33

How do I either stop it from redeclaring it? Or do I have to change them both to something else? I have tried changing “validateemail” to another discriptive name but the error stays the same.

Whatever help you could give would be great, this is the last thing I have to have on my website (an online quote form) before I can send it live on the server!

Cheers, Richard

Comment by Richard Waters — 22/12/2005 @ 2:01 am

Get your own Gravatar at Gravatar.com

#107

Crazy idea I just had from looking at the new file - and I must say, ur code is so damn good, neat and documented even someone like me who doesnt know much about php can work it out (though I have programmed in the past with different languages!)! - if I renamed the parts of the functions that started with “pxs_” and changed descriptions and then added my own fields, I would have the stand alone plugin file that is a Quote Form… …or at least be close, am I right?

A yay or a nay in the right direction when you have a moment would be great!

Cheers, Richard

Comment by Richard Waters — 22/12/2005 @ 1:45 am

Get your own Gravatar at Gravatar.com

#106

I sort-of get what you mean, change the pxsmail dot php file into a, say, pxsquote dot php file with the different form entries - I have gotten that far and can even have it appear in the plugin directory - but does it also mean I have to rename the functions?! And now that you have brought out a new version, will it be easier to do it all from within the one file?

Do you know of a tutorial somewhere, where someone shows how to “hack” someone elses plugin to come up with their own - Im learning, I really am! :-D

Thanks!

PS - I just installed the new version and the CC is an excellent addition - so I might look at changing the new version for the quote form I was working on - back to the drawing board!

PPS - If I can get it going Ill send you a copy and u can have it!

Comment by Richard Waters — 22/12/2005 @ 1:38 am

Get your own Gravatar at Gravatar.com

#105

Hmm… will have to look into that woot! Will let you know what I find!

Comment by Phrixus — 21/12/2005 @ 8:07 pm

Get your own Gravatar at Gravatar.com

#104

One more question about encoding. After I changed it int he file to UTF-8 the body of the mail is now sent correctly. However, if the ‘Subject:’ setting or the ‘Your Name:’ field on the contact page have cyrillic characters, they are not sent right.

Any idea how to fix that?

Comment by woot — 21/12/2005 @ 7:58 pm

Get your own Gravatar at Gravatar.com

#103

Hi Phrixus
with WP 2.0RC3 works
but is necessary disable the RTE from User Profile only for insert the tag .
Many thanks :-)

Comment by Cisla — 21/12/2005 @ 1:09 pm

Get your own Gravatar at Gravatar.com

#102

I have not tried it on WP2 yet… I am writing new functions and improving the compatibility so that it will work when the new version is released. I would highly suggest that you use the basic interface for entering the code as it is likely the editor will adjust the code into html or something.

Comment by Phrixus — 20/12/2005 @ 11:25 pm

Get your own Gravatar at Gravatar.com

#101

Hi Phrixus
in my case the plugin does’nt work.

i’ve install PXS v2.0 onto WP 2.0-RC3, activated and properly configurated.

After I create a contact page, and insert ( with RTE Editor ) the line “”.
The result is that print without show the form.
May U help me?
Thanks :-)

Comment by Cisla — 20/12/2005 @ 9:22 pm

Pages: « 4516 15 14 13 12 [11] 10 9 8 7 61 » Show All

Leave a Reply


You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser