Click here to Skip to main content
14,773,088 members
Home » Discussions » C#
   

C#

 
AnswerRe: c# programing Pin
Richard Deeming9-Dec-20 4:53
mveRichard Deeming9-Dec-20 4:53 
AnswerRe: c# programing Pin
OriginalGriff9-Dec-20 5:28
mveOriginalGriff9-Dec-20 5:28 
JokeRe: c# programing Pin
CHill609-Dec-20 6:11
mveCHill609-Dec-20 6:11 
GeneralRe: c# programing Pin
OriginalGriff9-Dec-20 6:20
mveOriginalGriff9-Dec-20 6:20 
GeneralRe: c# programing Pin
CHill609-Dec-20 7:00
mveCHill609-Dec-20 7:00 
AnswerRe: c# programing Pin
Gerry Schmitz9-Dec-20 6:48
mveGerry Schmitz9-Dec-20 6:48 
AnswerRe: c# programing Pin
Pete O'Hanlon9-Dec-20 22:52
mvePete O'Hanlon9-Dec-20 22:52 
QuestionSend GMail Pin
Kevin Marois7-Dec-20 17:41
professionalKevin Marois7-Dec-20 17:41 
Can someone show me how to send GMmail using C#???

I just spent an hour Googling and the closest thing that I found was this page which only lists the folders in my gmail account. This seems like it's WAYYYY over conmplicated.

I tried this based on some snipptes I got off Google, but I get auth errors
class Program
{
    static void Main(string[] args)
    {
        var client = new SmtpClient("smtp.gmail.com", 465)
        {
            UseDefaultCredentials = false,
            Credentials = new NetworkCredential("me@gmail.com", "mypass"),
            EnableSsl = true,
        };
        client.Send("me@gmail.com", "me@gmail.com", "Test", "This is a test");

        Console.WriteLine("Sent");
        Console.ReadLine();
    }
}
I get either "Failure sending email" with port 465, or "'The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required" usig port 587.

I thought it would be as simple as this, bu there doesn't seem to be a clear example that works.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Send GMail Pin
OriginalGriff7-Dec-20 22:04
mveOriginalGriff7-Dec-20 22:04 
AnswerRe: Send GMail Pin
Richard Deeming7-Dec-20 22:55
mveRichard Deeming7-Dec-20 22:55 
Questionc# language issue: when you need to serialize/deserialize a user defined Func/Action Pin
BillWoodruff7-Dec-20 3:40
mveBillWoodruff7-Dec-20 3:40 
QuestionPlatform dependency of thread management Pin
Bernhard Hiller7-Dec-20 0:30
MemberBernhard Hiller7-Dec-20 0:30 
AnswerRe: Platform dependency of thread management Pin
Dave Kreskowiak7-Dec-20 4:59
mveDave Kreskowiak7-Dec-20 4:59 
QuestionC# NET. Framework program (area 2x) Pin
Member 150126776-Dec-20 0:49
MemberMember 150126776-Dec-20 0:49 
AnswerRe: C# NET. Framework program (area 2x) Pin
Richard MacCutchan6-Dec-20 2:28
mveRichard MacCutchan6-Dec-20 2:28 
AnswerRe: C# NET. Framework program (area 2x) Pin
BillWoodruff7-Dec-20 8:07
mveBillWoodruff7-Dec-20 8:07 
QuestionDecimal numbers in NET. Framework Pin
Member 150126775-Dec-20 3:48
MemberMember 150126775-Dec-20 3:48 
AnswerRe: Decimal numbers in NET. Framework Pin
OriginalGriff5-Dec-20 3:53
mveOriginalGriff5-Dec-20 3:53 
QuestionC# NET. Framework program Pin
Member 150126775-Dec-20 1:59
MemberMember 150126775-Dec-20 1:59 
AnswerRe: C# NET. Framework program Pin
OriginalGriff5-Dec-20 2:17
mveOriginalGriff5-Dec-20 2:17 
GeneralRe: C# NET. Framework program Pin
Member 150126775-Dec-20 2:26
MemberMember 150126775-Dec-20 2:26 
GeneralRe: C# NET. Framework program Pin
Ralf Meier5-Dec-20 2:31
professionalRalf Meier5-Dec-20 2:31 
GeneralRe: C# NET. Framework program Pin
Member 150126775-Dec-20 2:33
MemberMember 150126775-Dec-20 2:33 
GeneralRe: C# NET. Framework program Pin
OriginalGriff5-Dec-20 2:41
mveOriginalGriff5-Dec-20 2:41 
GeneralRe: C# NET. Framework program Pin
OriginalGriff5-Dec-20 2:37
mveOriginalGriff5-Dec-20 2:37 

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.