473,498 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Send Email with attachment using CDO.Message

1 New Member
<%@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
1 3112
RushShukla84
2 New Member
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

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

Similar topics

8
17031
by: John Brock | last post by:
I am currently using a VB.NET program to send out e-mails with plain text bodies (plus one attachment). The emails are being received as Rich Text messages (probably just my personal Outlook...
4
2345
by: Max | last post by:
hi I am using System.Web.Mail.MailMessage with System.Web.Mail.SmtpMail to send mail. now the my question is, Is it compulsory to add fields smtpauthenticate, sendusername and sendpassword...
3
4667
by: sentiboy | last post by:
I am using the following code for sending email through mapi in VS 2005 environment: Public objSession As New MSMAPI.MAPISession Public objMessage As New MSMAPI.MAPIMessages ...
3
9727
by: =?Utf-8?B?SHVnaA==?= | last post by:
Hi There, I use follow code to send email inside VB.NET 2005. It does not work well. Error message of "Failure sending email" would occue. However, email was sent out sometimes. I am confused...
1
9252
by: shil | last post by:
Hi, I'm using FW 2.0 to send an email with an attachment using System.Net.Mail class. If I try to attach a file from my file system, I could successfully send the eamil. But I need to generate a...
1
2709
by: zivon | last post by:
now for the bigger problam :) I know you pepole hate using OE for sending emails, but its user friendly and its needed in this case... I found on this forum, a code that sends email using OE...
1
2403
by: Chitu03 | last post by:
Hi I am already send a mail using Php with some attachement into it. My Problem is the attachement file is in my Database(mysql). I don't know how can i get from database and then add to my mail....
1
6816
by: maxxxxel | last post by:
Hi Can anyone help me with some asp code , I changed the code to use CDO.message instead of the old cdont.sys to send mail from a ASP webpage which works fine. Our problem is that when we send...
1
6531
by: sxwend | last post by:
I am trying to use the following post results (http://www.thescripts.com/forum/thread189759.html) and add another requirement. I need to send the results to just the email addresses that the query...
1
3185
by: deepaks85 | last post by:
Dear All, I want to send some data through a form with Multiple attachment in an HTML Format. I have tried it but it is not working for me. I am able to send data without attachment but with the...
0
7121
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7197
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7375
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4899
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1411
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.