Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - send mail error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

send mail error

 Post Reply Post Reply Page  12>
Author
kim6222 View Drop Down
Newbie
Newbie
Avatar

Joined: 22 April 2005
Location: Malaysia
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote kim6222 Quote  Post ReplyReply Direct Link To This Post Topic: send mail error
    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 = "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

Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
kim6222 View Drop Down
Newbie
Newbie
Avatar

Joined: 22 April 2005
Location: Malaysia
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote kim6222 Quote  Post ReplyReply Direct Link To This Post 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>
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kim6222 View Drop Down
Newbie
Newbie
Avatar

Joined: 22 April 2005
Location: Malaysia
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote kim6222 Quote  Post ReplyReply Direct Link To This Post 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 = "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"
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
kim6222 View Drop Down
Newbie
Newbie
Avatar

Joined: 22 April 2005
Location: Malaysia
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote kim6222 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kim6222 View Drop Down
Newbie
Newbie
Avatar

Joined: 22 April 2005
Location: Malaysia
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote kim6222 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.