472,125 Members | 1,518 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,125 software developers and data experts.

jmail Attachment

3
Error: jmail.SMTPMail error '8000ffff'

Cannot open file L:/ems/mail/hi.html


Code:

<%
DIM strEmail, strFirstName, strLastName, strSubject, strComments, Mailer

strEmail = Request.Form("Email")
strFirstName = Request.Form("FirstName")
strLastName = Request.Form("LastName")
strSubject = Request.Form("Subject")
strComments = Request.Form("Comments")

Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.Logging = True
JMail.ServerAddress = "ltvsgroupware:25"
JMail.ContentType = "text/html"
JMail.AddRecipient "care_gd@lucastvs.co.in"
JMail.Sender = strEmail
JMail.Subject = strSubject
JMail.Body = strComments
JMail.AddAttachment "L:/ems/mail/hi.html"
JMail.Execute
Set JMail= Nothing
IF NOT JMail.Execute THEN
Response.Write( "ERROR MESSAGE: " & JMail.ErrorMessage & "<BR>" & vbcrlf )
Response.Write( "ERROR SOURCE: " & JMail.ErrorSource & "<BR>" & vbcrlf )
Response.Write( "LOG: <pre>" & JMail.Log & "</pre>" & vbcrlf )
ELSE
Response.Write "<blockquote>Your :<b>" & strSubject & "</b> Newsletter has been successfully sent to <b>" & intSubscribers & "</b> subscribers.</blockquote>"
END IF
%>


dont know what to do????

thanks in advance.
Jun 29 '07 #1
0 1712

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Lasse Edsvik | last post: by
reply views Thread by Lasse Edsvik | last post: by
reply views Thread by BDKiii | last post: by
2 posts views Thread by rourou | last post: by
8 posts views Thread by Mangler | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.