MAPISendMail

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

MAPISendMail

Post by AUGE_OHR »

hi,

i found file c:\hmg.3.4.4\HARBOUR\contrib\hbwin\tests\mapimail.prg

Question : does win_MAPISendMail still work with Windows 10 :?:
have fun
Jimmy
User avatar
danielmaximiliano
Posts: 2647
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: MAPISendMail

Post by danielmaximiliano »

Hi Jimmy.
MapiSendmail work in mi Windows 10.

Code: Select all

#include <hmg.ch>
#include "simpleio.ch"
#require "hbwin"

PROCEDURE Main()

   LOCAL cSubject := "Test subject"
   LOCAL cBody := "Test body"
   LOCAL lMailConf := .F.
   LOCAL lFromUser := .T.
   LOCAL aSender := { "test from", "from@test.com" }
   LOCAL aDest := { { "test to", "to@test.com", 1 } }
   LOCAL aFiles := { { __FILE__, hb_FNameName( __FILE__ ) } }
2020-03-03 11_40_15-Window.png
2020-03-03 11_40_15-Window.png (33.98 KiB) Viewed 2397 times
Message : There is no associated email program to perform the required action. Install an email program, if one is installed, create an association in the control panel.
Post Data : Works with Outlook Express or Thunderbird
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2647
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: MAPISendMail

Post by danielmaximiliano »

2020-03-03 11_49_50-Window.png
2020-03-03 11_49_50-Window.png (44.88 KiB) Viewed 2393 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: MAPISendMail

Post by AUGE_OHR »

hi,

thx for Answer.
i got Error 26 when try that Sample that´s why i´m asking what i´m doing wrong :idea:
have fun
Jimmy
User avatar
danielmaximiliano
Posts: 2647
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: MAPISendMail

Post by danielmaximiliano »

I only modified one variable and compiled the example as a new project within HMG IDE in 32 and 64 bits and it works only that I don't have mail administrators since I use Yahoo mail or gmail from the web browser.
MapiSendmail is a shortcut that calls the associated mail management application, another thing would be to use HBSendMail natively
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2647
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: MAPISendMail

Post by danielmaximiliano »

AUGE_OHR wrote: Tue Mar 03, 2020 9:49 pm
i got Error 26
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: MAPISendMail

Post by AUGE_OHR »

hi,

i know that some MAPI Tool can make Problem under Windows 10 :(

i have used a Tool call SocMAPI for many Years but it fail ( Securtiy ) under Windows 10 :shock:
i have another Source using Ot4Xb which can´t open MAPI "Dialog" but it store to Out-Basket.

now i have use CDO to send Email with SnapShot.
look here https://hmgforum.com/viewtopic.php?f=5&t ... =61154#top
have fun
Jimmy
User avatar
danielmaximiliano
Posts: 2647
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: MAPISendMail

Post by danielmaximiliano »

long ago hbsendmail was complicated to use, there was a user who needed to use it so researching I found the simplicity of CDOsys so I uploaded an example of use that helped many. As I remain the doubt of HBsendmail I continued to make an application using PoP3 I can make an example of use using Imap.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Post Reply