Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot send asp page by email using Internet Explorer

Status
Not open for further replies.

davejam

Technical User
Jan 6, 2004
313
GB
I have report page in our website.
One of our clients needs to be able to send page by email to attach the displayed report into thier own system.

I have been informed they can not do this with our new report (written in asp) where as they could in our old system using .net. (we have quickly re-coded the system as some updates were needed and origional source was not available to us to just update the origional .net application.)

The error they get (and I have tried this and get the same) is:
The current Document type can not be sent as mail, would you like to send a shortcut instead?

although the odd thing is, every other page on the site works... and other pages from within this folder work to!!!

having looked at the compiled data in'view source' there does not seem to be any issue with the actual page... all tags are present, opened and closed!!!... html, head, title, style and body!!!

if you have any ideas it would be greatly appreciated!!

thankyou

daveJam

even my shrink says its all your f#@/ing fault
 
sorry to push this but i am completely stumped....

i have the code from the 'view source' to see if anything sticks out at anyone....

not really bothered about techniques etc, just what might be breaking this send as email... oh and played with the data a bit... who dp act and everything!!!

Code:
<html>
<head>
<title>Site Report</title>
<style>
 .tblEco{
  font-family: verdana;
  border-top: solid #000000;
  border-left: solid #000000;
  border-right: solid #000000;
  border-bottom: solid #000000;
  border-width: 1px;
  cursor: default;
 }
 .mnuEco{
  font-family: verdana;
  font-size: 12px;
  border-top: solid #000000;
  border-left: solid #000000;
  border-right: solid #000000;
  border-bottom: solid #000000;
  border-width: 1px;
 }
 .callEco{
  font-family: verdana;
  font-size: 16px;
  font-weight: bold;
 }
 .errEco{
  font-family: verdana;
  font-size: 10px;
  color: red;
 }
 .headEco{
  font-family: verdana;
  font-size: 10px;
  font-weight: bold;
  text-align: left;
 }
 .lstEco{
  font-family: verdana;
  font-size: 10px;
  text-align: left;
 }
 .selEco{
  font-family: verdana;
  font-size: 10px;
  text-align: center;
  cursor: hand;
 }
 .inpEco{
  font-family: verdana;
  font-size: 10px;
 }
 .inpEcoQ{
  font-family: verdana;
  font-size: 10px;
  background-color: #FCE18C;
 }
 .btnEco{
  font-family: verdana;
  text-decoration: none;
  font-size: 10px;
  color: #000000;
  cursor: hand;
 }
</style>
</head>
<body>
 
 
<form name='frmNav' method='post' action='../clientportal.asp'>
<input type='hidden' name='mnuPage' value='search'><input type='hidden' name='srcOIC'value='20/03/2008'><input type='hidden' name='srcType' value='4'><input type='hidden' name='varCALLOID' value='17878937'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td align='center'>
<table width='98%' class='mnuLst'>
<tr>
<td width='30%' class='mnuEco'>
<table class='headEco' width='100%'>
<tr>
<td colspan='2'><img src='../images/Eco_SiteVisitLogo_S.png' width='100%'></td>
</tr>
<tr height='1'><td bgcolor='#000000' colspan='2'></td></tr>
<tr class='btnEco'>
<td onclick='submit()'>back</td>
 
<td onclick=document.frmNav.action='updsettings.asp';submit();>hide pictures</td>
 
</tr>
</table>
</td>
<td width='20%' align='center' class='mnuEco'>
<table class='callEco'><tr><td align='center'>Call Number</td></tr><tr><td align='center'>17878937</td></tr></table>
</td>
<td width='50%' valign='top' align='right' class='mnuEco'>
<table class='lstEco' width='100%'>
<tr><td colspan='2' align='right'><b>Company</b></td></tr>
<tr><td colspan='2' align='right'>address</td></tr>
<tr><td align='left'>TEL:  </td><td align='right'>Address</td></tr>
<tr><td colspan='2' align='right'>Address</td></tr>
<tr><td align='left'>FAX:  </td><td align='right'>Staffordshire,</td></tr>
<tr><td colspan='2' align='right'>pc.</td></tr>
</table>
</td>
</tr>
<tr>
<td class='mnuEco' valign='top' align='left'>
<table class='lstEco'>
<tr><td class='headEco'>End Client Details:</td></tr>
<tr><td>Mrs. B</td></tr>
<tr><td>Address,
address,
addresws</td></tr>
<tr><td>address</td></tr>
<tr><td></td></tr>
<tr><td>PC</td></tr>
<tr><td><b>Tel:</b> tel</td></tr>
 
