Forum Topic: PHP email script

(128 views • 3 replies)

This topic is 1 page long.

<< < > >>
None

lunaTredecim

Reply To Post Reply & Quote

Posted at: 5/4/09 11:44 PM

lunaTredecim DARK LEVEL 15

Sign-Up: 11/14/04

Posts: 23

So I'm redoing a website for an organization, and one of the things I want to add is a pseudo-blog function. If an email is sent from a specific email address, I want the contents of the email address to be written into the website. For example, boss@company.com sends an email to server@company.com saying "Our new product is out!" A php script runs so that the script checks the server@company.com inbox; since there is an unread message from boss@company.com, the php script updates html code on a web server.

My question is as follows: is it feasible?

BBS Signature

None

WoogieNoogie

Reply To Post Reply & Quote

Posted at: 5/5/09 12:58 AM

WoogieNoogie LIGHT LEVEL 14

Sign-Up: 06/26/05

Posts: 3,284

No. Not at all.


None

Deja-Vu

Reply To Post Reply & Quote

Posted at: 5/5/09 01:08 AM

Deja-Vu NEUTRAL LEVEL 25

Sign-Up: 05/03/02

Posts: 553

At 5/5/09 12:58 AM, WoogieNoogie wrote: No. Not at all.

Are you serious? Of course it's possible, I've done it multiple times in the past.

You have 2 ways you can go about doing this:

1) You can use PHP to connect to the inbox and check the messages, use the functions here as a starting point, there are quite a few examples to get you started: http://www.php.net/manual/en/ref.imap.ph p

2) You can pipe all incoming mail for a specific email address to a PHP application. I've done this before for unsubscribing from a newsletter. You can get some instructions here: http://wiki.jumba.com.au/wiki/Pipe_an_em ail_to_a_script

BBS Signature

None

yhar

Reply To Post Reply & Quote

Posted at: 5/5/09 03:29 AM

yhar NEUTRAL LEVEL 03

Sign-Up: 04/02/08

Posts: 1,774

There's quite a few prebuilt services that does this already, you could use one of them if you're not fussed about it being bespoke: wordpress has the option, there's also a hosted solution somewhere, but I forgot the name :(

THIS IS CITRICSQUID POSTING


All times are Eastern Standard Time (GMT -5) | Current Time: 11:02 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!