469,594 Members | 2,220 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,594 developers. It's quick & easy.

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 1564

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 suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.