to Christoph Christ Re: [PHP] Re: sending results by email
| From: | Luis A | Date: | Mon, 24 Feb 2003 15:33:49 +0000 |
| Subject: | to Christoph Christ Re: [PHP] Re: sending results by email | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136919@lists.php.net to get a copy of this message | ||
and how can i do that??? mai you please___??
:)
----- Original Message -----
From: "Christoph Christ (Wien)" <christoph@chcnet.net>
To: "Luis A" <webmaster@iscf.esisc.colombus.cu>
Cc: <php-general@lists.php.net>
Sent: Monday, February 24, 2003 6:40 AM
Subject: Re: [PHP] Re: sending results by email
> 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
>
>