Ah.. bpat! you're the master... hehe.. I've been asking questions in any php forums without answer.
$message = nl2br($message) is what i need. Thx...
But I still have a question... First I show you my code for the send.php.
First the html code for the form which will be sent to emails
<form method="POST" action="<?php echo($PHP_SELF); ?>">
<h3>News </h3>
<p>Select Mailing List:<br>
<select size="1" name="list_choice">
<option selected>emails.txt</option>
</select></p>
<p>Title:<br>
<input type="text" name="subject_choice" size="50"></p>
<p>Message:<br>
<textarea rows="6" name="message_choice" cols="42"></textarea></p>
<p><input type="submit" value="Send Mail" name="sendmail"><input type="reset" value="Reset" name="B2"></p>
</form>And then below it, the code for the email's format
$header = "From: $from_mail; \n";
if ($sendmail == "Send Mail"){
print ("<H3>Sending news to emails...</H3><P>");
$file_handle = fopen($list_choice, "r") or die("Couldn't open mailing list..");
while (!feof($file_handle)) {
set_time_limit(0);
$address = fgets($file_handle, 1024);
mail("$address", stripslashes($subject_choice),
stripslashes($message_choice), $header)I add $header .= "Content-type: text/html; charset=iso-8859-1\r\n"; and $message_choice = nl2br($message_choice);
Now I don't need to add <br> for every new line. However, I still need to type <img src=\"
http://www.mysite.com/images/welcome_image.jpg\" /> in the message field everytime I want to send an email.
Is there anyway to set it in the $message_choice, so that I don't need to insert it for every new message?
Thank you,
ayok