{"action":"created","issue":{"url":"https://api.github.com/repos/vszakats/harbour-core/issues/204","repository_url":"https://api.github.com/repos/vszakats/harbour-core","labels_url":"https://api.github.com/repos/vszakats/harbour-core/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/vszakats/harbour-core/issues/204/comments","events_url":"https://api.github.com/repos/vszakats/harbour-core/issues/204/events","html_url":"https://github.com/vszakats/harbour-core/issues/204","id":144028069,"number":204,"title":"hbtip: tip_MailSend() with Outlook and STARTTLS = problem.","user":{"login":"ItamarLins","id":3923502,"avatar_url":"https://avatars.githubusercontent.com/u/3923502?v=3","gravatar_id":"","url":"https://api.github.com/users/ItamarLins","html_url":"https://github.com/ItamarLins","followers_url":"https://api.github.com/users/ItamarLins/followers","following_url":"https://api.github.com/users/ItamarLins/following{/other_user}","gists_url":"https://api.github.com/users/ItamarLins/gists{/gist_id}","starred_url":"https://api.github.com/users/ItamarLins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItamarLins/subscriptions","organizations_url":"https://api.github.com/users/ItamarLins/orgs","repos_url":"https://api.github.com/users/ItamarLins/repos","events_url":"https://api.github.com/users/ItamarLins/events{/privacy}","received_events_url":"https://api.github.com/users/ItamarLins/received_events","type":"User","site_admin":false},"labels":[{"id":32440815,"url":"https://api.github.com/repos/vszakats/harbour-core/labels/bug","name":"bug","color":"fc2929","default":true},{"id":92789597,"url":"https://api.github.com/repos/vszakats/harbour-core/labels/confirmed","name":"confirmed","color":"c2e0c6","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-03-28T17:08:14Z","updated_at":"2016-12-05T13:27:36Z","closed_at":"2016-03-28T17:15:54Z","body":"Hi!\nReturn this mensage: Must issue a STARTTLS command first\n\n```\nTip_MailSend function make 2 files smtp-1.log and smtp-2.log\nsmtp-1.log\n20160328-13:43:39  :INETCONNECT( smtp-mail.outlook.com, 587 )\n>> <pointer> <<\n\n20160328-13:43:39  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 220 BLU436-SMTP38.smtp.hotmail.com Microsoft ESMTP MAIL Service, Version: 8.0.9200.16384 ready at  Mon, 28 Mar 2016 09:43:42 -0700  <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETSENDALL( <pointer>, 20, EHLO TIPClientSMTP<cr><lf> )\n>>         20 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 250-BLU436-SMTP38.smtp.hotmail.com Hello [200.167.56.93] <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 250-TURN <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 250-SIZE 41943040 <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 250-ETRN <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 250-PIPELINING <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 250-DSN <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 250-ENHANCEDSTATUSCODES <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 250-8bitmime <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 250-BINARYMIME <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 250-CHUNKING <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 250-VRFY <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 250-TLS <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 250-STARTTLS <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 250 OK <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:40  :INETSENDALL( <pointer>, 10, STARTTLS<cr><lf> )\n>>         10 <<\n\n20160328-13:43:40  :INETRECVLINE( <pointer>, , 512 )\n>> 220 2.0.0 SMTP server ready <<\n\n20160328-13:43:40  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:41  :INETSENDALL( <pointer>, 20, EHLO TIPClientSMTP<cr><lf> )\n>>         20 <<\n\n20160328-13:43:51  :INETRECVLINE( <pointer>, , 512 )\n>> NIL <<\n\n20160328-13:43:51  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:43:51  :INETSENDALL( <pointer>, 6, QUIT<cr><lf> )\n>>          6 <<\n\n20160328-13:44:01  :INETRECVLINE( <pointer>, , 512 )\n>> NIL <<\n\n20160328-13:44:01  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n------------------------------------------------------------------\nAnd smtp-2.log\n\n20160328-13:44:02  :INETCONNECT( smtp-mail.outlook.com, 587 )\n>> <pointer> <<\n\n20160328-13:44:02  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:44:02  :INETRECVLINE( <pointer>, , 512 )\n>> 220 BLU436-SMTP184.smtp.hotmail.com Microsoft ESMTP MAIL Service, Version: 8.0.9200.16384 ready at  Mon, 28 Mar 2016 09:44:04 -0700  <<\n\n20160328-13:44:02  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:44:02  :INETSENDALL( <pointer>, 20, HELO TIPClientSMTP<cr><lf> )\n>>         20 <<\n\n20160328-13:44:02  :INETRECVLINE( <pointer>, , 512 )\n>> 250 BLU436-SMTP184.smtp.hotmail.com Hello [200.167.56.93] <<\n\n20160328-13:44:02  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:44:02  :INETSENDALL( <pointer>, 37, MAIL FROM: <itamarlins@outlook.com><cr><lf> )\n>>         37 <<\n\n20160328-13:44:02  :INETRECVLINE( <pointer>, , 512 )\n>> 530 5.7.0 Must issue a STARTTLS command first <<\n\n20160328-13:44:02  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:44:02  :INETSENDALL( <pointer>, 5, .<cr><lf> )\n>>          5 <<\n\n20160328-13:44:02  :INETRECVLINE( <pointer>, , 512 )\n>> 530 5.7.0 Must issue a STARTTLS command first <<\n\n20160328-13:44:02  :INETERRORCODE( <pointer> )\n>>          0 <<\n\n20160328-13:44:02  :INETSENDALL( <pointer>, 6, QUIT<cr><lf> )\n>>          6 <<\n\n20160328-13:44:03  :INETRECVLINE( <pointer>, , 512 )\n>> 221 2.0.0 BLU436-SMTP184.smtp.hotmail.com Service closing transmission channel <<\n\n20160328-13:44:03  :INETERRORCODE( <pointer> )\n>>          0 <<\n```\n\nI use same sintaxe \\contrib\\hbtip\\tests\\email.prg\n\n``` harbour\n   hb_default( @nPort, iif( lSTARTTLS, 587, 465 ) )\n\n   ? \"Host:\", cHost, hb_ntos( nPort ), iif( lSTARTTLS, \"(STARTTLS)\", \"\" )\n\n   ? tip_MailSend( ;\n      cHost, ;\n      nPort, ;\n      cFrom, ;\n      cTo, ;\n      NIL /* CC */, ;\n      {} /* BCC */, ;\n      \"test: body\", ;\n      \"test: subject\", ;\n      NIL /* attachment */, ;\n      cFrom, ;\n      cPassword, ;\n      \"\", ;\n      NIL /* nPriority */, ;\n      NIL /* lRead */, ;\n      .T. /* lTrace */, ;\n      .F., ;\n      NIL /* lNoAuth */, ;\n      NIL /* nTimeOut */, ;\n      NIL /* cReplyTo */, ;\n      nPort == 465 )\n\n   RETURN\n```\n\nBest regards,\nItamar M. Lins Jr.\n"},"comment":{"url":"https://api.github.com/repos/vszakats/harbour-core/issues/comments/264853600","html_url":"https://github.com/vszakats/harbour-core/issues/204#issuecomment-264853600","issue_url":"https://api.github.com/repos/vszakats/harbour-core/issues/204","id":264853600,"user":{"login":"ItamarLins","id":3923502,"avatar_url":"https://avatars.githubusercontent.com/u/3923502?v=3","gravatar_id":"","url":"https://api.github.com/users/ItamarLins","html_url":"https://github.com/ItamarLins","followers_url":"https://api.github.com/users/ItamarLins/followers","following_url":"https://api.github.com/users/ItamarLins/following{/other_user}","gists_url":"https://api.github.com/users/ItamarLins/gists{/gist_id}","starred_url":"https://api.github.com/users/ItamarLins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItamarLins/subscriptions","organizations_url":"https://api.github.com/users/ItamarLins/orgs","repos_url":"https://api.github.com/users/ItamarLins/repos","events_url":"https://api.github.com/users/ItamarLins/events{/privacy}","received_events_url":"https://api.github.com/users/ItamarLins/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T13:27:36Z","updated_at":"2016-12-05T13:27:36Z","body":"Hi!\nWorks fine now, thanks!\n\nBest regards,\nItamar M. Lins Jr.\n\n2016-12-04 6:35 GMT-03:00 Viktor Szakats <notifications@github.com>:\n\n> Possibly fixed by: f63084a\n> <https://github.com/vszakats/harbour-core/commit/f63084ac2350d88402c86bab9a9c6277112edd3a>\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/vszakats/harbour-core/issues/204#issuecomment-264693566>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ADveLjGeFkEKfoXZq7Na1q-LyqA30CdYks5rEolmgaJpZM4H5_Z->\n> .\n>\n"}}
{"actor":{"display_login":"ItamarLins"}}