wp-mail.php
Started using WordPress a few days ago and love the clean look/design/code. But it got me thinking about photos, I love photos but hate having to upload stuff and linking to it (CMS style). In fact I’m so lazy, I decided to have a hack at wp-mail.php
What I ended up doing was replacing most of the code in wp-mail.php for wordpress 1.2, didn’t anticipate that when I first started but the results are nice.
This hack is a ‘drop in’ replacement for the current wp-mail.php. It uses pear as a mime compliant email ‘decoder’. What’s cool is that you can attach images inline in your email messages and they’ll be shown as an image in your wordpress article. It does this by decoding the image attachments and writing them to ‘wp-photos’ directory (not in default wp install).
It has all the abilities of the current wp-mail.php plus:
- Allows image attachments (posts inline)
- Checks if user email address is in the database (otherwise discards message)
- Allows other file attachments (zip’s, exe’s, etc)
- Fairly good cleaner for removing excessive line breaks
I’m planning on more updates, but would love to see this update included in future wordpress releases. Would be happy to maintain it to, I’m fairly sure it complies with most of the coding guidelines I’ve read on the wordpress website.
To install you grab the zip file: wp-mail.zip
- Drop the two files (wp-mail.php & mimedecode.php) into a wordpress 1.2 root directory
- Create the directories ‘wp-photos’ and ‘wp-filez’ in the wordpress root directory(with writing permissions (probably 0777).
Let me know what you guys think!
-
http://slashdemocracy.org/wordpress/archives/2004/06/16// Bredgade 40 » 2004 » June » 16
-
http://peimic.com/wp/2004/07/20/word-press-by-e-mail/ PeiMic – Living, Learning, Helping
-
http://peimic.com/wp/2004/07/20/word-press-by-e-mail/ PeiMic – Living, Learning, Helping
-
http://cafelog.net/index.php?p=91 Cafelog.NET » i-shot wordpress
-
http://reidan.ch/wp/index.php?p=386
-
http://www.geekandproud.net/archives/2004/08/30/443/the-switch/ geek and proud
-
http://www.chiafullo.it/blog Gnam
-
chad
-
chad
-
Dan
-
Dan
-
Dan
-
chad
-
http://www.asymptomatic.net Owen
-
Michiel
-
eden
-
JohnBlade
-
http://rhombus.mine.nu Matt
-
http://www.erichkolb.com/index.php?p=82 Erich Kolb
-
Lane
-
http://www.idealrhombus.com Matt
-
http://www.idealrhombus.com Matt
-
http://www.idealrhombus.com Matt
-
Lane
-
http://www.idealrhombus.com Matt
-
http://colormepink.com Christine
-
http://www.jeffreymorgenthaler.com/moblog Jeff
-
Eric
-
http://scooterphish.us Scooterphish
-
http://www.jeffreymorgenthaler.com/moblog Jeff
-
http://niklas.saers.com/blog Nik
-
http://www.innereyes.com rust
-
Neil
-
http://www.timbishop.com Tim
-
http://www.southernblog.com Pam
-
mid0ri
-
http://www.jeffreymorgenthaler.com/moblog Jeff
-
http://www.basketti.net R@lf
-
http://peimic.com/ Michael
-
http://peimic.com/ Michael
-
http://peimic.com/ Michael
-
http://www.mountebank.org/blog joe
-
Andy
-
http://www.dwelle.org/archives/2004/07/27/adding-thumbnailing-to-wp-mailphp/ dwelle.org
-
Joseph Boykin
-
Dan
-
http://www.tillsvidare.com/blogg Robert
-
jebba
-
jebba
-
http://scooterphish.us Greg
-
http://www.david-web.co.uk/ DJ
-
http://www.david-web.co.uk/ DJ
-
http://www.workalone.co.uk Tony Crockford
-
http://hg.hultman-puke.com/blog
-
http://hg.hultman-puke.com/blog
-
Caj
-
Martijn Hulst
-
Micke
-
http://scooterphish.us Greg
-
http://kineticspin.com Steve Lapointe
-
http://www.aim-journals.com AIMJournals
-
http://blog.weblars.de/wp Lars
-
http://scooterphish.us Scooterphish
-
http://blog.weblars.de/wp Lars
-
http://www.geekandproud.net/ alan
-
http://blog.weblars.de/wp Lars
-
cail
-
http://unknowngenius.com/blog dr Dave
-
Gaston
-
http://www.cknetworking.com/weblog Cash Keith
-
JohnBlade
-
http://www.party-poker-player.com/ Party Poker
-
http://www.background-check.info Background Check
-
http://www.uscashloan.com/ Payday Loans
-
http://www.levitra-medication.com/ Levitra
-
http://dish-network.satellite-tv.gb.com Satellite TV Dish Network
-
http://www.usa-penis-enlargement.com/ Penis Enlargement Pills
-
http://www.aquick.org/blog Adam Fields
-
Cory
-
http://video-poker.ownsthis.com Video Poker
-
http://video-poker.ownsthis.com Video Poker
-
Brian
-
http://www.fullo.net/blog/index.php/archives/2004/11/15/wp-mail-hack/ Full(o)bloG
-
http://www.searchenginetweakers.com/seo-expert.html SEO Expert
-
http://www.efextra.net ASP.NET Web Hosting
-
http://www.texas-holdem-p.com texas holdem
-
http://www.online-poker-888.us online poker
-
http://www.online-poker-888.us online poker
-
http://www.online-poker-888.info online poker
-
http://www.matt-fletcher.co.uk/blog/ Matt Fletcher
-
http://www.woodyracing.co.uk/ auto insurance
-
bradley
-
mike
-
http://www.8gold.com/ online poker
-
http://www.texas-holdem-p.com texas holdem
-
http://www.texas-hold-em-a.com texas hold em
-
http://www.texas-holdem-i.com texas holdem
-
http://www.reservedining.net/ phentermine
-
Lutz Linke
-
http://www.bigredsplace.com BigRed
-
http://templates.imess.net/index.html Templates
-
http://templates.imess.net/index.html Templates
-
http://templates.imess.net/index.html Templates
-
http://templates.imess.net/index.html Templates
-
http://templates.imess.net/index.html Templates
-
http://www.easy-application-credit-cards.com/ credit cards
-
http://insurance-quotes.rulo.biz/ insurance quotes
-
http://insurance-quotes.rulo.biz/ insurance quotes
-
http://www.online.com online
-
http://www.blackjack-tfx.com free blackjack
-
http://wsop.tecrep-inc.net/ wsop
-
http://www.football-betting.biz football betting
-
http://www.poker-room.co.il poker
-
http://www.playpoker.co.il play poker
-
http://wp.somy.jp/2005/02/17wp-mail-php_89.php WordPress:SOMY.JP
-
http://pacific.poker-online.ws/ Pacific Poker
-
http://blog.puckrat.com/wordpress/?p=29 Nest Notes » Hack: Email Posting
-
http://www.buyzoloft.us Propecia
-
http://www.buycheapcelebrex.biz Celebrex
-
http://www.buycheapzyban.biz Zyban
-
http://www.buycheapzyban.biz Zyban
-
http://www.axmx.net/2005-05-09/moblog-time-fixed/ axmx.net » moblog time fixed
-
http://cipro-hc-otic.info Brian
-
http://cipro-hc-otic.info Brian
-
http://www.72mach1.com/?p=14 72mach1.com » Blog Archive » Saturday plans!
-
http://reidan.ch/wp/2004/07/20/tests-fr-ein-neues-moblog-script/ Laestermaul
-
http://www.gambling.ph gambling
-
Quotes
-
Elilarasan
-
ElilarasuPrate
-
ElilarasuPrate
-
bestpenisenlargement
-
Blaomn
-
GuerreroMaguire
-
Georgeyyyt
-
http://www.greenglove.us seattle cleaning services
-
http://www.bigboxstore.com china wholesale
-
http://www.kpib.co.uk internet marketing classes
-
http://windshieldrepairkitonline.com/ car windshield repair
-
http://www.buddylodge.com best hotels bangkok
-
http://www.benaturalorganics.com best skin care products
-
http://www.buddygrouphotel.com vacation rentals thailand
-
http://leasemonster.com car lease deals
-
http://www.supercircuits.com CCTV system
-
http://www.snoozerpetbeds.com/ snoozer pet seat
-
http://matthewhars.com Headshot photography ny
-
http://www.poly-lumber-furniture.com/c-POLY-LUMBER-WOOD-ADIRONDACK-FOLDING-CHAIRS.html folding adirondack chair
-
http://medication.herpes-simplex-treatment.com treatments for herpes
-
http://www.reelpublishing.com john wayne books
-
http://www.limo-hire-birmingham.com/ limo hire birmingham
-
http://www.canedesign.com/seo.aspx SEO Miami
-
http://www.codeconutrilife.com/Salud-Al-Dia/Estres.aspx El Estres
-
Danny
-
Danny
-
http://gpalabs.com/ Essay
-
http://www.swingset.com Swing Sets
-
http://www.k9stud.com Dogs For Sale
-
motorbikeinsurance3032
-
http://insurance.forumn1.com/life-insurance-quotes life insurance quotes
-
http://security-wire.com/01/how-to-remove-disk-optimizer-fake-security-program.html remove disk optimizer
-
http://www.hawaiiwego.com/ Vacation Rentals Big Island
-
http://gyrobowlv.com Gert23
-
Web Hosting India
-
waityou
-
Waityou
-
Guest
-
http://www.cleavageonline.com/triverex.html triverex