Hi guys,
I finally found an example but although it seems fine but it doesn't work and when you click on submit it gets page not found, but URL shows "
JmailUploadAutoFormProcess.asp" has been
http://webdev.stecs.com/contact/Jmai...ormProcess.asp
ant idea what part I am missing?
Thanks,
Elham
-------------------Form------------------------
<%
Set upload = Server.CreateObject ( "w3.Upload" )
Set JMail = Server.CreateObject("JMail.SMTPMail")
' Check for attachments and add them to the email
' all other form elements are added to the body of the email
for i = 0 to upload.form.count-1
if upload.form(i).isFile then
set attachment = upload.Form(i)
JMail.AddCustomAttachment attachment.filename, attachment.item
else
JMail.appendtext(upload.form(i).name & ": " & upload.form(i).item & vbcrlf)
end if
next
' Get the form variables, using the upload object
Name = upload.Form("name")
SenderEmail = upload.Form("email")
Subject = "Regarding " & upload.Form ("subject")
Recipient = upload.Form("recipient")
' Below you should enter your own SMTP- server
JMail.ServerAddress = "stecs-exchange.stecs.com"
JMail.Sender = Senderemail
JMail.Subject = Subject
JMail.AddRecipient Recipient
JMail.Priority = 3
JMail.Execute
%>
<html>
<head>
<title>Dimac</title>
</head>
<body>
<BR>
<BR>
<p align="center"><font face="Arial, geneva" size="5">
eMail sent </font></p>
<center>
<font face="Arial, geneva" size="3">
Your email has been sent to <%= Recipient %><br>
<BR>
<BR>
<BR>
</font>
</center>
</body>
</html>