Print Page | Close Window

send mail error

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=14790
Printed Date: 30 March 2026 at 6:55am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: send mail error
Posted By: kim6222
Subject: send mail error
Date Posted: 22 April 2005 at 5:51am
hi every1 i really need ur help....i dont know where's the error from
my situation is "i copy the send email coding from this website .but is doesnt work on my side..."
please help me
thanks
 
coding:
 
<%
Dim objCDOMail
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = request.form("email")
objCDOMail.To = " mailto:jdy1159@yaho.com - jdy1159@yaho.com "
objCDOMail.Subject = "happy"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = request.form("name")
objCDOMail.Importance = 1
objCDOMail.Send
Set objCDOMail = Nothing
%>
 
 
error message
 
error '80070003'

The system cannot find the path specified.

/ku/streamy/streamys/kim6222.asp, line 12



-------------
kim6222



Replies:
Posted By: dj air
Date Posted: 22 April 2005 at 6:10am
the error indecates that a file that can not be found.

i dont think its to do with the above pasted code.. can you paste whats from line 10 - line 14 or from white line to white line .. as long as it has line 12.

also i think thats ment to be yahoo.com not yaho.com?


Posted By: kim6222
Date Posted: 22 April 2005 at 6:30am

i am sure the error is not from ("yaho.com")

 
my form coding :
<SCRIPT LANGUAGE="JavaScript">
<!--
function validate(form){
if (form.name.value==""){
alert("PLEASE ENTER YOUR NAME.");
form.name.focus();
return(false);
}
if (form.contact.value==""){
alert("PLEASE ENTER CONTACT NUMBER.");
form.contact.focus();
return(false);
}
var checkOK = "0123456789 ";
  var checkStr = form.contact.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("CONTACT NUMBER MUST BE INTEGER TYPE!!!");
    form.contact.focus();
    return (false);
  }
{
alert("Your email is sending now...");
}
 
return(true);
}
//-->
</SCRIPT>
<style type="text/css">
<!--
.style1 { color: #FFFFFF;
 font-family: Verdana;
 font-size: 15px;
}
body {
 background-image: url();
}
.style8 {font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; }
.style10 {
 font-family: Arial, Helvetica, sans-serif;
 font-size: 10px;
 color: #FFFFFF;
}
.style11 {
 color: #FFFFFF;
 font-size: 10px;
}
-->
</style>
<table width="650" border="0" cellpadding="0" cellspacing="0" background="support.jpg">
  <tr>
    <th width="770" align="left" scope="col">&nbsp;</th>
  </tr>
  <tr>
    <th scope="row"><hr></th>
  </tr>
  <tr>
    <th scope="row"><form name="form" method="post" action="kim6222.asp" onsubmit="return validate(this)" language="JavaScript">
      <table width="650" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <th width="38" scope="row">&nbsp;</th>
          <td width="201" align="right"><span class="style8">Your Name :</span></td>
          <td width="270"><input name="name" type="text" size="40"></td>
          <td width="141">&nbsp;</td>
        </tr>
        <tr>
          <th scope="row">&nbsp;</th>
          <td align="right"><span class="style8">Contact No. : </span></td>
          <td><input name="contact" type="text" size="40"></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <th scope="row">&nbsp;</th>
          <td align="right"><span class="style8">Email : </span></td>
          <td><input name="email" type="text" size="40"></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <th rowspan="2" scope="row">&nbsp;</th>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><input type="submit" name="Submit" value="Submit">            </td>
          <td><p class="style10"><br>
              </p>
            </td>
        </tr>
      </table>
    </form></th>
  </tr>
</table>


-------------
kim6222


Posted By: dj air
Date Posted: 22 April 2005 at 6:36am
i dont think it is the address either.

can you post the content of the file kim6222.asp

i need to see the asp code that is used to send the email as that is where the problem lies..

also make sure that the path to the file is correct. at present the above form posts to the same folder to a file called kim6222.asp


Posted By: kim6222
Date Posted: 22 April 2005 at 6:40am
file kim6222.asp

<%

Dim objCDOMail
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = request.form("email")
objCDOMail.To = " mailto:jdy1159@yaho.com - jdy1159@yaho.com "
objCDOMail.Subject = "happy"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = request.form("name")
objCDOMail.Importance = 1
objCDOMail.Send
Set objCDOMail = Nothing
%>

wat's this mean
"also make sure that the path to the file is correct"


-------------
kim6222


Posted By: dj air
Date Posted: 22 April 2005 at 6:49am
ok sorry,

by that l;ine i mean when the user submits the form make sure the path it goes to is correct .. with what you have within the form, make sure kim622.asp is within the same folder.

Line 12 which says there is an error is on the .send line.

make sure you have the CDONTS component on your server, and there is no issues with your mail server or email settings.


Posted By: kim6222
Date Posted: 22 April 2005 at 11:22pm
i know what's the problem.
i didnt set the CDONTS in my mail server.
so can you teach me how to set it into my mail server
thanks


-------------
kim6222


Posted By: kim6222
Date Posted: 24 April 2005 at 10:50pm
I would like to know the javascript code to send mail. I dont want to use the html tag <mailto> because it opens the default mail application like Outlook express et... Please help me
thanks


-------------
kim6222


Posted By: C.P.A.
Date Posted: 26 April 2005 at 10:31am
Javascript works client side and can therefore not send emails, however, you might see what email object is used at your server to work with the proper object, for instance ASPmailer of whatsoever ...

When you know that you can work with the proper code and send the emails.

-------------
C.P.A. » The more you find out about the world, the more opportunities warmly welcome you.


Posted By: dpyers
Date Posted: 26 April 2005 at 1:53pm
Download, inatall, and run the component test script from this url http://www.pensaworks.com/prg_com.asp - http://www.pensaworks.com/prg_com.asp to find out what email components you have available.


-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net