<%
if request("submitted")="1" then
' Get the form data
name = Request.Form("mail")
senderEmail = "servis@neo-co.com"
subject="servis 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 "servis@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
%>
<%
else
end if
%>
Neo d.o.o. – Servis
Tel. +385 1 4834951, 10-17 sati radnim danima
GSM +385 91 7208337, 9-21 sati, radnim danima, vikendima i praznicima
|