<%
if request("submitted")="1" then
' Get the form data
name = Request.Form("mail")
senderEmail = "info@neo-co.com"
subject="web kontakt - www.neo-co.com"
' Create the JMail message Object
set msg = Server.CreateObject("JMail.SMTPMail")
msg.charset="windows-1250"
msg.ContentType = "text/html; charset=windows-1250"
' Set logging to true to ease any potential debugging
' And set silent to true as we wish to handle our errors ourself
msg.Logging = true
msg.silent = true
' Enter the sender data
msg.sender = senderEmail
msg.senderName = name
' Note that as addRecipient is method and not
' a property, we do not use an equals ( = ) sign
msg.AddRecipient "info@neo-co.com"
'msg.AddRecipient "maugus@100posto.net"
' The subject of the message
msg.Subject = subject
' And the body
msg.body = Request.Form("message")
' Now send the message, using the indicated mailserver
%>
<%
if msg.execute then
%>Vaša je poruka zaprimljena!<%
else
%>Došlo je do greške! Pokušajte ponovno ili kontaktirajte administratora!<%
end if
%>