{"action":"created","issue":{"url":"https://api.github.com/repos/MailCore/mailcore2/issues/1116","labels_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1116/labels{/name}","comments_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1116/comments","events_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1116/events","html_url":"https://github.com/MailCore/mailcore2/issues/1116","id":72740519,"number":1116,"title":"Authentication failure with Gmail via c++ (windows) dll build","user":{"login":"cuisinart","id":4599151,"avatar_url":"https://avatars.githubusercontent.com/u/4599151?v=3","gravatar_id":"","url":"https://api.github.com/users/cuisinart","html_url":"https://github.com/cuisinart","followers_url":"https://api.github.com/users/cuisinart/followers","following_url":"https://api.github.com/users/cuisinart/following{/other_user}","gists_url":"https://api.github.com/users/cuisinart/gists{/gist_id}","starred_url":"https://api.github.com/users/cuisinart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuisinart/subscriptions","organizations_url":"https://api.github.com/users/cuisinart/orgs","repos_url":"https://api.github.com/users/cuisinart/repos","events_url":"https://api.github.com/users/cuisinart/events{/privacy}","received_events_url":"https://api.github.com/users/cuisinart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-03T03:33:14Z","updated_at":"2015-05-03T05:13:12Z","closed_at":null,"body":"Hello, using the current windows .dll build (thank you for this!), I'm getting an authentication error when trying to send an SMTP email via gmail.  My other apps can send smtp through that address OK.  I can't find any c++ examples for mailcore, likewise to API doc for it, so I'm going by some guesswork.  Can you find the problem? Additionally, the windows dll build still has a uchardet.dll dependency, even though I see a commit from 3 months ago indicating this was removed.\r\n\r\nSecondly, the SMTPSession (not async) doesn't appear to work, as the member function for sending mail is private.\r\n\r\n[code]\t//-------======= Sending ========-------------\r\n\t\r\n\tsmtpSession.setHostname(&mailcore::String(\"smtp.gmail.com\"));\r\n\tsmtpSession.setPort(465);\r\n\tsmtpSession.setUsername(&mailcore::String(\"myemail@gmail.com\"));\r\n\tsmtpSession.setPassword(&mailcore::String(\"password\"));\r\n\tsmtpSession.setAuthType(mailcore::AuthTypeSASLPlain);\r\n\tsmtpSession.setConnectionType(mailcore::ConnectionTypeTLS);\r\n\t//smtpSession.setUseHeloIPEnabled(true);\r\n\t//smtpSession.setCheckCertificateEnabled(false);\r\n\r\n\tmailcore::MessageHeader header;\r\n\theader.setFrom(mailcore::Address::addressWithDisplayName(&mailcore::String(\"Software Support\"),&mailcore::String(\"myemail@gmail.com\")));\r\n\tmailcore::Array ary;\r\n\tary.addObject(mailcore::Address::addressWithDisplayName(NULL,&mailcore::String(\"to@emaildomain\")));\r\n\theader.setTo(&ary);\r\n\t\r\n\theader.setSubject(&mailcore::String(\"Test email subject line\"));\r\n\t\r\n\tbuilder.setHeader(&header);\r\n\tbuilder.setHTMLBody(&mailcore::String(\"This is the Body.  Thank you for your help.\"));\r\n\r\n\tmailcore::Data *dat = builder.data();\r\n\r\n\tmailcore::SMTPOperation *operation = smtpSession.sendMessageOperation(dat);\r\n\toperation->setCallback(this);\r\n\r\n\toperation->start();\r\n[/code]"},"comment":{"url":"https://api.github.com/repos/MailCore/mailcore2/issues/comments/98437731","html_url":"https://github.com/MailCore/mailcore2/issues/1116#issuecomment-98437731","issue_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1116","id":98437731,"user":{"login":"dinhviethoa","id":332168,"avatar_url":"https://avatars.githubusercontent.com/u/332168?v=3","gravatar_id":"","url":"https://api.github.com/users/dinhviethoa","html_url":"https://github.com/dinhviethoa","followers_url":"https://api.github.com/users/dinhviethoa/followers","following_url":"https://api.github.com/users/dinhviethoa/following{/other_user}","gists_url":"https://api.github.com/users/dinhviethoa/gists{/gist_id}","starred_url":"https://api.github.com/users/dinhviethoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinhviethoa/subscriptions","organizations_url":"https://api.github.com/users/dinhviethoa/orgs","repos_url":"https://api.github.com/users/dinhviethoa/repos","events_url":"https://api.github.com/users/dinhviethoa/events{/privacy}","received_events_url":"https://api.github.com/users/dinhviethoa/received_events","type":"User","site_admin":false},"created_at":"2015-05-03T05:13:12Z","updated_at":"2015-05-03T05:13:12Z","body":"`ConnectionLogger` is an interface to implement.\r\n"}}