did you set up the correct email address and smtp server in you php.ini
configu file?
First try to send mails without bells and whistels, and when you can do
that fine, then go on and implement that formular feature.

<?php

$toaddr = "[EMAIL PROTECTED]";
$subject = "Testmail";
$mailmessage = "This is a mail, sent via php and the HOPEFULLY ";
$mailmessage .= "correct set up mail host in php.ini";

mail ($toaddr, $subject, $mailmessage) or die ("Could not send message to
$toaddr, $subject");
print "mail sent to $username $toaddr";
?>
>
>
>
>
> HEY PAL  i been tri that but its send it to me this
>
> this is the source
>
>
> <form action="http://www2/LUIS/mai.php3"; method="POST">
>        <TEXTAREA NAME="" ROWS="10" COLS="26" width ="15">
>       </TEXTAREA> <input type="submit" name="Submit" value="Enviar">
>                      <table width="100%" border="0" height="27">
>                        <tr>
>                          <td><input type="checkbox" name="checkbox2"
> value="checkbox">
>                            no </td>
>                        </tr>
>                      </table>
> </form>
> **************************************************
>
>
> <?
>
> mail("[EMAIL PROTECTED]","Subject:sendingresultsbyemail","MyT
> ext:\n$MyText\ncheckbox2:$checbox2");
>
> ?>
> *****************************************************
>
>
>
> Warning: Unknown error in e:\usuarios\sites\hwt\luis\mai.php3 on line 18
>
>
> ANY SUBJEST ABOUT THIS ERROR ???
>
>


-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to