Quote:
Originally Posted by wnw No...that solution is different.....please help me... |
Open /submit.php and look for function do_submit3().
Add the following code right before the header("Location: " . getmyurl('upcoming')); within this function
Code:
$thisauthor = $db->get_var("SELECT user_login FROM " .table_users ." WHERE user_id = $linkres->author;");
$subject= 'You have a new story: "' . $linkres->title . '"';
$message = "The following user '". $thisauthor . "' submitted a new story '" . $linkres->title . "'" . "\r\n\r\nHere is the link to the story: " . my_base_url . my_pligg_base . "/story.php?title=". $linkres->title_url;
$headers = "From: admin@yoursite.com" . "\r\nReply-To:admin@yoursite.com " . "\r\nX-Priority: 1\r\n";
$to="admin@yoursite.com";
@mail($to, $subject, $message, $headers); I tried it and it worked.