the mail() function
Moderators: macek, egami, gesf
- New php-forum User
- Posts: 35
- Joined: Thu Oct 27, 2011 1:24 pm
I would just do it this way.
Code: Select all
$message1 = "";
while($menu_info = mysql_fetch_array( $menu )) //loops to collect the data
$message1 .= $menu_info['track'];
$message1 .= $menu_info['artist'];
$message1 .= $menu_info['requests'];
//$message1 = "echo '<pre>'.print_r($track, true) .'</pre>';"
$sent = mail($to, $subject, $message1);
For a better understanding of the mail function, I would recommend you read my post:
Hope that helps.
- php-forum GURU
- Posts: 2196
- Joined: Wed Oct 06, 2010 11:19 am
- Location: Happy Valley, UT
and considering that you are trying to send HTML tags over the mail function, you may want to check out the php.net/mail manual page. You're missing the appropriate mime headers.
Who is online
Users browsing this forum: No registered users and 1 guest