maxvee8
09-03-2009, 12:23 AM
Ok ive baffled my self for some reason, as in the title How do i include array data in php mail?
The Code i have:
I have stored post ids in a variable $ids array:
$ids[]= $row['ID'];
i have then created a foreach ( i dont actually want to out put this data as it is meant to be included in the mail message)
foreach ($ids as $expired){
echo '<a href="http://www.domain.com?s='.$expired.'">Link Text</a><br />';
}
and the mail code:
mail("info@domain.com","email subject","email body","Content-Type: text/html; charset=iso-8859-1\n");
So how do i list the contents of the array $ids[] in the mail message / email body i might be over thinking something!? any help is apreciated.
The Code i have:
I have stored post ids in a variable $ids array:
$ids[]= $row['ID'];
i have then created a foreach ( i dont actually want to out put this data as it is meant to be included in the mail message)
foreach ($ids as $expired){
echo '<a href="http://www.domain.com?s='.$expired.'">Link Text</a><br />';
}
and the mail code:
mail("info@domain.com","email subject","email body","Content-Type: text/html; charset=iso-8859-1\n");
So how do i list the contents of the array $ids[] in the mail message / email body i might be over thinking something!? any help is apreciated.