Interview Question in SQL Server Triggers
Interview Question :: Create mail server using asp
i'm IT student, still new in asp. i'm now developing a system using asp and sql server2000. one of the system's function is:
the system should be able to trigger email automatically to the staff to inform them about something.
how can i do this?using SMTP? i refer to thiese source, but still can't function. it appear server error code 500...
html code:
<form method="POST" action="tizagEmail.asp">
To <input type="text" name="To"/>
From <input type="text" name="From"/>
Subject <input type="text" name="Subject"/>
Body <textarea name="Body" rows="5" cols="20" wrap="physical" > </textarea>
<input type="submit" /></form>
asp code:
<%
Dim mail
Set mail = Server.CreateObject("CDO.Message")
mail.To = Request.Form("To")
mail.From = Request.Form("From")
mail.Subject = Request.Form("Subject")
mail.TextBody = Request.Form("Body")
mail.Send()
Response.Write("Mail Sent!")
'Destroy the mail object!
Set mail = nothing
%>
anyone please help me, thx a lot

Loading ...