Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 20th, 2003, 08:49 AM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default NEED HELP

Greetings,
 
Old October 20th, 2003, 11:42 AM
Registered User
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It sould be possible to run CDONTS on a server wich has CDO. The differenc is that they use Exchange as a SMTP insted of IIS SMTP (or some component.)

I live for scripting...
 
Old October 22nd, 2003, 01:05 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

First you want to write this code
contact.htm
''''''''''''''''''''''''''
<script LANGUAGE="javascript">
<!--
function submiting()
            {
            if(document.form1.txtname.value=="")
            {
            alert("Please Enter Contact Name")
            document.form1.txtname.focus()
            return
            }
else if(document.form1.txtpost.value=="")
            {
            alert("Please Enter Post Code")
            document.form1.txtpost.focus()
            return
            }
else if(document.form1.txtemail.value=="")
            {
            alert("Please Enter Email Address ")
            document.form1.txtemail.focus()
            return
            }
            else if (document.form1.txtemail.value!= "")
  {
  var mail1=document.form1.txtemail.value;
  var i1 = mail1.indexOf('@');
  var i2 = mail1.lastIndexOf('@');
  var i3 = mail1.indexOf('.');
  var i4 =(i1-i3);

  if (mail1.length<=5)
  {
  alert("Your E-mail address is too small");
  document.form1.txtemail.focus();
  return ;
 }

    if(i1==-1)
 {
  alert(" E-mail address must have a '@' ");
  document.form1.txtemail.focus();
 return ;
  }
  if(i1<2)
 {
  alert(" E-mail address invalid ");
  document.form1.txtemail.focus();
 return;
   }

    if(i3==-1)
  {
  alert(" E-mail address must have a '.' ");
  document.form1.txtemail.focus();
   document.form1.txtemail.focus();
 return
  }
 ch = mail1.charAt(mail1.length-1);
 if (ch==".")
  {
    alert(" E-mail address cannot contain '.' in end");
    document.form1.txtemail.focus();
    return
 }
if(i1!=i2)
{
 alert(" E-mail address cannot contain two '@' signs");
 document.form1.txtemail.focus();
 return
  }
 arr=mail1.split("@");
 var i5=arr[1].indexOf('.');
 if(i5==-1)
 {
 alert(" E-mail address must have a '.' after @ sign ");
 document.form1.txtemail.focus();
 return
 }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw xyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎà ÃÃ‘Ã’Ã“Ã”Ã•Ã–Ã˜Ã™ÃšÃ›ÃœÃÃžÃŸÃ Ã¡Ã¢Ã£Ã¤Ã¥Ã¦Ã§Ã¨Ã ©ÃªÃ«Ã¬Ã­Ã®Ã¯Ã°Ã±Ã²Ã³Ã´ÃµÃ¶Ã¸Ã¹ÃºÃ»Ã¼Ã½Ã¾012345678 9-_.@";
  var checkStr = document.form1.txtemail.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("Please enter only letter, digit and \"@\" characters in the \"E-mail\" field.");
    document.form1.txtemail.focus();
    return
  }
  }
