length of subject

36 views
Skip to first unread message

Tamás Csepcsényi

unread,
Nov 8, 2013, 3:06:41 PM11/8/13
to mailsend...@googlegroups.com
What is the limit of subject's length?
Runs 42 return value, but the email did not go away. Why is that?


int res = ShellExecuteA(NULL, "open", "mailsend1.17b14.exe", MailSendString,"",SW_HIDE);
What is the limit of MailSendString's length?

I use it in mql4.

Can somebody help me?

Muhammad Muquit

unread,
Nov 8, 2013, 8:57:34 PM11/8/13
to mailsend...@googlegroups.com
mailsend itself does not enforce any limit on length of subject. It is platform dependent. I do not know what kind of limit windows enforces for length of each argument of a command line. you have to run it in verbose mode to see what's going on.
Message has been deleted

Tamás Csepcsényi

unread,
Nov 9, 2013, 3:32:05 AM11/9/13
to mailsend...@googlegroups.com
Thx.
The length of command line not too length/<2048/, how to switch verbose mode in ShellExecute?

Muhammad Muquit

unread,
Nov 9, 2013, 12:56:35 PM11/9/13
to mailsend...@googlegroups.com
in your MailSendString, add:  -v -log \"path\\of\\log.txt\"
Then look at the log file to see if there are any errors.

Thanks.
Message has been deleted

Tamás Csepcsényi

unread,
Nov 10, 2013, 2:34:49 PM11/10/13
to mailsend...@googlegroups.com
Thanks, the "-v" is
necessary? The log file made
without "-v"

Muhammad Muquit

unread,
Nov 10, 2013, 2:40:35 PM11/10/13
to mailsend...@googlegroups.com
without -v, you probably will not see anything useful. That code needs some cleanup.

Tamás Csepcsényi

unread,
Nov 18, 2013, 6:49:53 AM11/18/13
to mailsend...@googlegroups.com
thx, it is great code!
Reply all
Reply to author
Forward
0 new messages