wonderful
10-21-2005, 12:08 PM
Anyone know how to change the subject line of an email that is sent out by sumbitting a form created with Yahoo Sitebuilder? :o
As it is, every submitted form sends out an email with the same subject line, "Yahoo! WebHosting Email", and I want different forms to specify what they are in the email subject line.
This is not a feature built into Sitebuilder. I have been able to successfully make changes to other sitebuilder webpage files by editing/tweeking them in notepad (for other things that were not available with the sitebuilder program). But I don't know how to go about editing the subject line of an email generated from a form. I only know enough about scripts to be dangerous! I can copy and paste script into my web pages but can't write it myself. :(
Here is the code for a test form I created with yahoo sitebuilder (with only a check box and a submit button). I took out the email address info for obvious reasons.
<!--$sitebuilder version="2.2.1" md5="1c981b08a6beeec1df97b1062316d556"$-->
<!--$templateKey Blank||1.0.0$-->
<html>
<head>
<!--$begin exclude$--><title>test</title><!--$end exclude$-->
<meta name="generator" content="Yahoo! SiteBuilder/2.2.1/1.5.0_02">
<!--$fontFamily Arial$-->
<!--$fontSize 14$-->
<style type="text/css"><!--
BODY {font-family:"Arial"; font-size:14;}
P {font-family:"Arial"; font-size:14;}
--></style>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" hspace="0" vspace="0">
<table border="0" cellspacing="0" cellpadding="0" width="530" height="405">
<col width="230">
<col width="300">
<tr>
<td width="530" height="105" colspan="2"></td>
</tr>
<tr>
<td width="230" height="300"></td>
<td height="300" valign="top"><!--$form formEmail="_____@____.com" formConfirmPage="" formErrorPage="" defaultURL="http://[SITE_CODE].webhosting.yahoo.com/forms?login=[MEMBER_NAME]&to=[EMAIL]&confirm=[PAGE]&error=[ERROR_PAGE]"$-->
<script>
function checkForm0() {
return true;
}
</script>
<form name="Form0" onSubmit="if (checkForm0()) alert('You must publish this page to your account\nfor the form to function.'); return false;">
<!--$table$--><table style="table-layout:fixed;border:0px none #000000" width=300 height=300 border=0 cellspacing=0 cellpadding=0><col width="300"><tr>
<td style="border:0px none #000000" width="300" height="300" valign="top"> <table border="0" cellspacing="0" cellpadding="0" width="300" height="300">
<col width="106">
<col width="32">
<col width="24">
<col width="33">
<col width="105">
<tr>
<td width="300" height="138" colspan="5"></td>
</tr>
<tr>
<td width="138" height="24" colspan="2"></td>
<td height="24" valign="top"><!--$addOn addOn=resource\:/resources/addons/checkBox/checkBox.addon
element.icon=resource\:/resources/addons/checkBox/icon-unchecked.gif
publish.local=true
checked=false
element.name=test
publishAddOnInfo=false
$--><!--$begin exclude$--><input type="checkbox" name="test"><!--$end exclude$--></td>
<td width="138" height="24" colspan="2"></td>
</tr>
<tr>
<td width="300" height="33" colspan="5"></td>
</tr>
<tr>
<td width="106" height="29"></td>
<td height="29" colspan="3" valign="top"><input type="submit" value="Submit"></td>
<td width="105" height="29"></td>
</tr>
<tr>
<td width="300" height="76" colspan="5"></td>
</tr>
<tr> <!-- workaround for IE table layout bug -->
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr> <!-- workaround for IE table layout bug -->
<td></td>
<td></td>
</tr>
</table>
<br><br>
<!--$begin exclude$--><div style="position:absolute;left:50;top:50;background:white"><font color=black>This file is not intended to be viewed directly using a web browser. To create a viewable file, use the <b>Preview in Browser</b> or <b>Publish to Yahoo! Web Hosting</b> commands from within Yahoo! SiteBuilder.</font></div><!--$end exclude$-->
</body>
</html>
Any suggestions? Please don't say use a different web developer program! I would love to. I'm an old Dreamweaver user who grew up with notepad and html. Now I'm helping a dog rescue group who insists on using yahoo sitebuilder because most of the ladies who have to edit the site can figure it out!
The code above is the pre-published version. Yahoo changes it during the uploading. I can make online edits once the file is on the server too. So if you need to see the code once it's published I can post that too.
Any suggestions would be very appreciated! (And you would be helping to save cute litte doggies too! :D )
Thank you all so much!
As it is, every submitted form sends out an email with the same subject line, "Yahoo! WebHosting Email", and I want different forms to specify what they are in the email subject line.
This is not a feature built into Sitebuilder. I have been able to successfully make changes to other sitebuilder webpage files by editing/tweeking them in notepad (for other things that were not available with the sitebuilder program). But I don't know how to go about editing the subject line of an email generated from a form. I only know enough about scripts to be dangerous! I can copy and paste script into my web pages but can't write it myself. :(
Here is the code for a test form I created with yahoo sitebuilder (with only a check box and a submit button). I took out the email address info for obvious reasons.
<!--$sitebuilder version="2.2.1" md5="1c981b08a6beeec1df97b1062316d556"$-->
<!--$templateKey Blank||1.0.0$-->
<html>
<head>
<!--$begin exclude$--><title>test</title><!--$end exclude$-->
<meta name="generator" content="Yahoo! SiteBuilder/2.2.1/1.5.0_02">
<!--$fontFamily Arial$-->
<!--$fontSize 14$-->
<style type="text/css"><!--
BODY {font-family:"Arial"; font-size:14;}
P {font-family:"Arial"; font-size:14;}
--></style>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" hspace="0" vspace="0">
<table border="0" cellspacing="0" cellpadding="0" width="530" height="405">
<col width="230">
<col width="300">
<tr>
<td width="530" height="105" colspan="2"></td>
</tr>
<tr>
<td width="230" height="300"></td>
<td height="300" valign="top"><!--$form formEmail="_____@____.com" formConfirmPage="" formErrorPage="" defaultURL="http://[SITE_CODE].webhosting.yahoo.com/forms?login=[MEMBER_NAME]&to=[EMAIL]&confirm=[PAGE]&error=[ERROR_PAGE]"$-->
<script>
function checkForm0() {
return true;
}
</script>
<form name="Form0" onSubmit="if (checkForm0()) alert('You must publish this page to your account\nfor the form to function.'); return false;">
<!--$table$--><table style="table-layout:fixed;border:0px none #000000" width=300 height=300 border=0 cellspacing=0 cellpadding=0><col width="300"><tr>
<td style="border:0px none #000000" width="300" height="300" valign="top"> <table border="0" cellspacing="0" cellpadding="0" width="300" height="300">
<col width="106">
<col width="32">
<col width="24">
<col width="33">
<col width="105">
<tr>
<td width="300" height="138" colspan="5"></td>
</tr>
<tr>
<td width="138" height="24" colspan="2"></td>
<td height="24" valign="top"><!--$addOn addOn=resource\:/resources/addons/checkBox/checkBox.addon
element.icon=resource\:/resources/addons/checkBox/icon-unchecked.gif
publish.local=true
checked=false
element.name=test
publishAddOnInfo=false
$--><!--$begin exclude$--><input type="checkbox" name="test"><!--$end exclude$--></td>
<td width="138" height="24" colspan="2"></td>
</tr>
<tr>
<td width="300" height="33" colspan="5"></td>
</tr>
<tr>
<td width="106" height="29"></td>
<td height="29" colspan="3" valign="top"><input type="submit" value="Submit"></td>
<td width="105" height="29"></td>
</tr>
<tr>
<td width="300" height="76" colspan="5"></td>
</tr>
<tr> <!-- workaround for IE table layout bug -->
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr> <!-- workaround for IE table layout bug -->
<td></td>
<td></td>
</tr>
</table>
<br><br>
<!--$begin exclude$--><div style="position:absolute;left:50;top:50;background:white"><font color=black>This file is not intended to be viewed directly using a web browser. To create a viewable file, use the <b>Preview in Browser</b> or <b>Publish to Yahoo! Web Hosting</b> commands from within Yahoo! SiteBuilder.</font></div><!--$end exclude$-->
</body>
</html>
Any suggestions? Please don't say use a different web developer program! I would love to. I'm an old Dreamweaver user who grew up with notepad and html. Now I'm helping a dog rescue group who insists on using yahoo sitebuilder because most of the ladies who have to edit the site can figure it out!
The code above is the pre-published version. Yahoo changes it during the uploading. I can make online edits once the file is on the server too. So if you need to see the code once it's published I can post that too.
Any suggestions would be very appreciated! (And you would be helping to save cute litte doggies too! :D )
Thank you all so much!