Is it supposed to be ?CC or &CC
Tracy
-----Original Message-----
From: MB Software Solutions, LLC
Sent: Thursday, October 29, 2009 8:40 AM
In our app, we allow the user to click on a label and it launches the email
program (...code is below). Problem is that the CC and BCC fields come up
"<unknown>" in OE6, but not other email programs. My challenge is to find
out why it says "<unknown>" in OE6 and better yet, find a way for it just to
come up blank instead of saying "<unknown>". Ideas?
tia!
--Mike
LOCAL lcMail, lcMailTo, lcCC, lcBCC, lcSubject, lcBody
STORE '' TO lcMail, lcMailTo, lcCC, lcBCC, lcSubject, lcBody
IF !EMPTY(this.cMailTo)
TRY
lcMailTo = ALLTRIM(EVALUATE(This.cMailTo))
CATCH
lcMailTo = ALLTRIM(This.cMailTo)
ENDTRY
ENDIF
IF !EMPTY(This.cCC)
TRY
lcCC = ALLTRIM(EVALUATE(This.cCC))
CATCH
lcCC = ALLTRIM(This.cCC)
ENDTRY
ENDIF
IF !EMPTY(This.cBCC)
TRY
lcBCC = ALLTRIM(EVALUATE(This.cBCC))
CATCH
lcBCC = ALLTRIM(This.cBCC)
ENDTRY
ENDIF
IF !EMPTY(This.cSubject)
TRY
lcSubject = ALLTRIM(EVALUATE(This.cSubject))
CATCH
lcSubject = This.cSubject
ENDTRY
ENDIF
IF !EMPTY(This.cBody)
TRY
lcBody = ALLTRIM(EVALUATE(This.cBody))
CATCH
lcBody = this.cBody
ENDTRY
ENDIF
IF EMPTY(lcMailTo)
MESSAGEBOX("The email address is empty",0+48,'Symplicity') ELSE
lcMail = "mailto:"+lcMailTo+;
"?CC= "+lcCC+"&BCC= "+lcBCC+"&Subject= "+lcSubject+"&Body=
"+lcBody
TRY
ShellExecute(0,"open",lcMail,"","",1)
CATCH
MESSAGEBOX("Symplicity could not launch your email
program",16,'Symplicity')
ENDTRY
ENDIF
--
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/000101ca589c$c5837670$508a63...@com
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.