Click here to Skip to main content
15,886,724 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Why can't I Publish web site error warn ? Pin
jkirkerx9-Aug-19 10:36
professionaljkirkerx9-Aug-19 10:36 
GeneralRe: Why can't I Publish web site error warn ? Pin
Member 245846711-Aug-19 18:27
Member 245846711-Aug-19 18:27 
QuestionASP.net postback url problem Pin
UDTWS5-Aug-19 1:26
UDTWS5-Aug-19 1:26 
AnswerRe: ASP.net postback url problem Pin
Vincent Maverick Durano5-Aug-19 6:55
professionalVincent Maverick Durano5-Aug-19 6:55 
AnswerRe: ASP.net postback url problem Pin
jkirkerx5-Aug-19 12:48
professionaljkirkerx5-Aug-19 12:48 
QuestionServer-side Blazor and IE11 Pin
MSBassSinger2-Aug-19 5:57
professionalMSBassSinger2-Aug-19 5:57 
Question.Net Core V2.2 - Sending email or gmail using OAuth2 or secure settings in Gmail in the background without browser auth Pin
jkirkerx1-Aug-19 12:28
professionaljkirkerx1-Aug-19 12:28 
AnswerRe: .Net Core V2.2 - Sending email or gmail using OAuth2 or secure settings in Gmail in the background without browser auth Pin
Afzaal Ahmad Zeeshan1-Aug-19 14:37
professionalAfzaal Ahmad Zeeshan1-Aug-19 14:37 
Quote:
Using Nuget MailKit/MimeKit, it doesn't register with .Net Core V2.2
Perhaps some other thing is causing this issue, the dependencies should be restored properly. Can you try removing this dependency to see if that works; oh and do not forget to drill down the dependency tree to see what is actual root cause for the yellow sign.

Check this article for more on that, ASP.NET Core 2.2 - SMTP EmailSender Implementation - KenHaggerty.Com , he was able to have this setup in ASP.NET Core 2.2.

Secondly for the Gmail API, I believe you are missing out the GmailSend scope,
C#
var googleCredentials = await GoogleWebAuthorizationBroker.AuthorizeAsync(secrets, new[] { GmailService.Scope.MailGoogleCom }, email, CancellationToken.None);
This should include the GmailSend scope,
C#
var googleCredentials = await GoogleWebAuthorizationBroker.AuthorizeAsync(secrets, new[] { GmailService.Scope.MailGoogleCom, GmailService.Scope.GmailSend }, email, CancellationToken.None);
See this another thread on CodeProject that discusses this, Send email using gmail api in C#.

Lastly, it is always a good practice to try something as small as a hello world program. You can get started for a hello world program for Gmail API from here, .NET Quickstart  |  Gmail API  |  Google Developers, and then extend the program by reading the references and the SDK API, gmail: Main Page
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: .Net Core V2.2 - Sending email or gmail using OAuth2 or secure settings in Gmail in the background without browser auth Pin
jkirkerx2-Aug-19 6:50
professionaljkirkerx2-Aug-19 6:50 
GeneralRe: .Net Core V2.2 - Sending email or gmail using OAuth2 or secure settings in Gmail in the background without browser auth Pin
jkirkerx2-Aug-19 11:45
professionaljkirkerx2-Aug-19 11:45 
AnswerThought I had it, Failed to open browser when running in Docker Container Pin
jkirkerx2-Aug-19 12:50
professionaljkirkerx2-Aug-19 12:50 
AnswerFigured it out [solved] Pin
jkirkerx3-Aug-19 13:44
professionaljkirkerx3-Aug-19 13:44 
GeneralRe: Figured it out [solved] - New Code Pin
jkirkerx5-Aug-19 13:22
professionaljkirkerx5-Aug-19 13:22 
QuestionInsert Date Interval Pin
Bartt_dmr25-Jul-19 10:31
Bartt_dmr25-Jul-19 10:31 
AnswerRe: Insert Date Interval Pin
Richard Deeming25-Jul-19 10:49
mveRichard Deeming25-Jul-19 10:49 
QuestionObject reference not set to an instance of an object. Pin
Darwin Ahmed21-Jul-19 12:06
Darwin Ahmed21-Jul-19 12:06 
AnswerRe: Object reference not set to an instance of an object. Pin
phil.o21-Jul-19 19:50
professionalphil.o21-Jul-19 19:50 
AnswerRe: Object reference not set to an instance of an object. Pin
ZurdoDev24-Jul-19 9:10
professionalZurdoDev24-Jul-19 9:10 
QuestionChange Value of HttpContext.Current.User Pin
MadDashCoder21-Jul-19 4:26
MadDashCoder21-Jul-19 4:26 
AnswerRe: Change Value of HttpContext.Current.User Pin
Richard MacCutchan21-Jul-19 6:42
mveRichard MacCutchan21-Jul-19 6:42 
AnswerRe: Change Value of HttpContext.Current.User Pin
Afzaal Ahmad Zeeshan21-Jul-19 6:51
professionalAfzaal Ahmad Zeeshan21-Jul-19 6:51 
AnswerRe: Change Value of HttpContext.Current.User Pin
ZurdoDev24-Jul-19 9:12
professionalZurdoDev24-Jul-19 9:12 
QuestionQuery timing out, help please!!! Pin
samflex19-Jul-19 8:38
samflex19-Jul-19 8:38 
AnswerRe: Query timing out, help please!!! Pin
ZurdoDev19-Jul-19 10:14
professionalZurdoDev19-Jul-19 10:14 
AnswerRe: Query timing out, help please!!! Pin
David Mujica22-Jul-19 7:59
David Mujica22-Jul-19 7:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.