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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send page as body of email

Status
Not open for further replies.

pinto19

Vendor
May 22, 2005
29
US
Hello,
I am trying to see if there are any scripts/vb codes that i can use that will send a page as the body of email. I would also like to be able to prepopulate the mail to address with several email addresses and prepoulate the subject line. Currently I am able to go to file, send, send page menu option in IE, but would like to create a button on the page that will be able to automate this process as this page will be send to same people with same subject line from time to time. (The page has some fomrs to enter data and some graphics)

Thanks for any help.
 
i think this is easily do-able with server side coding. i recommend php. u can use php to encode the file before sending it out either with base64, some other mime...etc

---------------------------
WORD OR VOTE TO THE WISE IS ENUFF...;)
 
Thanks for your reply. Unfortunately I only have asp. Can this be done with asp, if so what kind of coding would i be using.

Currently I have the the page saved as html with the follwing codes.Any suggestion would be appreciated.
Thanks

<html>

<head>
<script type="text/javascript">

function handleEnter (field, event) {

var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;

if (keyCode == 13) {

var i;

for (i = 0; i < field.form.elements.length; i++)

if (field == field.form.elements)

break;

i = (i + 1) % field.form.elements.length;

field.form.elements.focus();

return false;

}

else

return true;

}



</script>

<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Term PAF</title>
</head>

<body>

