www.webdeveloper.com
Results 1 to 2 of 2

Thread: URGENT: Format .NET Email message

  1. #1
    Join Date
    Aug 2008
    Posts
    37

    Arrow URGENT: Format .NET Email message

    I have a form that I want to send out over the email. The email part is working fine but I can't figure out how to get it to format the way I want.

    I used to have this page in classic ASP but had to switch it over to .NET in order to attach files to the email.

    The template that I had looked like this:

    HTML Code:
    <html>
    <head>
    <title>CIT Req</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <style type="text/css">
    
    h1 {
    	font-size: 12pt;br
    	font-weight: bold;
    }
    
    body {
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 10pt;
    }
    
    td {
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 10pt;
    	border-top: 1px dashed #DDD;
    }
    -->
    </style>
    </head>
    
    
    <body>
    <h1>Corp IT Request</h1>
    <h2>Approval Managers ONLY: Please forward your approval to corp_it_reqs@raytheon.com.</h2>
    <h2>Include all attachments and copy the orignal requestor.</h2>
    <p>A request for Corp IT has been submitted from the website.<br />
    
      The following details were specified:</p>
    <table border="0" cellspacing="0" cellpadding="4">
      <tr valign="top"> 
        <td><font color="#0000CC">Name:</font></td>
        <td>[$name$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Email:</font></td>
        <td><a href="mailto:[$mailfrom$]">[$mailfrom$]</a></td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Approver:</font></td>
        <td>[$approver$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Approver E-mail:</font></td>
        <td><a href="mailto:[$appemail$]">[$appemail$]</a></td>
      </tr>
    
      <tr valign="top" bgcolor="#FFFFCC"> 
        <td colspan="2"><b>Order Details</b></td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Aquisition Type:</font></td>
        <td>[$acqtype$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">AR #:</font></td>
        <td>[$arnum$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Cost Center:</font></td>
        <td>[$costcenter$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Order Number:</font></td>
        <td>[$ordernum$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Statistical Order Number/Cost Center:</font></td>
        <td>[$statordernum$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">NWA:</font></td>
        <td>[$NWA$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Product Need Date:</font></td>
        <td>[$needmonth$] [$needday$],[$needyear$]</td>
      </tr>.
    
     <tr valign="top" bgcolor="#FFFFCC"> 
        <td colspan="2"><b>Ship To:</b></td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Name:</font></td>
        <td>[$shiptoname$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Address:</font></td>
        <td>[$shiptoaddress$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Mail Drop:</font></td>
        <td>[$shiptomaildrop$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">City, State Zip:</font></td>
        <td>[$shiptocity$],[$shiptostate$] [$shiptozip$]</td>
      </tr>
     <tr valign="top" bgcolor="#FFFFCC"> 
        <td colspan="2"><b>Final Destination:</b></td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Single:</font></td>
        <td>[$hidsingle$]</td>
      </tr>
    <tr valign="top"> 
        <td><font color="#0000CC">Name:</font></td>
        <td>[$finaldestname$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Address:</font></td>
        <td>[$finaldestaddress$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Mail Drop:</font></td>
        <td>[$finaldestmaildrop$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">City, State Zip:</font></td>
        <td>[$finaldestcity$],[$finaldeststate$] [$finaldestzip$]</td>
      </tr>
      <tr valign="top" bgcolor="#FFFFCC"> 
        <td colspan="2"><b>Multiple Final Destinations:</b></td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Enterprise Wide:</font></td>
        <td>[$hidenterprise$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Selective:</font></td>
        <td>[$hidselective$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Selective Comments:</font></td>
        <td>[$multifdcomments$]</td>
      </tr>
    
    
      <tr valign="top" bgcolor="#FFFFCC"> 
        <td colspan="2"><b>Quote Details:</b></td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Item Description:</font></td>
        <td>[$description$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Quantity:</font></td>
        <td>[$quantity$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Unit Cost:</font></td>
        <td>$[$unitcost$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Total Cost:</font></td>
        <td>$[$totalcost$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Mfgr's part #:</font></td>
        <td>[$partnum$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Supplier Name:</font></td>
        <td>[$supplier$]</td>
      </tr>
      <tr valign="top" bgcolor="#FFFFCC"> 
        <td colspan="2"><b>Supplier Contact:</b></td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Name:</font></td>
        <td>[$suppliername$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Phone:</font></td>
        <td>[$supplierphone$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">E-mail:</font></td>
        <td>[$supplieremail$]</td>
      </tr>
      <tr valign="top"> 
        <td><font color="#0000CC">Additional Comments:</font></td>
        <td>[$comments$]</td>
      </tr>
    </table>
    
    <p>&nbsp;</p>
    </body>
    </html>
    Is there anyway to use this?

  2. #2
    Join Date
    Nov 2006
    Location
    Springfield, MO
    Posts
    1,541
    It can be done in .NET, but not the way you're doing it. Are you grabbing the names, etc., from a database table and just looping through for each one and sending an HTML email out?
    Ryan Butler

    Ryan Butler.org

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles