Hi all,
Is there any way to send HTML table information through mail ?
I have a html page (which is dynamically generated by a perl program), when I submit the form, it will call a perl program that will send the table information from the html page.
How can I send this table info to perl program? or Is there any way to get a solution?
For example, In some site, if we wan to send article, we can see an option say do you want to send this page to friends.
When we input friends email address and click on SEND button, the artcle (from html page) will send to as html format to the mail addresses.
The same kind of output I am looking for my question.
Could you please send me the sample code
here is my sample page
<HEAD>
<TITLE> Test </TITLE>
</HEAD>
<BODY>
<form name="mailform" method="post" action="mail.pl">
<div id="mailcontent">
<TABLE width="100%" border=1 cellpadding=0 cellspacing=0>
<TR>
<TD>Account No</TD>
<TD>Type</TD>
<TD>Branch</TD>
</TR>
<TR>
<TD>11111111</TD>
<TD>Savings</TD>
<TD>Branch1</TD>
</TR>
<TR>
<TD>2222222</TD>
<TD>Current</TD>
<TD>Branch2</TD>
</TR>
<TR>
<TD>3333333</TD>
<TD>Savings</TD>
<TD>Branch3</TD>
</TR>
</TABLE>
</div>
<br>
To : <input type="text" name="to" size="10"><br>
<center><input type="submit" name="mail" value="Send Mail"></center>
</form>
</BODY>
</HTML>
Thanks
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.