c# - I need to send mail for multiple textbox values -
i need send mail more 400 textbox values. customer enters 10 textbox values; how can check , send entered values email?
using code below, need send enter information email. blank text box not needed send. how can check?
protected void submit_click(object sender, eventargs e) { mail.to = "mail@rediffmail.com"; mail.cc = "test@gmail.com"; mail.from = email.value; mail.body += "<table><tr><td>name : " + name.value + " </td></tr>"; mail.body += " <tr><td>mobile no</td><td>:</td><td> " + mobile.value + "</td></tr>"; mail.body += " <tr><td>state : " + states.value + "</td></tr>"; mail.body += " <tr><td>country : " + country.value + "</td></tr>"; mail.body += " <tr><td>requirements : " + requirements.value + "</td></tr>"; mail.body += " <tr><td>message : " + message.value + "</td></tr><br><br>"; mail.body += "<table><tr><td>vozartho (capsule) : " + textbox1.value + " </td></tr>"; mail.body += "<tr><td>vozlax (tablets)</td> <td> :</td><td> " + textbox2.value + "</td> </tr>"; mail.body += " <tr><td>vozzyme</td><td>:</td><td> " + textbox3.value + "</td></tr>"; mail.body += " <tr><td>voz e tone(syrup)</td><td>:</td><td> " + textbox4.value + "</td></tr>"; mail.body += " <tr><td>voz cough plus</td><td>:</td><td> " + textbox5.value + "</td></tr>"; mail.body += "<table><tr><td>vozitex forte(capsule)</td><td>:</td> <td>" + textbox6.value + " </td></tr>"; mail.body += "<tr><td>sthiradi kashayam</td> <td> :</td><td> " + textbox7.value + "</td> </tr>"; mail.body += " <tr><td>hamsapathyadi kashayam</td><td>:</td><td> " + textbox8.value + "</td></tr>"; mail.body += " <tr><td>rasonadi dravakam </td><td>:</td><td> " + textbox9.value + "</td></tr>"; mail.body += " <tr><td>narasimha choornam</td><td>:</td><td> " + textbox10.value + "</td></tr>"; mail.body += "<table><tr><td>ajamamsarasayanam</td><td>:</td> <td>" + textbox11.value + " </td></tr>"; mail.body += "<tr><td>amruthamalakee kashayam</td> <td> :</td><td> " + textbox12.value + "</td> </tr>"; mail.body += " <tr><td>bacare (pookula lehyam)</td><td>:</td><td> " + textbox13.value + "</td></tr>"; mail.body += " <tr><td>danthadavana choornam</td><td>:</td><td> " + textbox14.value + "</td></tr>"; mail.body += " <tr><td>nisamalakam choornam</td><td>:</td><td> " + textbox15.value + "</td></tr>"; mail.body += "<table><tr><td>snana choornam</td><td>:</td> <td>" + textbox16.value + " </td></tr>"; mail.body += "<tr><td>neeleebhringadi c/oil</td> <td> :</td><td> " + textbox22.value + "</td> </tr>"; mail.body += " <tr><td>thengin pookula rasayanam</td><td>:</td><td> " + textbox23.value + "</td></tr>"; mail.body += " <tr><td>dasamoolarasayanam</td><td>:</td><td> " + textbox24.value + "</td></tr>"; mail.body += " <tr><td>dhanyamlam</td><td>:</td><td> " + textbox25.value + "</td></tr>"; mail.body += "<table><tr><td>dhanyamlam</td><td>:</td> <td>" + textbox26.value + " </td></tr>"; mail.body += "<tr><td>hamsapathyadi kashayam</td> <td> :</td><td> " + textbox27.value + "</td> </tr>"; mail.body += " <tr><td>piheal</td><td>:</td><td> " + textbox28.value + "</td></tr>"; mail.body += " <tr><td>rasonadi dravakam</td><td>:</td><td> " + textbox29.value + "</td></tr>"; mail.body += " <tr><td>sthiradi kashayam</td><td>:</td><td> " + textbox30.value + "</td></tr>"; mail.body += " <tr><td>vyoshamritham</td><td>:</td><td> " + textbox31.value + "</td></tr>"; mail.body += "<tr><td>aravindasavam </td> <td> :</td><td> " + textbox32.value + "</td> </tr>"; mail.body += " <tr><td>bhringarajasavam</td><td>:</td><td> " + textbox33.value + "</td></tr>"; mail.body += " <tr><td>chandanasavam</td><td>:</td><td> " + textbox34.value + "</td></tr>"; mail.body += " <tr><td>chavikasavam</td><td>:</td><td> " + textbox35.value + "</td></tr>"; mail.body += "<table><tr><td>kanakasavam(capsule)</td><td>:</td> <td>" + textbox36.value + " </td></tr>"; mail.body += "<tr><td>kumaryasavam</td> <td> :</td><td> " + textbox37.value + "</td> </tr>"; mail.body += " <tr><td>lodhrasavam</td><td>:</td><td> " + textbox38.value + "</td></tr>"; mail.body += " <tr><td>lohasavam </td><td>:</td><td> " + textbox39.value + "</td></tr>"; mail.body += " <tr><td>madhookasavam </td><td>:</td><td> " + textbox40.value + "</td></tr>"; mail.body += "<table><tr><td>nalikerasavam</td><td>:</td> <td>" + textbox41.value + " </td></tr>"; mail.body += "<tr><td>pippalyasavam</td> <td> :</td><td> " + textbox42.value + "</td> </tr>"; mail.body += " <tr><td>pootheekaranjasavam</td><td>:</td><td> " + textbox43.value + "</td></tr>"; mail.body += " <tr><td>pootheevalkasavam</td><td>:</td><td> " + textbox44.value + "</td></tr>"; mail.body += "<table><tr><td>chinchadi thailam</td><td>:</td> <td>" + textbox106.value + " </td></tr>"; mail.body += "<tr><td>dhanwantharam thailam</td> <td> :</td><td> " + textbox107.value + "</td> </tr>"; mail.body += " <tr><td>dhanwantharam thailam</td><td>:</td><td> " + textbox108.value + "</td></tr>"; mail.body += " <tr><td>dhanwantharam thailam</td><td>:</td><td> " + textbox109.value + "</td></tr>"; mail.body += " <tr><td>himasagara thailam</td><td>:</td><td> " + textbox110.value + "</td></tr>"; mail.body += "<table><tr><td>kanjunnyadi thailam</td><td>:</td> <td>" + textbox111.value + " </td></tr>"; mail.body += "<tr><td>karpasasthyadi thailam</td> <td> :</td><td> " + textbox112.value + "</td> </tr>"; mail.body += " <tr><td>karpasasthyadi thailam</td><td>:</td><td> " + textbox113.value + "</td></tr>"; mail.body += " <tr><td>karpooradi thailam</td><td>:</td><td> " + textbox114.value + "</td></tr>"; mail.body += " <tr><td>karpooradi thailam</td><td>:</td><td> " + textbox115.value + "</td></tr>"; mail.body += "<table><tr><td>karpooradi thailam</td><td>:</td> <td>" + textbox116.value + " </td></tr>"; mail.body += "<tr><td>kottamchukkadi thailam</td> <td> :</td><td> " + textbox117.value + "</td> </tr>"; mail.body += " <tr><td>kottamchukkadi thailam</td><td>:</td><td> " + textbox118.value + "</td></tr>"; mail.body += " <tr><td>shatpalam ghritham </td><td>:</td><td> " + textbox241.value + "</td></tr>"; mail.body += "<tr><td>sukumaram ghritham </td> <td> :</td><td> " + textbox242.value + "</td> </tr>"; mail.body += "<table><tr><td>kaisoragulgulu gulika </td><td>:</td> <td>" + textbox256.value + " </td></tr>"; mail.body += "<tr><td>kaisoragulgulu gulika </td> <td> :</td><td> " + textbox257.value + "</td> </tr>"; mail.body += " <tr><td>kanchanaragulgulu gulika </td><td>:</td><td> " + textbox258.value + "</td></tr>"; mail.body += " <tr><td>karutha vattu </td><td>:</td><td> " + textbox259.value + "</td></tr>"; mail.body += " <tr><td>kasthooryadi gulika </td><td>:</td><td> " + textbox260.value + "</td></tr>"; mail.body += "<table><tr><td>kompanchadi gulika </td><td>:</td> <td>" + textbox261.value + " </td></tr>"; mail.body += "<tr><td>manasamithram gulika </td> <td> :</td><td> " + textbox262.value + "</td> </tr>"; mail.body += " <tr><td>mandoora vatakam </td><td>:</td><td> " + textbox263.value + "</td></tr>"; mail.body += " <tr><td>mukkamukkutakadi gulika </td><td>:</td><td> " + textbox264.value + "</td></tr>"; mail.body += " <tr><td>navayasam gulika </td><td>:</td><td> " + textbox265.value + "</td></tr>"; mail.body += "<table><tr><td>ponkaradi gulika </td><td>:</td> <td>" + textbox266.value + " </td></tr>"; mail.body += "<tr><td>sethubandam gulika </td> <td> :</td><td> " + textbox267.value + "</td> </tr>"; mail.body += " <tr><td>shaddharanam gulika </td><td>:</td><td> " + textbox268.value + "</td></tr>"; mail.body += " <tr><td>shaddharanam gulika </td><td>:</td><td> " + textbox269.value + "</td></tr>"; mail.body += " <tr><td>sivagulika </td><td>:</td><td> " + textbox270.value + "</td></tr>"; mail.body += "<table><tr><td>sooryaprabha gulika </td><td>:</td> <td>" + textbox271.value + " </td></tr>"; mail.body += "<tr><td>swasanandam gulika </td> <td> :</td><td> " + textbox272.value + "</td> </tr>"; mail.body += " <tr><td>swasanandam gulika </td><td>:</td><td> " + textbox273.value + "</td></tr>"; mail.body += " <tr><td>thriphaladi gulika </td><td>:</td><td> " + textbox274.value + "</td></tr>"; mail.body += " <tr><td>thriphaladi gulika </td><td>:</td><td> " + textbox275.value + "</td></tr>"; mail.body += "<table><tr><td>vayu gulika </td><td>:</td> <td>" + textbox276.value + " </td></tr>"; mail.body += "<tr><td>vettumaran gulika </td> <td> :</td><td> " + textbox277.value + "</td> </tr>"; mail.body += " <tr><td>vettumaran gulika </td><td>:</td><td> " + textbox278.value + "</td></tr>"; mail.body += " <tr><td>vilwadi gulika </td><td>:</td><td> " + textbox279.value + "</td></tr>"; mail.body += " <tr><td>vilwadi gulika </td><td>:</td><td> " + textbox280.value + "</td></tr>"; mail.body += "<table><tr><td>yogarajagulgulu gulika </td><td>:</td> <td>" + textbox281.value + " </td></tr>"; mail.body += "<tr><td>yogarajagulgulu gulika </td> <td> :</td><td> " + textbox282.value + "</td> </tr>"; mail.body += " <tr><td>abahayapippalimooladi kashayam </td><td>:</td><td> " + textbox283.value + "</td></tr>"; mail.body += " <tr><td>amruthotharam kashayam </td><td>:</td><td> " + textbox284.value + "</td></tr>"; mail.body += " <tr><td>aragwadhadi kashayam </td><td>:</td><td> " + textbox285.value + "</td></tr>"; mail.body += "<table><tr><td>aragwathamruthadhi kashayam </td><td>:</td> <td>" + textbox286.value + " </td></tr>"; mail.body += "<tr><td>ashtavargam kashayam </td> <td> :</td><td> " + textbox287.value + "</td> </tr>"; mail.body += " <tr><td>balajeerakadi kashayam </td><td>:</td><td> " + textbox288.value + "</td></tr>"; mail.body += " <tr><td>balakulathadi kashayam </td><td>:</td><td> " + textbox289.value + "</td></tr>"; mail.body += " <tr><td>bhadradarvadi kashayam </td><td>:</td><td> " + textbox290.value + "</td></tr>"; mail.body += " <tr><td>bhruhathyadi kashayam </td><td>:</td><td> " + textbox291.value + "</td></tr>"; mail.body += "<tr><td>chiruvilwadi kashayam </td> <td> :</td><td> " + textbox292.value + "</td> </tr>"; mail.body += " <tr><td>chitrakadi kashayam </td><td>:</td><td> " + textbox293.value + "</td></tr>"; mail.body += " <tr><td>dasamoolakaduthrayam kashayam </td><td>:</td><td> " + textbox294.value + "</td></tr>"; mail.body += " <tr><td>dasamoolam kashayam </td><td>:</td><td> " + textbox295.value + "</td></tr>"; mail.body += "<table><tr><td>dasamoolarasnadi kashayam </td><td>:</td> <td>" + textbox296.value + " </td></tr>"; mail.body += "<tr><td>dhanadanayanadi kashayam </td> <td> :</td><td> " + textbox297.value + "</td> </tr>"; mail.body += " <tr><td>dhanwantharam iratty kashayam </td><td>:</td><td> " + textbox298.value + "</td></tr>"; mail.body += " <tr><td>dhanwantharam kashayam </td><td>:</td><td> " + textbox299.value + "</td></tr>"; mail.body += " <tr><td>drakshadi kashayam </td><td>:</td><td> " + textbox300.value + "</td></tr>"; mail.body += "<table><tr><td>nasikachoornam </td><td>:</td> <td>" + textbox301.value + " </td></tr>"; mail.body += "<tr><td>dusparsakadi kashayam </td> <td> :</td><td> " + textbox302.value + "</td> </tr>"; mail.body += " <tr><td>elakanadi kashayam </td><td>:</td><td> " + textbox303.value + "</td></tr>"; mail.body += " <tr><td>gandharavahasthadi kashayam </td><td>:</td><td> " + textbox304.value + "</td></tr>"; mail.body += " <tr><td>gulguluthikthakam kashayam </td><td>:</td><td> " + textbox305.value + "</td></tr>"; mail.body += "<table><tr><td>guloochyadi kashayam </td><td>:</td> <td>" + textbox306.value + " </td></tr>"; mail.body += "<tr><td>indukantham kashayam </td> <td> :</td><td> " + textbox307.value + "</td> </tr>"; mail.body += " <tr><td>kaidaryadi kashayam </td><td>:</td><td> " + textbox308.value + "</td></tr>"; mail.body += " <tr><td>kalasakadi kashayam </td><td>:</td><td> " + textbox309.value + "</td></tr>"; mail.body += " <tr><td>kanasathahawathi kashayam </td><td>:</td><td> " + textbox310.value + "</td></tr>"; mail.body += "<table><tr><td>kathakakhadirathi kashayam </td><td>:</td> <td>" + textbox311.value + " </td></tr>"; mail.body += "<tr><td>kokilakshadi kashayam </td> <td> :</td><td> " + textbox312.value + "</td> </tr>"; mail.body += "<table><tr><td>mahathikthakam kashayam </td><td>:</td> <td>" + textbox316.value + " </td></tr>"; mail.body += "<tr><td>manjishtadi kashayam </td> <td> :</td><td> " + textbox317.value + "</td> </tr>"; mail.body += " <tr><td>musaleekhadiradi kashayam </td><td>:</td><td> " + textbox318.value + "</td></tr>"; mail.body += " <tr><td>nayopayam kashayam </td><td>:</td><td> " + textbox319.value + "</td></tr>"; mail.body += " <tr><td>nimbadi kashayam </td><td>:</td><td> " + textbox320.value + "</td></tr>"; mail.body += "<table><tr><td>nisakhathakadi kashayam </td><td>:</td> <td>" + textbox321.value + " </td></tr>"; mail.body += "<tr><td>padathi kashayam </td> <td> :</td><td> " + textbox322.value + "</td> </tr>"; mail.body += " <tr><td>pathyapunarnnavadi kashayam </td><td>:</td><td> " + textbox323.value + "</td></tr>"; mail.body += " <tr><td>pathyashatgam kashayam </td><td>:</td><td> " + textbox324.value + "</td></tr>"; mail.body += " <tr><td>patolakadurohinyadi kashayam </td><td>:</td><td> " + textbox325.value + "</td></tr>"; mail.body += "<table><tr><td>patolamooladi kashayam </td><td>:</td> <td>" + textbox326.value + " </td></tr>"; mail.body += "<tr><td>prasarinyadi kashayam </td> <td> :</td><td> " + textbox327.value + "</td> </tr>"; mail.body += " <tr><td>punarnavadi kashayam </td><td>:</td><td> " + textbox328.value + "</td></tr>"; mail.body += " <tr><td>rasnadi kashayam </td><td>:</td><td> " + textbox329.value + "</td></tr>"; mail.body += " <tr><td>rasnadi special kashayam </td><td>:</td><td> " + textbox330.value + "</td></tr>"; mail.body += "<table><tr><td>rasnasapthakam kashayam </td><td>:</td> <td>" + textbox331.value + " </td></tr>"; mail.body += "<tr><td>rasnasundyadi kashayam </td> <td> :</td><td> " + textbox332.value + "</td> </tr>"; mail.body += " <tr><td>rasneirandadi kashayam </td><td>:</td><td> " + textbox333.value + "</td></tr>"; mail.body += " <tr><td>rasonadi kashayam </td><td>:</td><td> " + textbox334.value + "</td></tr>"; mail.body += " <tr><td>sahacharadi kashayam </td><td>:</td><td> " + textbox335.value + "</td></tr>"; mail.body += "<table><tr><td>sapthasaram kashayam </td><td>:</td> <td>" + textbox336.value + " </td></tr>"; mail.body += "<tr><td>sathavareechinnuruhathi kashayam </td> <td> :</td><td> " + textbox337.value + "</td> </tr>"; mail.body += " <tr><td>sathavareegopakanyadi kashayam </td><td>:</td><td> " + textbox338.value + "</td></tr>"; mail.body += " <tr><td>sukumaram kashayam </td><td>:</td><td> " + textbox339.value + "</td></tr>"; mail.body += " <tr><td>thikthakam kashayam </td><td>:</td><td> " + textbox340.value + "</td></tr>"; mail.body += " <tr><td>thrijathadi kashayam </td><td>:</td><td> " + textbox341.value + "</td></tr>"; mail.body += "<tr><td>varanadi kashayam </td> <td> :</td><td> " + textbox342.value + "</td> </tr>"; mail.body += " <tr><td>varasanadi kashayam </td><td>:</td><td> " + textbox343.value + "</td></tr>"; mail.body += " <tr><td>vasaguluchyadi kashayam </td><td>:</td><td> " + textbox344.value + "</td></tr>"; mail.body += " <tr><td>vidaryadi kashayam </td><td>:</td><td> " + textbox345.value + "</td></tr>"; mail.body += "<table><tr><td>vilangakrishnadi kashayam </td><td>:</td> <td>" + textbox346.value + " </td></tr>"; mail.body += "<tr><td>vyaghradi kashayam </td> <td> :</td><td> " + textbox347.value + "</td> </tr>"; mail.body += " <tr><td>vyoshadi kashayam </td><td>:</td><td> " + textbox348.value + "</td></tr>"; mail.body += " <tr><td>hamsapathyadi kashayam </td><td>:</td><td> " + textbox349.value + "</td></tr>"; mail.body += " <tr><td>agasthya rasayanam </td><td>:</td><td> " + textbox350.value + "</td></tr>"; mail.body += "<table><tr><td>agasthya rasayanam </td><td>:</td> <td>" + textbox351.value + " </td></tr>"; mail.body += "<tr><td>agasthya rasayanam </td> <td> :</td><td> " + textbox352.value + "</td> </tr>"; mail.body += " <tr><td>aswagandhadi lehyam </td><td>:</td><td> " + textbox353.value + "</td></tr>"; mail.body += " <tr><td>bahusalagulam </td><td>:</td><td> " + textbox354.value + "</td></tr>"; mail.body += " <tr><td>bahusalagulam </td><td>:</td><td> " + textbox355.value + "</td></tr>"; mail.body += "<table><tr><td>brahma rasayanam </td><td>:</td> <td>" + textbox356.value + " </td></tr>"; mail.body += "<tr><td>chinchadi lehyam </td> <td> :</td><td> " + textbox357.value + "</td> </tr>"; mail.body += " <tr><td>dasamoola rasayanam </td><td>:</td><td> " + textbox358.value + "</td></tr>"; mail.body += " <tr><td>dasamoola rasayanam </td><td>:</td><td> " + textbox359.value + "</td></tr>"; mail.body += " <tr><td>dasamoolahareethaki lehyam </td><td>:</td><td> " + textbox360.value + "</td></tr>"; mail.body += "<table><tr><td>dasamoolahareethaki lehyam </td><td>:</td> <td>" + textbox361.value + " </td></tr>"; mail.body += "<tr><td>drakshadi lehyam </td> <td> :</td><td> " + textbox362.value + "</td> </tr>"; mail.body += " <tr><td>hridyavirechanam </td><td>:</td><td> " + textbox363.value + "</td></tr>"; mail.body += " <tr><td>hridyavirechanam </td><td>:</td><td> " + textbox364.value + "</td></tr>"; mail.body += " <tr><td>kalyanagulam </td><td>:</td><td> " + textbox365.value + "</td></tr>"; mail.body += "<table><tr><td>kalyanagulam </td><td>:</td> <td>" + textbox366.value + " </td></tr>"; mail.body += "<tr><td>kooshmandarasayanam </td> <td> :</td><td> " + textbox367.value + "</td> </tr>"; mail.body += " <tr><td>kooshmandarasayanam </td><td>:</td><td> " + textbox368.value + "</td></tr>"; mail.body += " <tr><td>madhusnuhi rasayanam </td><td>:</td><td> " + textbox369.value + "</td></tr>"; mail.body += " <tr><td>manibhadram lehyam </td><td>:</td><td> " + textbox370.value + "</td></tr>"; mail.body += "<table><tr><td>manibhadram lehyam </td><td>:</td> <td>" + textbox371.value + " </td></tr>"; mail.body += "<tr><td>nayopayam lehyam </td> <td> :</td><td> " + textbox372.value + "</td> </tr>"; mail.body += " <tr><td>pulimkuzhambu lehyam </td><td>:</td><td> " + textbox373.value + "</td></tr>"; mail.body += " <tr><td>sathavareegulam </td><td>:</td><td> " + textbox374.value + "</td></tr>"; mail.body += " <tr><td>sathavareegulam </td><td>:</td><td> " + textbox375.value + "</td></tr>"; mail.body += "<table><tr><td>sukumara rasayanam </td><td>:</td> <td>" + textbox376.value + " </td></tr>"; mail.body += "<tr><td>thaleesapathradi vadakam </td> <td> :</td><td> " + textbox377.value + "</td> </tr>"; mail.body += " <tr><td>vidaryadi lehyam </td><td>:</td><td> " + textbox378.value + "</td></tr>"; mail.body += " <tr><td>vidaryadi lehyam </td><td>:</td><td> " + textbox379.value + "</td></tr>"; mail.body += " <tr><td>vilwadi lehyam </td><td>:</td><td> " + textbox380.value + "</td></tr>"; mail.body += "<table><tr><td>vilwadi lehyam </td><td>:</td> <td>" + textbox381.value + " </td></tr>"; mail.body += "<tr><td>vyoshadi vatakam </td> <td> :</td><td> " + textbox382.value + "</td> </tr>"; mail.body += " <tr><td>dhanwantharam kuzhambu </td><td>:</td><td> " + textbox383.value + "</td></tr>"; mail.body += " <tr><td>dhanwantharam kuzhambu </td><td>:</td><td> " + textbox384.value + "</td></tr>"; mail.body += " <tr><td>dhanwantharam kuzhambu </td><td>:</td><td> " + textbox385.value + "</td></tr>"; mail.body += "<table><tr><td>karpasasthyadi kuzhambu </td><td>:</td> <td>" + textbox386.value + " </td></tr>"; mail.body += "<tr><td>karpasasthyadi kuzhambu </td> <td> :</td><td> " + textbox387.value + "</td> </tr>"; mail.body += " <tr><td>karpasasthyadi kuzhambu </td><td>:</td><td> " + textbox388.value + "</td></tr>"; mail.body += " <tr><td>kottamchukkadi kuzhambu </td><td>:</td><td> " + textbox389.value + "</td></tr>"; mail.body += " <tr><td>kottamchukkadi kuzhambu </td><td>:</td><td> " + textbox390.value + "</td></tr>"; mail.body += " <tr><td>kottamchukkadi kuzhambu </td><td>:</td><td> " + textbox391.value + "</td></tr>"; mail.body += "<tr><td>nalpamaradi kuzhambu </td> <td> :</td><td> " + textbox392.value + "</td> </tr>"; mail.body += " <tr><td>prabanjanam kuzhambu </td><td>:</td><td> " + textbox393.value + "</td></tr>"; mail.body += " <tr><td>prabanjanam kuzhambu </td><td>:</td><td> " + textbox394.value + "</td></tr>"; mail.body += " <tr><td>prabanjanam kuzhambu </td><td>:</td><td> " + textbox395.value + "</td></tr>"; mail.body += "<table><tr><td>sahacharadi kuzhambu </td><td>:</td> <td>" + textbox396.value + " </td></tr>"; mail.body += "<tr><td>sahacharadi kuzhambu </td> <td> :</td><td> " + textbox397.value + "</td> </tr>"; mail.body += " <tr><td>sahacharadi kuzhambu </td><td>:</td><td> " + textbox398.value + "</td></tr>"; mail.body += " <tr><td>vozartho capsules </td><td>:</td><td> " + textbox399.value + "</td></tr>"; mail.body += " <tr><td>vozartho capsules </td><td>:</td><td> " + textbox400.value + "</td></tr>"; mail.body += "<table><tr><td>vozcuf plus syrup </td><td>:</td> <td>" + textbox401.value + " </td></tr>"; mail.body += "<tr><td>voze tone syrup </td> <td> :</td><td> " + textbox402.value + "</td> </tr>"; mail.body += " <tr><td>vozitex fort capsule </td><td>:</td><td> " + textbox403.value + "</td></tr>"; mail.body += " <tr><td>vozlax capsules </td><td>:</td><td> " + textbox404.value + "</td></tr>"; mail.body += " <tr><td>vozzyme syrup </td><td>:</td><td> " + textbox405.value + "</td></tr>"; mail.body += "<table><tr><td>ajamamsarasayanam </td><td>:</td> <td>" + textbox406.value + " </td></tr>"; mail.body += "<tr><td>amruthamalakee kashayam </td> <td> :</td><td> " + textbox407.value + "</td> </tr>"; mail.body += " <tr><td>bacare (pookula lehyam) </td><td>:</td><td> " + textbox408.value + "</td></tr>"; mail.body += " <tr><td>danthadavana choornam </td><td>:</td><td> " + textbox409.value + "</td></tr>"; mail.body += " <tr><td>nisamalakam choornam </td><td>:</td><td> " + textbox410.value + "</td></tr>"; mail.body += "<table><tr><td>snana choornam </td><td>:</td> <td>" + textbox411.value + " </td></tr>"; mail.body += "<tr><td>elaneer kuzhambu </td> <td> :</td><td> " + textbox412.value + "</td> </tr>"; mail.body += " <tr><td>chyavanaprasam </td><td>:</td><td> " + textbox413.value + "</td></tr>"; mail.body += " <tr><td>dhathryarishtam </td><td>:</td><td> " + textbox414.value + "</td></tr>"; mail.body += " <tr><td>dmj </td><td>:</td><td> " + textbox415.value + "</td></tr>"; mail.body += "<table><tr><td>neeleebhringadi c/oil </td><td>:</td> <td>" + textbox416.value + " </td></tr>"; mail.body += "<tr><td>neeleebhringadi c/oil </td> <td> :</td><td> " + textbox417.value + "</td> </tr>"; mail.body += " <tr><td>saraswatharishtam(gold) </td><td>:</td><td> " + textbox418.value + "</td></tr>"; mail.body += " <tr><td>thengin pookula rasayanam </td><td>:</td><td> " + textbox419.value + "</td></tr>"; mail.body += " <tr><td>dasamoolarasayanam </td><td>:</td><td> " + textbox420.value + "</td></tr>"; mail.body += "<table><tr><td>dhanyamlam </td><td>:</td> <td>" + textbox421.value + " </td></tr>"; mail.body += "<tr><td>dhanyamlam </td> <td> :</td><td> " + textbox422.value + "</td> </tr>"; mail.body += " <tr><td>hamsapathyadi kashayam </td><td>:</td><td> " + textbox423.value + "</td></tr>"; mail.body += " <tr><td>narasimhachoornam </td><td>:</td><td> " + textbox424.value + "</td></tr>"; mail.body += " <tr><td>piheal </td><td>:</td><td> " + textbox425.value + "</td></tr>"; mail.body += "<table><tr><td>rasonadi dravakam </td><td>:</td> <td>" + textbox426.value + " </td></tr>"; mail.body += "<tr><td>sthiradi kashayam </td> <td> :</td><td> " + textbox427.value + "</td> </tr>"; mail.body += " <tr><td>vyoshamritham </td><td>:</td><td> " + textbox428.value + "</td></tr>"; // email subject mail.subject = "order / buy submission www.domain.com "; mail.bodyformat = mailformat.html; smtpmail.smtpserver = "relay-hosting.secureserver.net"; try { newval = true; smtpmail.send(mail); } catch (exception ex) { newval = false; } if (newval == true) { response.redirect("order_reply.aspx"); } else if (newval == false) { response.redirect("order_reply.aspx"); } } }
iterate through text boxes in form can like:
string body= string.empty; foreach (control control in this.controls) { if (control textbox) { //get text textbox string text_content = control.value; //make sure not empty if (!string.isnullorempty(text_content)) { body += /*all mumbo jumbo html table data + */ text_content; } } } mail.body = body;
Comments
Post a Comment