Re: Re: sending results by email
| From: | Wien) | Date: | Mon, 24 Feb 2003 11:40:05 +0000 |
| Subject: | Re: Re: sending results by email | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136866@lists.php.net to get a copy of this message | ||
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 = "your@email.address";
$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("webmaster@iscf.esisc.colombus.cu","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