Hello guys,
There is a much easier solution to get arround this problem with Outlook.
You can download it free at : www.mapilab.com/outlook/security
It works with all Outlook versions.
Regards,
oMail:Recipients:Add("myemail")
driessen wrote:Hello,
I use exactly the same code without having any problems.
But I noticed the you useMaybe you should try a real e-mail address with a @ in it.
- Code: Select all Expand view
oMail:Recipients:Add("myemail")
Good luck.
LOCAL cTasks
LOCAL OutlFound := .F.
cTasks := GetTasks()
FOR i=1 TO LEN(cTasks)
IF AT("OUTLOOK",UPPER(cTasks[i])) <> 0
OutlFound := .T.
i := LEN(cTasks)
ENDIF
NEXT
IF !OutlFound ; ShellExecute(,"Open","Outlook",,,3) ; ENDIF
TRY
oOutLook := CreateObject("Outlook.Application")
oNameSpace := oOutlook:GetNameSpace("MAPI")
EmSend := .T.
CATCH
TRY
oOutLook := CreateObject("Outlook.Application")
oNameSpace := oOutlook:GetNameSpace("MAPI")
EmSend := .T.
CATCH
EmSend := .F.
END
END
IF EmSend
// Your source to send your mail
ENDIF
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 59 guests