ShellExecute restriction?
-
I am using the ShellExecute API to launch default E-mail client like "emailto:Email Ids". It is working well but when the number of characters exceed 1852, its not launching the E-mail client. The API is still returning success code only. My default mail client is Mozilla thunderbird. Is this a restriction in the API or any chance for E-mail client? Thanks
-- "Programming is an art that fights back!"
-
I am using the ShellExecute API to launch default E-mail client like "emailto:Email Ids". It is working well but when the number of characters exceed 1852, its not launching the E-mail client. The API is still returning success code only. My default mail client is Mozilla thunderbird. Is this a restriction in the API or any chance for E-mail client? Thanks
-- "Programming is an art that fights back!"
rp_suman wrote:
number of characters exceed 1852, its
Number of characters of what? :confused:
It is a crappy thing, but it's life -^ Carlo Pallini
-
I am using the ShellExecute API to launch default E-mail client like "emailto:Email Ids". It is working well but when the number of characters exceed 1852, its not launching the E-mail client. The API is still returning success code only. My default mail client is Mozilla thunderbird. Is this a restriction in the API or any chance for E-mail client? Thanks
-- "Programming is an art that fights back!"
Are you by any chance running Win2k or earlier? This article[^] may be of interest. The resulting command line may exceed 2047 chars. However, I personally find an email address that exceeds 1852 chars to be rather uncommon. :suss:
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown -
Are you by any chance running Win2k or earlier? This article[^] may be of interest. The resulting command line may exceed 2047 chars. However, I personally find an email address that exceeds 1852 chars to be rather uncommon. :suss:
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown -
I am using the ShellExecute API to launch default E-mail client like "emailto:Email Ids". It is working well but when the number of characters exceed 1852, its not launching the E-mail client. The API is still returning success code only. My default mail client is Mozilla thunderbird. Is this a restriction in the API or any chance for E-mail client? Thanks
-- "Programming is an art that fights back!"
I'm assuming that you are clubbing too many email ids separated by semicolons? I tried by increasing the no. of email ids with every trial. At some point,
ShellExecute
started returning a value NOT greater than 32 (it returns a value greater than 32 if it succeeds) and the return value was, upon failure,SE_ERR_ACCESSDENIED
. You might want to check the return value properly.It is a crappy thing, but it's life -^ Carlo Pallini
-
I am using the ShellExecute API to launch default E-mail client like "emailto:Email Ids". It is working well but when the number of characters exceed 1852, its not launching the E-mail client. The API is still returning success code only. My default mail client is Mozilla thunderbird. Is this a restriction in the API or any chance for E-mail client? Thanks
-- "Programming is an art that fights back!"
-
Are you by any chance running Win2k or earlier? This article[^] may be of interest. The resulting command line may exceed 2047 chars. However, I personally find an email address that exceeds 1852 chars to be rather uncommon. :suss:
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknownRoger Stoltz wrote:
However, I personally find an email address that exceeds 1852 chars to be rather uncommon.
Should be rather OK as long as you don't have to spell your email ID out to someone over the phone. :laugh:
It is a crappy thing, but it's life -^ Carlo Pallini