Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can the impossible be done? - mailto link open names popup?[/]

Status
Not open for further replies.

kloner

Programmer
May 15, 2000
79
AU
Hi all.

I have created a javascript mail link on the fly and then it opens the mail link. We use outlook. What I would like is when the mail link is opened and the email is populated in the mail client, is to see the 'select names' box be opened.

example, instead of clicking on the 'to' button, it automatically opens.

Any ideas?

CODE :

<script language=&quot;JavaScript&quot;>
function popupMessage() {
// SET MESSAGE VALUES
var to = &quot;aa@aa.com&quot;;
var subject = &quot;My subject&quot;;
var body = &quot;<%= strEmailBody %>&quot;;

// BUILD MAIL MESSAGE COMPONENTS
var doc = &quot;mailto:&quot; + to +
&quot;&subject=&quot; + escape(subject) +
&quot;&body=&quot; + escape(body);

// POP UP EMAIL MESSAGE WINDOW
window.location = doc;
window.close();
}
</script>

Regards,
kloner


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top