Advertisement

05.02.2006 at 05:52PM PDT, ID: 21835755
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

How can I modify this script to write HTML to the body of an email?

Asked by indyng in Active Server Pages (ASP)

Tags: ,

Hi Experts,

How can I modify this script to write HTML to the body of an email?

I have the following but it does not work.

<%
    Set rs=Server.CreateObject("ADODB.Recordset")

    ' Query Issue To Export

    strSQL = "SELECT [Issue To Export].ShipmentNo, [Issue To Export].ContID, [Issue To Export].Pallets, ShipFrom.ShipFrom, [Issue To Export].IssueTo, [Issue To Export].ApptDateTime, [Issue To Export].DropOrStay,[Issue To Export].ExternalNotes"
    strSQL = strSQL & " FROM [Issue To Export] INNER JOIN (Load INNER JOIN ShipFrom ON Load.ShipFromID = ShipFrom.ShipFromID) ON [Issue To Export].LoadID = Load.LoadID"
    strSQL = strSQL & " WHERE ((([Issue To Export].ExportBy)=" & Session("User_Key") & "));"
    rs.Open strSQL,conn

  strBody = "<TABLE border='1' style='border-collapse: collapse;border: 1px solid black;' cellspacing='2' width='100%'>"  
  strBody = strBody & "<tr style='border: 1px solid black;'>"
  strBody = strBody & "<td style='border: 1px solid black;' width='2%' align='center'>"
  strBody = strBody & "<FONT face='arial' size='2'><b>#</b></FONT>"
  strBody = strBody & "</td>"

  strBody = strBody & "<td style='border: 1px solid black;' width='6%' align='center'>"
  strBody = strBody & "<FONT face='arial' size='2'><b>Shipment #</b></FONT>"
  strBody = strBody & "</td>"

  strBody = strBody & "<td style='border: 1px solid black;' width='8%' align='center'>"
  strBody = strBody & "<FONT face='arial' size='2'><b>Container</b></FONT>"
  strBody = strBody & "</td>"

  strBody = strBody & "<td style='border: 1px solid black;' width='4%' align='center'>"
  strBody = strBody & "<FONT face='arial' size='2'><b>Pallets</b></FONT>"
  strBody = strBody & "</td>"

  strBody = strBody & "<td style='border: 1px solid black;' width='6%' align='center'>"
  strBody = strBody & "<FONT face='arial' size='2'><b>Ship From</b></FONT>"
  strBody = strBody & "</td>"

  strBody = strBody & "<td style='border: 1px solid black;' width='28%' align='center'>"
  strBody = strBody & "<FONT face='arial' size='2'><b>Issue To</b></FONT>"
  strBody = strBody & "</td>"

  strBody = strBody & "<td style='border: 1px solid black;' width='12%' align='left'>"
  strBody = strBody & "<FONT face='arial' size='2'><b>Appt. Date Time</b></FONT>"
  strBody = strBody & "</td>"

  strBody = strBody & "<td style='border: 1px solid black;' width='5%' align='center'>"
  strBody = strBody & "<FONT face='arial' size='2'><b>Drop/Stay</b></FONT>"
  strBody = strBody & "</td>"

  strBody = strBody & "<td style='border: 1px solid black;' width='31%' align='center'>"
  strBody = strBody & "<FONT face='arial' size='2'><b>Notes</b></FONT>"
  strBody = strBody & "</td>"

  strBody = strBody & "</tr>"

  WHILE NOT rs.EOF

    strBody = strBody & "<tr style='border: 1px solid black;'>"
    strBody = strBody & "<td style='border: 1px solid black;' width='2%'align='center'>"
    strBody = strBody & "<FONT face='arial' size='2'>" & i & "</b></FONT>"
    strBody = strBody & "</td>"

    strBody = strBody & "<td style='border: 1px solid black;' width='6%' align='center'>"
    strBody = strBody & "<FONT face='arial' size='2'>" & rs("ShipmentNo") & "</FONT>"
    strBody = strBody & "</td>"

    strBody = strBody & "<td style='border: 1px solid black;' width='8%' align='center'>"
    strBody = strBody & "<FONT face='arial' size='2'>" & rs("ContID") & "</FONT>"
    strBody = strBody & "</td>"

    strBody = strBody & "<td style='border: 1px solid black;' width='4%' align='center'>"
    strBody = strBody & "<FONT face='arial' size='2'>" & rs("Pallets") & "</FONT>"
    strBody = strBody & "</td>"

    strBody = strBody & "<td style='border: 1px solid black;' width='6%' align='center'>"
    strBody = strBody & "<FONT face='arial' size='2'>" & rs("ShipFrom") & "</FONT>"
    strBody = strBody & "</td>"

    strBody = strBody & "<td style='border: 1px solid black;' width='28%' align='left'>"
    strBody = strBody & "<FONT face='arial' size='2'>" & rs("IssueTo") & "</FONT>"
    strBody = strBody & "</td>"

    strBody = strBody & "<td style='border: 1px solid black;' width='12%' align='left'>"
    strBody = strBody & "<FONT face='arial' size='2'>" & rs("ApptDateTime") & "</FONT>"
    strBody = strBody & "</td>"

    strBody = strBody & "<td style='border: 1px solid black;' width='5%' align='center'>"
    strBody = strBody & "<FONT face='arial' size='2'>" & rs("DropOrStay") & "</FONT>"
    strBody = strBody & "</td>"

    strBody = strBody & "<td style='border: 1px solid black;' width='31%' align='center'>"
    strBody = strBody & "<FONT face='arial' size='2'>" & rs("ExternalNotes") & "</FONT>"
    strBody = strBody & "</td>"

    strBody = strBody & "</tr>"

    i = i + 1

    rs.MoveNext

  WEND

  strBody = strBody & "</TABLE>"
%>

<FORM><INPUT CLASS="submitlong" TYPE="button" onclick="parent.location='mailto:aaa.bbb@xxx.com?subject=<%Response.Write strSubject %> &body=<%=Replace( strBody, vbCrLf, "%0D%0A") %>'"   value="Copy to Email" ></FORM>


THANKS


Start Free Trial
[+][-]05.02.2006 at 05:59PM PDT, ID: 16592165

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2006 at 06:00PM PDT, ID: 16592174

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2006 at 06:11PM PDT, ID: 16592232

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.02.2006 at 06:14PM PDT, ID: 16592246

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.02.2006 at 06:17PM PDT, ID: 16592257

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2006 at 06:19PM PDT, ID: 16592271

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2006 at 07:02PM PDT, ID: 16592472

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2006 at 07:04PM PDT, ID: 16592482

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2006 at 07:09PM PDT, ID: 16592499

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.03.2006 at 03:39AM PDT, ID: 16594787

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.03.2006 at 05:04AM PDT, ID: 16595313

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.03.2006 at 05:54AM PDT, ID: 16595661

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.03.2006 at 05:54AM PDT, ID: 16595664

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: mailto, script
Sign Up Now!
Solution Provided By: alorentz
Participating Experts: 4
Solution Grade: A
 
 
[+][-]05.04.2006 at 06:29AM PDT, ID: 16605255

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.04.2006 at 06:47AM PDT, ID: 16605435

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.04.2006 at 07:04AM PDT, ID: 16605684

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32