Click to See Complete Forum and Search --> : RE: looking for a script to handle e-cards
robsta117
09-27-2003, 09:55 PM
Hello -
I'm not sure if I'm posting this in the correct forum as I'm new to server-side programming.
I'm looking an easy-to-implement script to handle the sending and parsing of e-cards.
I don't want to archive the e-card on my web server - I'd prefer to have the card (an image with a simple greeting) sent to the recipient's e-mail inbox.
Is this possible? php?
All and any suggestions appreciated.
Thanks!
Robsta
:)
Yes, it is possible with PHP. Wouldn't be overly hard, just need to parse the users input and turn it into a HTML formatted email. If you are looking for a pre-built solution, try looking at http://php.resourceindex.com/ or http://www.hotscripts.com/. If they don't have anything and you are unable to do it yourself, you may need to hire a programmer (http://www.infinitypages.com/programming.php).
robsta117
09-28-2003, 11:20 AM
Thanks for the reply - I checked hotscripts and couldn't find anything - I'll look into resourceindex later and see what they've got.
I've been working with a php form mail script that I've been able to modify in order to parse assorted forms on my site - it's all plain text.
Would it be possible to modify a form mail script to handle html formatted mail?
If you'd like to view the script I've been using, please let me know and I can post or PM it to you.
Thanks -
Robsta
:)
To send HTML formatted email you just need to set the Content-type header, something like this:
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";and then remember to add that to your mail (http://www.php.net/mail) function...
robsta117
09-28-2003, 05:35 PM
Thanks for the code snippets and for the link to php.net - didn't know about this resource. It looks like a great place to find info.
All the best,
Robsta
:)
Yes, make friends with php.net, and you'll do well... :)