A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , ,

Pure HTML Formatting in Mailto code





 
 
Thread Tools Display Modes
  #1  
Old April 7th 06, 08:32 AM posted to microsoft.public.outlook.program_vba
franciscusf@gmail.com
external usenet poster
 
Posts: 2
Default Pure HTML Formatting in Mailto code

Has anyone know how to code in javascript for mailto code with the HTML
formatting to clients (not in ASP/PHP/.NET coding, normal HTML coding
only)?

I'm trying to send a tell-a-friend form with referee emails attached to
the bcc field. However, I need to know how to send a HTML email through
this email....

I've open the Outlook correctly however, it seems that the Outlook that
I open with the code display in rich text formatting instead of HTML
formatting though I'm not specifying anything for the formatting in the
code.

Here is the snippet of the code:

--------------------------------------------------------------------------------------------------------------------------------------
var to = "";
var subject = "Testing email, please do not reply";
var body =
"Testing email only......";
var bcc1 = document.formname.fieldname1.value;
var bcc2 = document.formname.fieldname2.value;
var bcc3 = document.formname.fieldname3.value;
var bcc4 = document.formname.fieldname4.value;
var bcc5 = document.formname.fieldname5.value;
if (!bcc1.length=='')
{
if (!bcc2.length=='')
{
if (!bcc3.length=='')
{
if (!bcc4.length=='')
{
if (!bcc5.length=='')
{
var bcc = bcc1 + ", " + bcc2 +
", " + bcc3 + ", " + bcc4 + ", "
+ bcc5;
}
else
{
var bcc = bcc1 + ", " + bcc2 +
", " + bcc3 + ", " + bcc4;
}
}
else
{
var bcc = bcc1 + ", " + bcc2 + ", " +
bcc3;
}
}
else
{
var bcc = bcc1 + ", " + bcc2;
}
}
else
{
var bcc = bcc1;
}
var doc = "mailto:" + to +
"?bcc=" + bcc +
"&subject=" + escape(subject) +
"&body=" + escape(body);
}

window.location = doc;
}

}

--------------------------------------------------------------------------------------------------------------------------------------

Thanks a lot for the help and any help would be appreciated

-cuzzie-

Ads
  #2  
Old April 7th 06, 10:14 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 817
Default Pure HTML Formatting in Mailto code

No. You'd need client side script that automates the Outlook Object Model to
specify HTML formatting.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


" wrote:

Has anyone know how to code in javascript for mailto code with the HTML
formatting to clients (not in ASP/PHP/.NET coding, normal HTML coding
only)?

I'm trying to send a tell-a-friend form with referee emails attached to
the bcc field. However, I need to know how to send a HTML email through
this email....

I've open the Outlook correctly however, it seems that the Outlook that
I open with the code display in rich text formatting instead of HTML
formatting though I'm not specifying anything for the formatting in the
code.

Here is the snippet of the code:

--------------------------------------------------------------------------------------------------------------------------------------
var to = "";
var subject = "Testing email, please do not reply";
var body =
"Testing email only......";
var bcc1 = document.formname.fieldname1.value;
var bcc2 = document.formname.fieldname2.value;
var bcc3 = document.formname.fieldname3.value;
var bcc4 = document.formname.fieldname4.value;
var bcc5 = document.formname.fieldname5.value;
if (!bcc1.length=='')
{
if (!bcc2.length=='')
{
if (!bcc3.length=='')
{
if (!bcc4.length=='')
{
if (!bcc5.length=='')
{
var bcc = bcc1 + ", " + bcc2 +
", " + bcc3 + ", " + bcc4 + ", "
+ bcc5;
}
else
{
var bcc = bcc1 + ", " + bcc2 +
", " + bcc3 + ", " + bcc4;
}
}
else
{
var bcc = bcc1 + ", " + bcc2 + ", " +
bcc3;
}
}
else
{
var bcc = bcc1 + ", " + bcc2;
}
}
else
{
var bcc = bcc1;
}
var doc = "mailto:" + to +
"?bcc=" + bcc +
"&subject=" + escape(subject) +
"&body=" + escape(body);
}

window.location = doc;
}

}

--------------------------------------------------------------------------------------------------------------------------------------

Thanks a lot for the help and any help would be appreciated

-cuzzie-


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Corrupted Mailto Key in Registry VA Dave Outlook Express 6 August 8th 08 10:31 PM
Pure HTML Formatting in Javascript Code franciscusf@gmail.com Outlook - General Queries 1 April 6th 06 03:47 PM
OWA mailto links JPawlak Outlook - General Queries 4 April 3rd 06 03:19 PM
Mailto: formatting reply peter@psyche.demon.co.uk Outlook - Using Forms 0 February 20th 06 08:27 AM
ICS attachments shows as HTML code and can't answer Zanvetto Outlook - Calandaring 0 February 16th 06 09:04 PM


All times are GMT +1. The time now is 02:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Short Bowel Syndrome - Project management articles - Loans - Dubai Property - Shares