By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,480 Members | 1,146 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,480 IT Pros & Developers. It's quick & easy.

Send Email with attachment using CDO.Message

P: 1
<%@LANGUAGE="VBSCRIPT"%>
<%
nam=request.Form("name")
mail=request.Form("email")
phoneres=request.Form("res")
phonembl=request.Form("mobile")
adrs=request.Form("address")
qul=request.Form("quali")
aply=request.Form("apply")
expr=request.form("exper")
abt=request.form("about")
atch=request.form("attach")

mailx="<table cellpadding=5 cellspacing=5><tr><td colspan=2 align=center><b>Very Impressive - </b></td></tr>"
mailx=mailx&"<tr><td><b> Name :</b></td><td>" & nam & "</td></tr>"
mailx=mailx&"<tr><td><b> Email :</b></td><td>" & mail & "</td></tr>"
mailx=mailx&"<tr><td><b>Phone :</b></td><td>" & phoneres & "</td></tr>"
mailx=mailx&"<tr><td><b> FeedBack :</b></td><td>" & phonembl & "</td></tr>"
mailx=mailx&"<tr><td><b> Address :</b></td><td>" & adrs & "</td></tr>"
mailx=mailx&"<tr><td><b> Qualification :</b></td><td>" & qul & "</td></tr>"
mailx=mailx&"<tr><td><b> Applied For:</b></td><td>" & aply & "</td></tr>"
mailx=mailx&"<tr><td><b> Experience :</b></td><td>" & expr & "</td></tr>"
mailx=mailx&"<tr><td><b> About yourself :</b></td><td>" & abt & "</td></tr>"
mailx=mailx & "</table>"

dim spMail
set spMail=Server.CreateObject("CDO.Message")
spMail.from=mail
spMail.to="xxx@yahoo.co.in"
spMail.replyto=mail
spMail.subject="Message from- " & nam & " regarding a site"
spMail.HTMLBody=mailx
spMail.AddAttachment atch
spMail.send
response.Write("Success")
set spMail=Nothing
%>


I have used the above pgm. But the error displays with," System could not found the path". How can I solve it?
Jun 13 '07 #1
Share this Question
Share on Google+
1 Reply


P: 2
For that u might check ur IIS upload Setting there is settings for the Maximum upload so check the settings for that .................

see the link given below ...........

http://www.banmanpro.com/support2/File_Upload_limits.asp



<%@LANGUAGE="VBSCRIPT"%>
<%
nam=request.Form("name")
mail=request.Form("email")
phoneres=request.Form("res")
phonembl=request.Form("mobile")
adrs=request.Form("address")
qul=request.Form("quali")
aply=request.Form("apply")
expr=request.form("exper")
abt=request.form("about")
atch=request.form("attach")

mailx="<table cellpadding=5 cellspacing=5><tr><td colspan=2 align=center><b>Very Impressive - </b></td></tr>"
mailx=mailx&"<tr><td><b> Name :</b></td><td>" & nam & "</td></tr>"
mailx=mailx&"<tr><td><b> Email :</b></td><td>" & mail & "</td></tr>"
mailx=mailx&"<tr><td><b>Phone :</b></td><td>" & phoneres & "</td></tr>"
mailx=mailx&"<tr><td><b> FeedBack :</b></td><td>" & phonembl & "</td></tr>"
mailx=mailx&"<tr><td><b> Address :</b></td><td>" & adrs & "</td></tr>"
mailx=mailx&"<tr><td><b> Qualification :</b></td><td>" & qul & "</td></tr>"
mailx=mailx&"<tr><td><b> Applied For:</b></td><td>" & aply & "</td></tr>"
mailx=mailx&"<tr><td><b> Experience :</b></td><td>" & expr & "</td></tr>"
mailx=mailx&"<tr><td><b> About yourself :</b></td><td>" & abt & "</td></tr>"
mailx=mailx & "</table>"

dim spMail
set spMail=Server.CreateObject("CDO.Message")
spMail.from=mail
spMail.to="xxx@yahoo.co.in"
spMail.replyto=mail
spMail.subject="Message from- " & nam & " regarding a site"
spMail.HTMLBody=mailx
spMail.AddAttachment atch
spMail.send
response.Write("Success")
set spMail=Nothing
%>


I have used the above pgm. But the error displays with," System could not found the path". How can I solve it?
Sep 5 '07 #2

Post your reply

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