<?php
if(isset($_POST['email'])){
$to = "mail@mail.com";
$subject = "request for restock Alert";
$body = "Artist:";
$body .= "Title:";
$body .= "Label:";
mail($to, $subject, $body);
}
?>
That will work, you didn't have a { or } and the $body was overwritten. Of course you don't have any information in there.
I would think you'd need some hidden items in the form to send along and you'd probably like to have the FROM filed and reply to fields filled in so you need to send headers
<?php
if(isset($_POST['email'])){
$to = "mail@mail.com";
$header="From:".$_POST['email']."\n\r";
$header.="Reply-To:".$_POST['email']."\n\r";
$header="To:mail@mail.com\n\r";
$subject = "request for restock Alert";
$body = "Artist:".$_POST['artist']."\n";
$body .= "Title:".$_POST['title']."\n";
$body .= "Label:".$_POST['label']."\n";
mail($to, $subject, $body,$header);
}
?>