else if(document.form1.txtphone.value=="")
{
alert("Please Enter Telephone Number")
document.form1.txtphone.focus();
return
}
document.form1.action="contactus.asp"
document.form1.submit();
}
//-->
</script>
<script language="JavaScript">
function fdiv1 (x)
{
var text
text="d" + x
var st1=""
if(document.getElementById(x).innerHTML=="")
{
st1="<img border='0' src='images/saright.gif' width='10' height='10'>"
document.getElementById(x).innerHTML =st1
document.form1.elements[text].value=1

}
else
{
st1=""
document.getElementById(x).innerHTML =st1
document.form1.elements[text].value=""
}
}
</script>
<form name="form1">
 <table width="645" border="0" cellpadding="0" cellspacing="0" class="smalltxt5">
        <tr>
          <td width="50" valign="top">&nbsp;</td>
          <td width="290" valign="top" class="smalltxt5"><b>Contact Information</b></td>
          <td width="10" valign="top"></td>
          <td width="290" valign="top" colspan="3"></td>
          <td width="10" valign="top"></td>
        </tr>
        <tr>
          <td width="50" valign="top"></td>
          <td width="290" valign="top"></td>
          <td width="10" valign="top"></td>
          <td width="290" valign="top" colspan="3"></td>
          <td width="10" valign="top"></td>
        </tr>
        <tr>
          <td width="50" valign="top"></td>
          <td width="290" valign="top" class="smalltxt5">Contact Name (Req'd)</td>
          <td width="10" valign="top">:</td>
          <td width="290" valign="top" colspan="3"><input name="txtname" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; BACKGROUND-COLOR: transparent"
           ></td>
          <td width="10" valign="top"></td>
        </tr>
        <tr>
          <td width="50" valign="top"></td>
          <td width="290" valign="top" class="smalltxt5">Company Name</td>
          <td width="10" valign="top">:</td>
          <td width="290" valign="top" colspan="3"><input name="txtcompany" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; BACKGROUND-COLOR: transparent"
           ></td>
          <td width="10" valign="top"></td>
        </tr>
        <tr>
          <td width="50" valign="top"></td>
          <td width="290" valign="top" class="smalltxt5">Address 1</td>
          <td width="10" valign="top">:</td>
          <td width="290" valign="top" colspan="3"><input name="txtaddress1" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; BACKGROUND-COLOR: transparent"
           ></td>
          <td width="10" valign="top"></td>
        </tr>
        <tr>
          <td width="50" valign="top"></td>
          <td width="290" valign="top" class="smalltxt5">Address 2</td>
          <td width="10" valign="top">:</td>
          <td width="290" valign="top" colspan="3"><input name="txtaddress2" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; BACKGROUND-COLOR: transparent"
           ></td>
          <td width="10" valign="top"></td>
        </tr>
        <tr>
          <td width="50" valign="top"></td>
          <td width="290" valign="top" class="smalltxt5">City</td>
          <td width="10" valign="top">:</td>
          <td width="290" valign="top" colspan="3"><input name="txtcity" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; BACKGROUND-COLOR: transparent"
           ></td>
          <td width="10" valign="top"></td>
        </tr>
        <tr>
          <td width="50" valign="top"></td>
          <td width="290" valign="top" class="smalltxt5">County</td>
          <td width="10" valign="top">:</td>
          <td width="290" valign="top" colspan="3"><input name="txtcounty" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; BACKGROUND-COLOR: transparent"
           ></td>
          <td width="10" valign="top"></td>
        </tr>
        <tr>
          <td width="50" valign="top"></td>
          <td width="290" valign="top" class="smalltxt5">Post Code (Req'd)</td>
          <td width="10" valign="top">:</td>
          <td width="290" valign="top" colspan="3"><input name="txtpost" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; BACKGROUND-COLOR: transparent"
           ></td>
          <td width="10" valign="top"></td>
        </tr>
        <tr>
          <td width="50" valign="top"></td>
          <td width="290" valign="top" class="smalltxt5">Email Address (Req'd)</td>
          <td width="10" valign="top">:</td>
          <td width="290" valign="top" colspan="3"><input name="txtemail" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; BACKGROUND-COLOR: transparent"
           >
          </td>
          <td width="10" valign="top"></td>
        </tr>
        <tr>
          <td width="50" valign="top"></td>
          <td width="290" valign="top" class="smalltxt5">Telephone (Req'd)</td>
          <td width="10" valign="top">:</td>
          <td width="290" valign="top" colspan="3"><input name="txtphone" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; BACKGROUND-COLOR: transparent"
           ></td>
          <td width="10" valign="top"></td>
        </tr>
        <tr>
          <td width="50" valign="top"></td>
          <td width="290" valign="top" class="smalltxt5">I prefer to be contacted</td>
          <td width="10" valign="top">:</td>
          <td width="290" valign="top" colspan="3">
          <table border="0" width="100%" cellspacing="0" cellpadding="0" class="smalltxt5">
            <tr>
           <td width="3%" align="middle" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid" onclick="fdiv1('div1')" height="19"><div class="smalltxt" id="div1" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; VISIBILITY: visible; BORDER-LEFT: medium none; WIDTH: 20px; BORDER-BOTTOM: medium none; BACKGROUND-COLOR: transparent; layer-background-color: transparent"></div></td>
           <td width="4%"></td>
           <td width="43%" class="smalltxt5">By Phone</td>
              <td width="3%" align="middle" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid" onclick="fdiv1('div4')" height="19"><div class="smalltxt" id="div4" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; VISIBILITY: visible; BORDER-LEFT: medium none; WIDTH: 20px; BORDER-BOTTOM: medium none; BACKGROUND-COLOR: transparent; layer-background-color: transparent"></div></td>
              <td width="4%">
           </td>
              <td width="43%" class="smalltxt5">
           Anytime
           </td>
            </tr>
            <tr>
                      <td width="3%" align="middle" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid" onclick="fdiv1('div2')" height="19"><div class="smalltxt" id="div2" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; VISIBILITY: visible; BORDER-LEFT: medium none; WIDTH: 20px; BORDER-BOTTOM: medium none; BACKGROUND-COLOR: transparent; layer-background-color: transparent"></div></td>
              <td width="4%"></td>
              <td width="43%" class="smalltxt5">By Fax</td>
              <td width="3%" align="middle" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid" onclick="fdiv1('div5')" height="19"><div class="smalltxt" id="div5" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; VISIBILITY: visible; BORDER-LEFT: medium none; WIDTH: 20px; BORDER-BOTTOM: medium none; BACKGROUND-COLOR: transparent; layer-background-color: transparent"></div></td>
              <td width="4%">
              </td>
              <td width="43%" class="smalltxt5">
              Morning
              </td>
            </tr>
            <tr>
              <td width="3%" align="middle" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
                onclick="fdiv1('div3')" height="19"
               ><div class="smalltxt" id="div3" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; VISIBILITY: visible; BORDER-LEFT: medium none; WIDTH: 20px; BORDER-BOTTOM: medium none; BACKGROUND-COLOR: transparent; layer-background-color: transparent"></div></td>
              <td width="4%"></td>
              <td width="43%" class="smalltxt5">By E-mail</td>
               <td width="3%" align="middle" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid" onclick="fdiv1('div6')" height="19"><div class="smalltxt" id="div6" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; VISIBILITY: visible; BORDER-LEFT: medium none; WIDTH: 20px; BORDER-BOTTOM: medium none; BACKGROUND-COLOR: transparent; layer-background-color: transparent"></div></td>
              <td width="4%">
              </td>
              <td width="43%" class="smalltxt5">
              Afternoon
              </td>
            </tr>
            <tr>
              <td width="50%" colspan="3"></td>
               <td width="3%" align="middle" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
                onclick="fdiv1('div7')" height="19"
               ><div class="smalltxt" id="div7" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; VISIBILITY: visible; BORDER-LEFT: medium none; WIDTH: 20px; BORDER-BOTTOM: medium none; BACKGROUND-COLOR: transparent; layer-background-color: transparent"></div></td>
              <td width="4%">
              </td>
              <td width="43%" class="smalltxt5">
              Evening
              </td>
            </tr>
            <tr>
              <td width="50%" colspan="3"></td>
              <td width="3%"></td>

              <td width="4%">
              </td>
              <td width="43%">
              </td>
            </tr>
          </table>
          </td>
          <td width="10" valign="top"></td>
        </tr>
        <tr>
          <td width="50" valign="top"></td>
          <td width="290" valign="top" class="smalltxt5">Message/Requirement</td>
          <td width="10" valign="top">:</td>
          <td width="290" valign="top" colspan="3"><TEXTAREA style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; BACKGROUND-COLOR: transparent" name=txtmessage rows=3 cols=30></TEXTAREA>
          </td>
          <td width="10" valign="top"></td>
        </tr>
        <tr>
          <td width="50" valign="top"></td>
          <td width="290" valign="top">
          </td>
          <td width="10" valign="top"></td>
          <td width="290" valign="top" colspan="3"></td>
          <td width="10" valign="top"></td>
        </tr>
        <tr>
          <td width="50" valign="top"></td>
          <td width="290" valign="top" class="smalltxt5"><b>Patient care is our priority</b></td>
          <td width="10" valign="top"></td>
          <td width="290" valign="top" colspan="3"></td>
          <td width="10" valign="top"></td>
        </tr>
        <tr>
          <td width="50" valign="top"></td>
          <td width="290" valign="top">
            <p align="right"><A href="#"><IMG onclick=submiting() height=23 src="images/btnsubmit.gif" width=74 border=0></A></p></td>
          <td width="10" valign="top"></td>
          <td width="290" valign="top" colspan="3"><A href="contactus.htm"><IMG height=23 src="images/btnreset.gif" width=74 border=0></A></td>
          <td width="10" valign="top"></td>
        </tr>
      </table>
  <input type="hidden" name="ddiv1" id="ddiv1">
  <input type="hidden" name="ddiv2" id="ddiv2">
  <input type="hidden" name="ddiv3" id="ddiv3">
  <input type="hidden" name="ddiv4" id="ddiv4">
  <input type="hidden" name="ddiv5" id="ddiv5">
  <input type="hidden" name="ddiv6" id="ddiv6">
  <input type="hidden" name="ddiv7" id="ddiv7">
</form>
''''''''''''''''''''''''''''''
after that write this asp code
contactus.asp
'''''''''''''''''''''''''''''''''''

<%
strname=Request("txtname")
strcompany=Request("txtcompany")
straddress1=Request("txtaddress1")
straddress2=Request("txtaddress2")
strcity=Request("txtcity")
strcounty=Request("txtcounty")
strpost=Request("txtpost")
strphone=Request("txtphone")
stremail=Request("txtemail")
strmessage=Request("txtmessage")
strdiv1=trim(request("ddiv1"))
strdiv2=trim(request("ddiv2"))
strdiv3=trim(request("ddiv3"))
strdiv4=trim(request("ddiv4"))
strdiv5=trim(request("ddiv5"))
strdiv6=trim(request("ddiv6"))
strdiv7=trim(request("ddiv7"))
strR1=request("R1")
path=Request("HTTP_REFERER")
path=StrReverse(path)
loc=instr(1,path,"/")
path=mid(path,loc)
imgpath=strreverse(path) & "images/"
str=""
str=str+"<link href='"& imgpath &"ssss.css' rel='stylesheet' type='text/css'>"
str=str+"<td width='645' valign='top'>"
str=str+"<table width='645' border='0' background='" & imgpath & "back3.gif' cellpadding='0' cellspacing='0' class='smalltxt5'>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'>&nbsp;</td>"
str=str+"<td width='290' valign='top' class='smalltxt5'><b>Contact Information</b></td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"<td width='290' valign='top' colspan='3'></td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'></td>"
str=str+"<td width='290' valign='top'></td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"<td width='290' valign='top' colspan='3'></td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'></td>"
str=str+"<td width='290' valign='top' class='smalltxt5'>Contact Name (Req'd)</td>"
str=str+"<td width='10' valign='top'>:</td>"
str=str+"<td width='290' valign='top' colspan='3' height='19' class='smalltxt5'>" & strname & "</td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'></td>"
str=str+"<td width='290' valign='top' class='smalltxt5'>Company Name</td>"
str=str+"<td width='10' valign='top'>:</td>"
str=str+"<td width='290' valign='top' colspan='3' height='19' class='smalltxt5'>" & strcompany & "</td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'></td>"
str=str+"<td width='290' valign='top' class='smalltxt5'>Address 1</td>"
str=str+"<td width='10' valign='top'>:</td>"
str=str+"<td width='290' valign='top' colspan='3' height='19' class='smalltxt5'>" & straddress1 & "</td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'></td>"
str=str+"<td width='290' valign='top' class='smalltxt5'>Address 2</td>"
str=str+"<td width='10' valign='top'>:</td>"
str=str+"<td width='290' valign='top' colspan='3' height='19' class='smalltxt5'>" & straddress2 & "</td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'></td>"
str=str+"<td width='290' valign='top' class='smalltxt5'>City</td>"
str=str+"<td width='10' valign='top'>:</td>"
str=str+"<td width='290' valign='top' colspan='3' height='19' class='smalltxt5'>" & strcity & "</td> "
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'></td>"
str=str+"<td width='290' valign='top' class='smalltxt5'>County</td>"
str=str+"<td width='10' valign='top'>:</td>"
str=str+"<td width='290' valign='top' colspan='3' height='19'>" & strcounty & "</td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'></td>"
str=str+"<td width='290' valign='top' class='smalltxt5'>Post Code (Req'd)</td>"
str=str+"<td width='10' valign='top'>:</td>"
str=str+"<td width='290' valign='top' colspan='3' height='19' class='smalltxt5'>" & strpost & "</td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'></td>"
str=str+"<td width='290' valign='top' class='smalltxt5'>Email Address (Req'd)</td>"
str=str+"<td width='10' valign='top'>:</td>"
str=str+"<td width='290' valign='top' colspan='3' height='19' class='smalltxt5'>" & stremail & "</td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'></td>"
str=str+"<td width='290' valign='top' class='smalltxt5'>Telephone (Req'd)</td>"
str=str+"<td width='10' valign='top'>:</td>"
str=str+"<td width='290' valign='top' colspan='3' height='19' class='smalltxt5'>" & strphone & "</td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'></td>"
str=str+"<td width='290' valign='top' class='smalltxt5'>I prefer to be contacted</td>"
str=str+"<td width='10' valign='top'>:</td>"
str=str+"<td width='290' valign='top' colspan='3'>"
str=str+"<table border='0' width='100%' cellspacing='0' cellpadding='0' class=smalltxt5>"
str=str+"<tr>"
str=str+"<td width='3%' align='middle'>"
if strdiv1 <> "" then
str=str +"<img src='" & imgpath & "saright.gif' width='10' height='10'>"
End if
str=str+"</td>"
str=str+"<td width='4%'></td>"
str=str+"<td width='43%' class='smalltxt5'>By Phone</td>"
str=str+"<td width='3%' align='middle'>"
if strdiv4 <> "" then
str=str+"<img src='" & imgpath & "saright.gif' width='10' height='10'>"
End if
str=str+"</td>"
str=str+"<td width='4%'>"
str=str+"</td>"
str=str+"<td width='43%' class='smalltxt5'>Anytime</td>"
str=str+"</tr>"
str=str+"<tr>"
str=str+"<td width='3%' align='middle'> "
if strdiv2 <> "" then
str=str + "<img src='" & imgpath & "saright.gif' width='10' height='10'>"
End if
str=str+"</td> "
str=str+"<td width='4%'></td>"
str=str+"<td width='43%' class='smalltxt5'>By Fax</td>"
str=str+"<td width='3%' align='middle'> "
if strdiv5 <> "" then
str=str+"<img src='" & imgpath & "saright.gif' width='10' height='10'>"
End if
str=str+"</td>"
str=str+"<td width='4%'>"
str=str+"</td>"
str=str+"<td width='43%' class='smalltxt5'>Morning</td>"
str=str+"</tr>"
str=str+"<tr>"
str=str+"<td width='3%' align='middle'> "
if strdiv3 <> "" then
str=str+"<img src='" & imgpath & "saright.gif' width='10' height='10'>"
End if
str=str+"</td> "
str=str+"<td width='4%'></td>"
str=str+"<td width='43%' class='smalltxt5'>By E-mail</td>"
str=str+"<td width='3%' align='middle'> "
if strdiv6 <> "" then
str=str+"<img src='" & imgpath & "saright.gif' width='10' height='10'>"
End if
str=str+"</td> "
str=str+"<td width='4%'>"
str=str+"</td>"
str=str+"<td width='43%' class='smalltxt5'>Afternoon</td>"
str=str+"</tr>"
str=str+"<tr>"
str=str+"<td width='50%' colspan='3'></td>"
str=str+"<td width='3%' align='middle'> "
if strdiv7 <> "" then
str=str+"<img src='" & imgpath & "saright.gif' width='10' height='10'>"
End if
str=str+"</td> "
str=str+"<td width='4%'>"
str=str+"</td>"
str=str+"<td width='43%' class='smalltxt5'>Evening</td>"
str=str+"</tr>"
str=str+"<tr>"
str=str+"<td width='50%' colspan='3'></td>"
str=str+"<td width='3%'></td>"
str=str+"<td width='4%'>"
str=str+"</td>"
str=str+"<td width='43%'>"
str=str+"</td>"
str=str+"</tr>"
str=str+"</table>"
str=str+"</td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'></td>"
str=str+"<td width='290' valign='top' class='smalltxt5'>Message/Requirement</td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"<td width='290' valign='top' colspan='3' height='19' class='smalltxt5'>" & strmessage & "</td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'></td>"
str=str+"<td width='290' valign='top'>"
str=str+"</td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"<td width='290' valign='top' colspan='3'></td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'></td>"
str=str+"<td width='290' valign='top' class='smalltxt5'><b>Patient care is our priority</b></td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"<td width='290' valign='top' colspan='3'></td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"<tr> "
str=str+"<td width='50' valign='top'></td>"
str=str+"<td width='290' valign='top'>"
str=str+"<p align='right'></td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"<td width='290' valign='top' colspan='3'></td>"
str=str+"<td width='10' valign='top'></td>"
str=str+"</tr>"
str=str+"</table>"
str=str+"</td>"
Response.Write str
%>
<%Set objCDOMail=Server.CreateObject("CDONTS.NewMail")
    objCDOMail.From=stremail
    objCDOMail.To="[email protected]"
    objCDOMail.Subject="Contact Us"
    objCDOMail.Bcc="[email protected];surenthira [email protected]"
    objCDOMail.BodyFormat=0
    objCDOMail.MailFormat=0
    objCDOMail.Body=str
    objCDOMail.Importance=2
    objCDOMail.Send
    Set objCDOMail=Nothing
%>
now check.
i think this will work correctly
bye

surendran









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.