i have read that hbTIP may make Problem and hbCURL should be used.
did somebody have a Email-Solution using hbCURL and OpenSSL
Moderator: Rathinagiri
Hi Jimmy, Minigui Extended can help you.
i can´t find "Sendmail2"
have just upgrade to latest MiniGUI Extendet Version and found SendMail2
Code: Select all
do case
case adata[2][9] // use Cdo
case adata[2][8] // use Curl
OtherWise // use Tsmtp by Matteo Baccan
Code: Select all
c:\minigui\SOURCE\Socket\tsmtp.prg
c:\minigui\SOURCE\Socket\tpop3.prgCode: Select all
set HB_WITH_CURL=C:\curl\include
set HB_STATIC_CURL=yes
set path= %path%;c:\hmg.3.5
build64 hbcurl.hbp
pausehbmk2: Construyendo sub-proyecto (nivel 2): hbcurls.hbp
hbmk2: Dependencia 'curl' encontrada: C:\curl\include
hbmk2: Harbour: Compilando m¢dulos...
Harbour 3.2.0dev (r1604201603)
Copyright (c) 1999-2016, http://harbour-project.org/
hbmk2: Compilando...
In file included from C:/curl/include/curl/curl.h0,
from ../../../../core.c:49:
../../../../core.c: In function 'HB_FUN_CURL_EASY_GETINFO':
C:/curl/include/curl/typecheck-gcc.h:139:13: warning: call to '_curl_easy_getinfo_err_curl_certinfo' declared with attribute warning: curl_easy_getinfo expects a pointer to 'struct curl_certinfo *' for this info
_curl_easy_getinfo_err_curl_certinfo(); \
^
../../../../core.c60: note: in expansion of macro 'curl_easy_getinfo'
#define HB_CURL_EASY_GETINFO( hb_curl, n, p ) ( hb_curl ? curl_easy_getinfo( hb_curl->curl, n, p ) : ( CURLcode ) HB_CURLE_ERROR )
^
../../../../core.c19: note: in expansion of macro 'HB_CURL_EASY_GETINFO'
res = HB_CURL_EASY_GETINFO( hb_curl, CURLINFO_CERTINFO, &ret_slist );
^
hbmk2: Creando librer¡a est tica... libhbcurls.a
hbmk2: Dependencia 'curl' encontrada: C:\curl\include
hbmk2[hbcurl]: Advertencia: Fuentes de Biblioteca de importaci¢n no se
encontraron.
hbmk2: Harbour: Compilando m¢dulos...
Harbour 3.2.0dev (r1604201603)
Copyright (c) 1999-2016, http://harbour-project.org/
hbmk2: Compilando...
In file included from C:/curl/include/curl/curl.h0,
from ../../../../core.c:49:
../../../../core.c: In function 'HB_FUN_CURL_EASY_GETINFO':
C:/curl/include/curl/typecheck-gcc.h:139:13: warning: call to '_curl_easy_getinfo_err_curl_certinfo' declared with attribute warning: curl_easy_getinfo expects a pointer to 'struct curl_certinfo *' for this info
_curl_easy_getinfo_err_curl_certinfo(); \
^
../../../../core.c60: note: in expansion of macro 'curl_easy_getinfo'
#define HB_CURL_EASY_GETINFO( hb_curl, n, p ) ( hb_curl ? curl_easy_getinfo( hb_curl->curl, n, p ) : ( CURLcode ) HB_CURLE_ERROR )
^
../../../../core.c19: note: in expansion of macro 'HB_CURL_EASY_GETINFO'
res = HB_CURL_EASY_GETINFO( hb_curl, CURLINFO_CERTINFO, &ret_slist );
^
hbmk2: Creando librer¡a est tica... libhbcurl.a
---The mail system
<Auge_Ohr@Web.DE>: host mx-ha02.Web.DE[212.227.17.8] said: 554-Transaction
failed 554-Reject due to policy restrictions. 554 For explanation visit
https://web.de/email/senderguidelines?i ... 34.81&c=hi (in reply to
end of DATA command)
Code: Select all
aadd(acCmd, "--ssl-reqd --url smtps://")using Port 465curl: (35) schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - Das Token, das der Funktion übergeben wurde, ist ungültig.
---#=#=#
##O#-#
curl: (67) Login denied
Code: Select all
aadd(acCmd, "--ssl-reqd --url smtp://")using Port 465#=#=#
##O#-#
curl: (67) Login denied
but it work with T-ONLINE.DE so it is a Problem of WEB.DE#=#=#
##O#-#
##O=# #
#=#=-# #
-#O#- # #
-=#=# # #
-=O#-# # #
-=O=# # # #
-=O=-# # # #
-=O=- # # # #
-=O=- # # # #
curl: (56) response reading failed
Code: Select all
smtp.web.de
STARTTLS Port 587Code: Select all
CURL.EXE --insecure --ssl-reqd --url smtps://smtp.web.de:465 --user XXXXXXXX@web.de:Password --mail-from XXXXXXXX@web.de --mail-rcpt YYYYYYYY@t-online.de --stderr G:\minigui\2\SendMail\CurlReply.txt --upload-file G:\minigui\2\SendMail\Template.eml
so what is Error 56 mean ...Code: Select all
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 346 0 0 100 346 0 1114 --:--:-- --:--:-- --:--:-- 1119 curl: (56) Failure when receiving data from the peer