Re: Problems with Mail

From: Date: Fri, 16 Feb 2001 22:01:59 +0000
Subject: Re: Problems with Mail
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-40884@lists.php.net to get a copy of this message
true, here it is. Have fun...sorry ^_^ <?php include "Nav.inc"; ?> <img src=images/feedback.jpg> <?php if(isSet($send) && ($send == 1)) { error_reporting(0); $Address = "webmaster@nulltechnology.com"; $Subject = "Feedback From NullTechnology.com"; $Message = str_replace("\n","<br>",$Message); $Mail = mail($Address, $Subject, "$Message \n From: $Return"); if($Mail == 1) { echo("<br><br><center><b><font size=+1 face=verdana>Your Mail Was Succesfully Sent!</b></center>"); exit; } else { echo("<br><br><center><b><font size=+1 face=verdana>There Was An Error While Processing Your Email</b></center>"); exit; } } else { if(IsSet($Message)) { $Message = str_replace("\n","<br>",$Message); $Message = str_replace(" ","&nbsp;",$Message); echo("<center><table><td>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<b>Message:</b><br>$Message<br>&nbsp;&nbsp;&nbsp; <b>Return Address:</b> $Return<br>If this is correct click on 'Send Feedback' to send the email, if not you can edit the message below</td></table></center>"); $Message = str_replace("<br>","\n",$Message); $Message = str_replace("&nbsp;"," ",$Message); } } ?> <table align=center> <td> <form action= <?php if(IsSet($Message)) echo("feedback.php"); else echo("feedback.php"); ?> method=post> Type Your Message Here:<br> <textarea name=Message cols=50 rows=10 wrap=yes><?php if(IsSet($Message)) echo($Message); else echo("Type your message in this box"); ?></textarea> <br>If You Want a Reply Type Your Email Address Here: &nbsp; &nbsp; <input name=Return value= <?php if(IsSet($Return)) echo("'$Return'>"); else echo(">"); ?> <input type=hidden name=send value= <?php if(IsSet($Message)) echo("'1'>"); else echo("'0'>"); ?> <br><br><center> <input type=submit value="Send Feedback!"><center> </form> </td> </table> </body> </html> ----- Original Message ----- From: "David Robley" <huntsman@hermes.nisu.flinders.edu.au> To: "Chris Anderson" <m1garand@ameritech.net>; "Chris Anderson" <chrisderson@ameritech.net>; "PHP" <php-general@lists.php.net> Sent: Tuesday, February 20, 2001 9:24 PM Subject: Re: [PHP] Problems with Mail > On Sat, 17 Feb 2001 05:40, Chris Anderson wrote: > > > > I use the php mail function in this file, but it only sends the first > > line of the text. Any ideas? I attached the file > > > The mailing list stripped your attachment - perhaps you could paste it > into your message? > > -- > David Robley | WEBMASTER & Mail List Admin > RESEARCH CENTRE FOR INJURY STUDIES | > http://www.nisu.flinders.edu.au/ > AusEinet | > http://auseinet.flinders.edu.au/ > Flinders University, ADELAIDE, SOUTH AUSTRALIA >

« previous php.general (#40884) next »