by "Jim Michaels" <jmichae3@[EMAIL PROTECTED]
>
Feb 4, 2006 at 12:54 AM
"Thomas Troutwine" <ttofohio@[EMAIL PROTECTED]
> wrote in message
news:nPZvf.6520$M%4.3024@[EMAIL PROTECTED]
> Thanks Dave for the excellent source.
>
> "David Dorward" <dorward@[EMAIL PROTECTED]
> wrote in message
> news:dpmcm7$bid$1$8302bc10@[EMAIL PROTECTED]
>> Thomas Troutwine wrote:
>>
>> > Hi. I can't seem to get the code right to have the submit button send
> form
>> > results to my e-mail address.
>> > Code at beginning of form:
>> > <FORM METHOD=POST ACTION="mailto:ttofohio@[EMAIL PROTECTED]
" >
>>
>> http://www.isolani.co.uk/articles/mailto.html
>>
if you are thinking of using PHP, combine these two:
http://www.phpcl*****.org/browse/package/13.html
(weak address check)
or this (strict)
http://pear.php.net/package/Mail/docs/1.1.3/Mail/Mail_RFC822.html
An alternative to the mailparse_rfc822_parse_addresses() function is
Mail_RFC822::parseAddressList() from Pear:
http://pear.php.net/manual/en/package.mail.mail.php
It parses the string and returns a structured tree of data. Returns a
pear_error object if the string is not valid.
Example:
require_once "PEAR.php";
require_once "Mail/RFC822.php";
$addr= "Hi <hi@[EMAIL PROTECTED]
>";
$res= Mail_RFC822::parseAddressList($addr);
if (PEAR::isError($res)) die("NOT VALID: " . $res->getMessage() . "\n");
echo "OK. Data:\n";
>> --
>> David Dorward <http://blog.dorward.me.uk/>
>> <http://dorward.me.uk/>
>> Home is where the ~/.bashrc is
>
>