Sending mail trough ShellExecute
Posted on 2001-09-12
My strings question has transformed into:
I need to send an e-mail trough outlook(express), or whatever e-mail prog the user is using.
So i cannot use winsock to send it out directly.
I used shellexecute in the followin way:
strMailTo = "mailto:" & tmpTo & tmpBody & tmpCC & tmpSubject ' & tmpBCC
'this will launch the statement from the
' default mail handler
Call ShellExecute(0&, vbNullString, strMailTo, vbNullString, vbNullString, vbNormalFocus)
Now, the problem is that shellexecute does not seem to accept messages longer than 256 bytes (?). And i need to send messages up to 2K. (And if posible with images attached, but i have no idea - apart from contructing a mime mail message wich will be 50k or so- how to do that trough shellexecute.
Any ideas ?