Skip to main content
Inspiring
October 21, 2010
Question

query, email addresses and Outlook

  • October 21, 2010
  • 1 reply
  • 466 views

Hi,

I have a query that returns a list of email addresses.  I want to populate the to or cc field in Outlook programmatically?  How can I do this?  I'm trying to find a way to open the user's email client and put the email addresses from my query into the cc field ideally.

Any way to do this?

I know this:  <a href="mailto:me@abc.com">me@abc.com</a> will work, but that works because it's a hyperlink.  Is there another way to simulate a hyperlink being clicked?

-ws

This topic has been closed for replies.

1 reply

ilssac
Inspiring
October 21, 2010

WestSide wrote:


I'm trying to find a way to open the user's email client and put the email addresses from my query into the cc field ideally.

Any way to do this?

Basic answer is NO!

Once you ever, as a developer of web applications that run on a server, say anything like: "open the user's {blank} client" you have overstepped the bounds of client server applications.  If we, web developers, could open what ever client tools we wanted, just imagine the havoc nefarious web developers (aka hackers) could do.

But you can provide links, that if the client has chosen configure their system to do so, would open the client tool request.  I.E. for e-mail you could provide a "mail to" link with the proper suggestions for from, to, cc, subject etc.

http://www.ianr.unl.edu/internet/mailto.html

WestSideAuthor
Inspiring
October 21, 2010

I ended up getting it to work via the form tag.  I used "mailto" in the action attribute of the form tag.

-ws