|
Home > Archive > dBASE Programming > January 2007 > email , outlook
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| I know there's a sendMail.cc in dUFLP for sending email via outlook express.
is there a claas for sending email to Outlook ? ( not outlook express )
| |
| Ken Mayer [dBVIPS] 2007-01-09, 1:30 am |
| Eric wrote:
> I know there's a sendMail.cc in dUFLP for sending email via outlook express.
>
> is there a claas for sending email to Outlook ? ( not outlook express )
There's no way to know what the email client will be on the other end, I
am really not sure what you want here.
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
| |
|
| /* sendmail.cc
----------------------------------------------------------------
Description:
Send e-mail using Outlook Express (IE4 or Higher)
Supports attachments.
The class creates a properly formatted disk file with an EML
extension. It then runs the EML file which calls up
Outlook Express.
I am looking for a .cc which can Send e-mail using MS-Office Outlook ( 2000
or Higher) ........
Thanks!
"Ken Mayer [dBVIPS]" <dbase@_nospam_goldenstag.net> wrote in message
news:BZqcKwbKHHA.1216@news-server...
> Eric wrote:
>
> There's no way to know what the email client will be on the other end, I
> am really not sure what you want here.
>
> Ken
>
> --
> /(Opinions expressed are purely my own, not those of dataBased
> Intelligence, Inc.)/
>
> *Ken Mayer* [dBVIPS]
> /Golden Stag Productions/
> dBASE at goldenstag dot net
> http://www.goldenstag.net/dbase/dBASEBook.htm
> http://www.goldenstag.net/GSP
> http://www.goldenstag.net/dbase
| |
| Roland Wingerter 2007-01-09, 1:30 am |
| "Eric" wrote
>I know there's a sendMail.cc in dUFLP for sending email via outlook
>express.
>
> is there a claas for sending email to Outlook ? ( not outlook express )
--------
Try the function below, it will use the active e-Mail client.
I copied the code from the German dBASE wiki:
http://de.wikibooks.org/wiki/Progra...I-L%C3%B6sungen
Roland
// myEmail.prg
// Usage from command window:
//
//SET PROCEDURE TO MyEMail.PRG ADDITIVE
//SendMail(<Recipient>,<Subject>,<Body>,<cc>,<bcc> )
#INCLUDE WinDef.H
#INCLUDE WinUser.H
FUNCTION SendMail(cDest,cSubject,cBody,cCC,cBCC)
LOCAL cSystem
cSystem=OS()
IF EMPTY(cDest)
cDest="mailto:someone@work.com"
ELSE
cDest="mailto:"+cDest
ENDIF
IF EMPTY(cSubject)
cSubject="EMail Test"
ENDIF
IF EMPTY(cBody)
cBody="Hallo everybody"
ENDIF
IF EMPTY(cCC)
cCC="someonelse@work.com"
ENDIF
IF EMPTY(cBCC)
cBCC="yetanotherperson@home.com"
ENDIF
cDest+=IIF(EMPTY(cSubject),""," ?Subject="+cSubject)
cDest+=IIF(EMPTY(cCC),""," &CC="+cCC)
cDest+=IIF(EMPTY(cBCC),""," &BCC="+cBCC)
cDest+=IIF(EMPTY(cBody),""," &Body="+cBody)
IF "4.0"$cSystem .OR. "4.1"$cSystem
WinExe(cDest,1)
ELSE
ShellExe(1,"open",cDest,NULL,NULL,NULL)
ENDIF
RETURN
FUNCTION ShellExe(hWnd,cOperation,cFile,cParam,cD
ir,nShow)
LOCAL nResult
EXTERN CHANDLE ShellExecute(CHANDLE,CSTRING,CSTRING,CST
RING,CSTRING,CINT)
shell32 FROM "ShellExecuteA"
IF EMPTY(cFile)
nResult=0
ELSE
IF EMPTY(hWnd)
hWnd=1
ENDIF
IF EMPTY(cOperation)
cOperation="open"
ENDIF
IF EMPTY(nShow)
nShow=SW_SHOWNORMAL
ENDIF
nResult=ShellExecute(hWnd,cOperation,cFi
le,cParam,cDir,nShow)
ENDIF
RETURN (nResult>32)
FUNCTION WinExe
PARAMETER p1,p2
EXTERN CINT WinExec(cSTRING,CINT) kernel32
TRY
WinExec([start "&p1"],p2)
CATCH (exception e)
TRY
WinExec('start "&p1"',p2)
CATCH (exception e)
TRY
WinExec("start [&p1]",p2)
CATCH(exception e)
MSGBOX("String zu komplex","Achtung",16)
ENDTRY
ENDTRY
ENDTRY
RETURN
| |
|
|
| Bernd Hohenester 2007-01-09, 1:30 am |
| Hello Eric,
> I am looking for a .cc which can Send e-mail using MS-Office Outlook ( 2000
> or Higher) ........
in the dUFLP look at SendMailEx.cc or have a look at my dBASE webring
site at http://www.hobe.de/dbase
cu
Bernd
|
|
|
|
|