Re: email formatting
| From: | Marek Kilimajer | Date: | Wed, 02 Jun 2004 18:16:49 +0000 |
| Subject: | Re: email formatting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187468@lists.php.net to get a copy of this message | ||
BigMark wrote:
Is it possible to have this code changed easily to make the output run horizontally instead of vertically. example of current output to email below codeI'm not sure what you mean by "horizontaly". Do you mean one long line? Provide an example of what you want to get. And we don't know where and how $selections variable is set.
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////// //email selections to all users $sql = "SELECT email_address FROM Users"; $result = mysql_query($sql); while ($myrow = mysql_fetch_array($result)) { $email = $myrow['email_address']; $subject = "Mark's Footy Tipping Competition"; $message = "Hi, Round $Round is now closed. Selections were: $selections Thanks! Mark This is an automated response, please do not reply!"; mail($email, $subject, $message, "From: Mark<$fromemailaddress>\nX-Mailer: PHP/" . phpversion()); } //////////////////////////////////////////////////////////////////////////// /////////////////////////////////////// outputs like this Hi, Round 10 is now closed. Selections were: Glen Gosnay - Game 1 Essendon Glen Gosnay - Game 2 Hawthorn Glen Gosnay - Game 3 West Coast Glen Gosnay - Game 4 Kangaroos