</table>
</td>
<td class='mnuEco' colspan='2' valign='top'>
<table cellpadding="0" cellspacing="0" width='100%'><tr><td width='50%' valign='top'>
<table class='lstEco' width='100%'>
<tr><td class='headEco'>Customer Details:</td></tr>
<tr><td>company</td></tr>
<tr><td><b>Product:</b> productL</td></tr>
<tr><td><b>Customer PO#:</b> ****986</td></tr>
<tr><td><b>Booking Date:</b> 20/03/2008</td></tr>
</table>
</td><td valign='top'>
<table class='lstEco' width='100%'>
<tr><td colspan='2'>&nbsp;</td></tr>
<tr><td class='headEco'>Recieve Date:</td><td>28/02/2008</td></tr>
<tr><td class='headEco'>Repair Date:</td><td>20/03/2008</td></tr>
<tr><td class='headEco'>Lead Time:</td><td>21 days</td></tr>
<tr><td colspan='2'>&nbsp;</td></tr>
<tr><td colspan='2' class='headEco'>company:</td></tr>
<tr><td colspan='2'>bob jones</td></tr>
</table>
</td></tr></table>
 
</td>
</tr>
<tr>
<td class='mnuEco' valign='top' colspan='3'>
<table class='lstEco' width='100%'>
<tr>
<td class='headEco' align='left'>
Reported Fault and Instructions for: 177881937
</td>
</tr>
<tr>
<td align='left'>
2ND VISIT CARRY OUT REPAIR
** PARTS DESPATCHED**
####PLEASE RING EVENING BEFORE#####
14/3 CONF MR **** 15.19
No fault, g.
Report, Ty but no apparent fault at this time. The customer is got and if further interior would be required.
 
</td>
</tr>
</table>
</td>
</tr>
 
 
<tr>
<td class='mnuEco' valign='top' colspan='3' align='left'>
<table width='100%' cellspacing='0' class='lstEco'><tr><td class='headEco'>Technicians Comments</td></tr><tr><td>Manu fault, The ***** to excess.
 
Work carried out, Replaced fill with parts supplied. 
 
Suite and local conditions good.
</td></tr><tr><td>Complete
</td></tr></table>
</td>
</tr>
 
<tr>
<td class='mnuEco' valign='top' colspan='3'>
<table width='100%' cellspacing='0' class='lstEco'><tr class='headEco'><td>On Site Times:</td></tr><tr class='headEco'><td width='10%'></td><td width='13%'>Date</td><td width='13%'>Event</td><td width='13%'>Start Time</td><td width='13%'>End Time</td><td width='13%'>Duration</td><td width='30%'>Technician</td><td width='10%'></td></tr><tr height='1'><td bgcolor='#000000' colspan='8'></td></tr><tr><td></td><td>20/03/2008</td><td>Work</td><td>16:11</td><td>17:10</td><td>00:59</td><td>bob jones</td><td></td></tr></table>
</td>
</tr>
 
<tr>
<td class='mnuEco' valign='top' colspan='3'>
<table width='100%' cellspacing='0' class='lstEco'><tr><td class='headEco'>Other Call Data:</td><td align='right'>Local Conditions:</td><td></td><td align='right'>Conditions:</td><td></td></tr><tr><td>&nbsp;</td><td align='right'>Reported Symptom:</td><td>Loose/Poorly fitting</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td align='right'>Actual Symptom:</td><td>Not Recorded</td><td align='right'>Call Outcome / Result: </td><td>2D</td></tr><tr height='1'><td colspan='5' bgcolor='#000000'></td></tr><tr><td>&nbsp;</td><td align='right'>Allocated Invoice / Credit Note No:</td><td>52739</td><td align='right'>Customer PO No#:</td><td>***** </td></tr><tr><td>&nbsp;</td><td align='right'>Inv NET:</td><td>&pound;65.00</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td align='right'>Inv VAT:</td><td>&pound;11.38</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td align='right'>Inv Total:</td><td>&pound;76.38</td><td align='right'>Last Updated/Checked By:</td><td>*p* : 26/03/2008 15:50:14</td></tr></table>
</td>
</tr>
 
