Forum guidelines
AuthorQuestion
need an alternative to "mailto" to open new mail message
Posted on: 20 Aug 2009

Hi,

 

We are developing a portal.

There is a requirement to open new mail message in the outlook of user machine with the TO, CC, BCC populated programmatically.

 

To achieve this we used  the following syntax

"mailto:mail1@domain.com?cc=mail2@domain.com&bcc=mail3@domain.com"

 

This works fine when the number of recipients is less. However, we need to populate the To, CC, BCC list from the result set of a query which may be even more than 1000 mail ids. In such scenarios the above method fails.

 

I came to know that the maximum limit of characters allowed is 456 when browsing through the following link

http://lists.evolt.org/archive/Week-of-Mon-20010813/055130.html

 

If any of you know how to overcome this limitation of "mailto" or an alternative to "mailto", kindly let me know.

 

Thanks in advance!

Regards,

Prabhakaran.C

AuthorReply
Re: need an alternative to "mailto" to open new mail message
Posted on: 31 Oct 2009  
Yes, the mailto protocol is explicitly designed to be used to create simple messages. It is explicitly designed to not be used in the manner you need. Are you using .Net? If so then look at the System.Net.Mail Namespace, as in: http://msdn.microsoft.com/en-us/library/system.net.mail.aspx If not .Net, then if it is Windows, use CDO for Windows 2000, as in: http://msdn.microsoft.com/en-us/library/ms527525(EXCHG.10).aspx http://msdn.microsoft.com/en-us/library/ms978698.aspx Note that there are more than one version of software called CDO and some of them do things that another CDO does not.
Thinking is a feeling; pleasant for some and unpleasant for others.
Employers - Post Free Jobs

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.