how do i send email to ppl using asp.net? coz i want to use it in my feed back form! Currently i am using PHP which was given by someone from support department too, but now i'm trying to convert all my pages to aspx! the codes for PHP is
<?
if(trim($name)!="" && trim($email)!="" && trim($comments)!="")
{
$recipient = "
[email protected],
[email protected],
[email protected],
[email protected],
[email protected]";
$email_title = "Homepage Advice or Suggestion";
$email_msg = "Hello Hao Zhi,"."\r\n"."\r\n";
$email_msg .= "Below are my comments :"."\r\n"."\r\n";
$email_msg .= trim($comments);
$email_others = "From: ".$name." <".$email.">"."\r\n";
if(mail($recipient,$email_title,$email_msg,$email_others))
{
echo "Thank you. Your comment is successfully sent to my mailbox. Click <a href='http://www.leonghz.com'>here</a> to continue";
}
else
{
echo "Error on sending email. Please contact adminsitrator";
}
}
?>
so, how do i change into asp.net code?
thansk in advance! bye!
All The Best :)