<tr>
<td class='mnuEco' valign='top' colspan='3' align='left'>
 
 
</td>
</tr>
 
<tr>
<td class='mnuEco' valign='top' colspan='3' align='center'>
 <table>
 <tr><td colspan='2' class='headEco'>Please use the form below to progress this call using one of the actions provided.</td></tr>
 <tr>
  <td>
  <table class='lstEco' cellpadding='0' cellspacing='0'>
  <tr><td><b>For Use by the Store:</b></td>
  <td></td></tr>
  <tr><td>&nbsp;Please go ahead with repair.</td>
  <td><input type='checkbox' name='chkGoAhead' class='inpEco'></td></tr>
  <tr><td>&nbsp;Parts arrived (Enter Details in Notes).</td>
  <td><input type='checkbox' name='chkParts' class='inpEco'></td></tr>
  <tr><td>&nbsp;Failed repair, Please re-book.</td>
  <td><input type='checkbox' name='chkFailed' class='inpEco'></td></tr>
  <tr><td>&nbsp;Customer willing to accept repair.</td>
  <td><input type='checkbox' name='chkCust' class='inpEco'></td></tr>
  <tr><td>&nbsp;Store Notes:</td>
  <td><input type='checkbox' name='chkNotes' class='inpEco'></td></tr>
  <tr><td>&nbsp;New Fault.</td>
  <td><input type='checkbox' name='chkFault' class='inpEco'></td></tr>
  <tr><td>&nbsp;Close this Call.</td>
  <td><input type='checkbox' name='chkClose' class='inpEco'></td></tr>
  </table>
  </td>
  <td width='20'></td>
  <td>
  <table class='lstEco' cellpadding='0' cellspacing='0'>
  <tr><td>Notes:</td></tr>
  <tr><td><textarea rows='5' cols='80' name='inpNotes' class='inpEco'></textarea></td></tr>
  <tr><td align='right'>Your name: <input type='text' name='inpName' class='inpEcoQ' size='30' maxlength='50'></td></tr>
  <tr><td align='right'>confirm request <input type='checkbox' name='chkConf' class='inpEco'>&nbsp;<input type='button' value='submit' class='btnEco' onclick='javascript:funcResponse()'><input type='hidden' name='inpCallNumber' value='178937'</td></tr>
  </table>  
  </td>
 </tr>
 
 </table>
</td>
</tr>
 
</table>
</form>
 
 
 
<script>
function funcResponse(){
 $valChk = 0;
 $valErr = '';
 if(document.frmNav.chkGoAhead.checked==true){
  $valChk = 1;
 }
 if(document.frmNav.chkParts.checked==true){
  $valChk = 1;
 }
 if(document.frmNav.chkFailed.checked==true){
  $valChk = 1;
 }
 if(document.frmNav.chkCust.checked==true){
  $valChk = 1;
 }
 if(document.frmNav.chkNotes.checked==true){
  $valChk = 1;
 }
 if(document.frmNav.chkFault.checked==true){
  $valChk = 1;
 }
 if(document.frmNav.chkClose.checked==true){
  $valChk = 1;
 }
 if($valChk==0){
  $valErr = $valErr + ' - you have not selected a response option\n\r';
 }
 if(document.frmNav.inpName.value==''){
  $valErr = $valErr + ' - you have not enetered a name!\n\r';
 }
 if(document.frmNav.chkConf.checked==false){
  $valErr = $valErr + ' - you have not confirmed request!\n\r';
 }
 if($valErr!=''){
  alert('Request update error:\n\r'+$valErr); 
 }
 else{
  document.frmNav.action = 'sendresponse.asp';
  document.frmNav.submit();
 }
}
</script>
</body>
</html>

daveJam

even my shrink says its all your f#@/ing fault
 
hmmmm, i have copied and pasted the above into a new asp page and this seems to work... so not sure where the error sits.... if this is what its bringing to the screen should it not be the only thing it's trying to send... i am completely lost with this now!!!

so ANY pointers would be gratefully received!!!

daveJam

even my shrink says its all your f#@/ing fault
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top