Criei um formulário de e-mail para o meu trabalho. Basicamente, temos um e-mail de "enlatado" para ir para fora, que seria copiar e colar. Criei o formulário para que nós pode clicar em uma opção e, em seguida, clique em "enviar e-mail" e a mensagem será exibida com um email do outlook. Aqui está o meu código abaixo. A questão é que o outlook não é processamento de corpo do email em HTML. Como para corrigir isso? Eu tenho links e quebras de linha em lá que gostaria de usar.
Obrigado,
<!doctype HTML>
<HTML>
<HEAD>
<TITLE>E-mails</TITLE>
<SCRIPT type="text/javascript">
function CaptureInstallInfo()
{
var ToInfo = document.getElementById("ToBox").value;
var CCBox = document.getElementById("CCBox").value;
var Install = "Main Order Contact
Thank you for your order. We are currently processing the order referenced below. A Solution Delivery Coordinator will be assigned to manage the deployment of the requested services and will conduct an initial introduction within 2 Business Days.
Order: ORD#
CWP CWP#
In the meantime, please contact <a href=mailto:someone@someone.net>Service Engagement</a> with any questions.
Regards,
Service Engagement.";
document.getElementById("To").innerHTML = "
" + ToInfo + " " + CCBox + " " + Install;
}
function CaptureRenewalInfo()
{
var ToInfo = document.getElementById("ToBox").value;
var CCBox = document.getElementById("CCBox").value;
var SubjectBox = "Renewal Order";
var Renewal = "Main Order Contact
Thank you for your renewal order. We are currently processing the order referenced below. A Solution Delivery Coordinator will be assigned to manage the edployment of the requested services and will conduct an initial introduction within 2 Business Days.
Order: ORD#
CWP CWP#
In the meantime, please contact <a href=mailto:someone@someone.net>Service Engagement</a> with any questions.
Regards,
Service Engagement.";
var RenewalEmail = "Main Order Contact%0A%0A
Thank you for your renewal order. We are currently processing the order referenced below. A Solution Delivery Coordinator will be assigned to manage the edployment of the requested services and will conduct an initial introduction within 2 Business Days.%0A%0A
Order: ORD#
%0A%0A
CWP CWP#
%0A%0A
In the meantime, please contact <a href=mailto:someone@someone.net>Service Engagement</a> with any questions.
%0A%0ARegards,
Service Engagement.";
document.getElementById("CC").innerHTML = "
" + ToInfo + " " + CCBox + " " + Renewal + "
";
document.getElementById("BodyOfEmail").innerHTML = "If the above is correct, Please send this as an " + '<a href="mailto:' + ToInfo + '?subject=' + SubjectBox + '&cc=' + CCBox + '&body=' + RenewalEmail + ' ">email</a>';
}
</SCRIPT>
</HEAD>
<body>
<input type="textbox" id="ToBox">& nbsp <label for="ToBox">para:</label>
<input type="textbox" id="CCBox">& nbsp <label for="CCBox">CC:</label>
<input type="button" value="Install" onclick="CaptureInstallInfo()">
<input type="button" value="Renewal" onclick="CaptureRenewalInfo()">
<span id="To"></span>
<span id="CC"></span>
<span id="BodyOfEmail"></span>
</body>
</HTML>