<p>
<font size="6">Fairmont,
WV</font></p>
<p align="center"><font size="4">Personnel Action Form (PAF)--Terminations Only</font></p>
<form method="POST" action="mailto:islamm@aegiscomgroup.com" enctype="text/plain">
<p align="center">
<font size="2">***Project Number Listed at the Bottom of this form***</font></p>
<p align="center">Submitted By:
<input type="text" onkeypress="return handleEnter(this, event)"name="subby" size="20"><br>
Date Submitted:
<input type="text" onkeypress="return handleEnter(this, event)"name="subdate" size="20"><br>
<hr>
<center>xx <b>PLEASE FILL OUT THIS FORM COMPLETELY </b>xx<br>
<hr>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="12%" align="center" bgcolor="#00FF00">
<p align="center"><font size="2">Associate's Name</font></td>
<td width="12%" align="center" bgcolor="#00FF00">
<p align="center"><font size="2">&nbsp;&nbsp; Associate's ID</font></td>
<td width="12%" align="center" bgcolor="#00FF00">
<p align="center"><font size="2">Effective Date</font></td>
<td width="12%" align="center" bgcolor="#00FF00">
<p align="center"><font size="2">&nbsp;Supervisor's Name</font></td>
<td width="10%" align="center" bgcolor="#00FF00">
<p align="center"><font size="2">Lucent #</font></td>
<td width="16%" align="center" bgcolor="#00FF00">
<p align="center"><font size="2">Current Project</font></td>
<td width="13%" align="center" bgcolor="#00FF00"><font size="2">Eligible
for Rehire?</font></td>
<td width="13%" align="center" bgcolor="#00FF00"><font size="2">Voluntary
/ Involuntary</font></td>
</tr>
<tr>
<td width="12%" align="center">
<input type="text" onkeypress="return handleEnter(this, event)"name="agent1name" size="16" style="border: 1px solid #FFFFFF; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
<td width="12%" align="center">
<input type="text" onkeypress="return handleEnter(this, event)"name="agent1id" size="15" style="border: 1px solid #FFFFFF; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
<td width="12%" align="center">
<input type="text" onkeypress="return handleEnter(this, event)"name="agent1effdate" size="17" style="border: 1px solid #FFFFFF; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
<td width="12%" align="center">
<input type="text" onkeypress="return handleEnter(this, event)"name="agent1supv" size="15" style="border: 1px solid #FFFFFF"></td>
<td width="10%" align="center">
<input type="text" onkeypress="return handleEnter(this, event)"name="agent1lucent" size="10" style="border: 1px solid #FFFFFF; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
<td width="16%" align="center">
<input type="text" onkeypress="return handleEnter(this, event)"name="agent1project" size="18" style="border: 1px solid #FFFFFF; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
<td width="13%" align="center"><select size="1" onkeypress="return handleEnter(this, event)"name="agent1eligability">
<option>Yes</option>
<option>No</option>
</select></td>
<td width="13%" align="center"><select size="1" onkeypress="return handleEnter(this, event)"name="agent1reason">
<option>Voluntary</option>
<option>Involuntary</option>
</select></td>
</tr>
<tr>
<td width="12%" align="center"><input type="text" onkeypress="return handleEnter(this, event)"name="T11" size="16"></td>
<td width="12%" align="center"><input type="text" onkeypress="return handleEnter(this, event)"name="T12" size="15"></td>
<td width="12%" align="center"><input type="text" onkeypress="return handleEnter(this, event)"name="T13" size="17"></td>
<td width="12%" align="center"><input type="text" onkeypress="return handleEnter(this, event)"name="T14" size="15"></td>
<td width="10%" align="center">
<input type="text" onkeypress="return handleEnter(this, event)"name="T15" size="10"></td>
<td width="16%" align="center"><input type="text" onkeypress="return handleEnter(this, event)"name="T16" size="18"></td>
<td width="13%" align="center"><select size="1" onkeypress="return handleEnter(this, event)"name="D2">
<option>Yes</option>
<option>No</option>
</select></td>
<td width="13%" align="center"><select size="1" onkeypress="return handleEnter(this, event)"name="D5">
<option>Voluntary</option>
<option>Involuntary</option>
</select></td>
</tr>
<tr>
<td width="12%" align="center"><input type="text" onkeypress="return handleEnter(this, event)"name="T19" size="16"></td>
<td width="12%" align="center"><input type="text" onkeypress="return handleEnter(this, event)"name="T20" size="15"></td>
<td width="12%" align="center"><input type="text" onkeypress="return handleEnter(this, event)"name="T21" size="17"></td>
<td width="12%" align="center"><input type="text" onkeypress="return handleEnter(this, event)"name="T22" size="15"></td>
<td width="10%" align="center">
<input type="text" onkeypress="return handleEnter(this, event)"name="T23" size="10"></td>
<td width="16%" align="center"><input type="text" onkeypress="return handleEnter(this, event)"name="T24" size="18"></td>
<td width="13%" align="center"><select size="1" onkeypress="return handleEnter(this, event)"name="D3">
<option>Yes</option>
<option>No</option>
</select></td>
<td width="13%" align="center"><select size="1" onkeypress="return handleEnter(this, event)"name="D6">
<option>Voluntary</option>
<option>Involuntary</option>
</select></td>
</tr>
<tr>
<td width="100%" align="center" colspan="8" bgcolor="#00FF00">Details and
Additional Comments:</td>
</tr>
<tr>
<td width="100%" align="center" colspan="8">
<input type="text" onkeypress="return handleEnter(this, event)"name="T28" size="137" style="border: 1px solid #FFFFFF"></td>
</tr>
<tr>
<td width="100%" align="center" colspan="8">
<input type="text" onkeypress="return handleEnter(this, event)"name="T29" size="137" style="border: 1px solid #FFFFFF"></td>
</tr>
<tr>
<td width="100%" align="center" colspan="8">
<input type="text" onkeypress="return handleEnter(this, event)"name="T30" size="137" style="border: 1px solid #FFFFFF; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"><table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#00FF00"><b><font size="2">Active Project
Codes: Comcast=872, 785,385 &amp; 179, Cingular=982, AT&amp;T HEO=404,
Verizon=101, Western Union=108, Trilegiant=103</font></b></td>
</tr>
</table>
</td>
</tr>
</table>
<p> <input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
<p align="center">&nbsp;</p>

</body>

</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top