I am having an issue with GMAIL SMTP in a C# program

William Thompson 0 Reputation points
2024-11-22T04:42:33.1233333+00:00

I want to use C# do to a necessary mass emailing of hundreds of receiving email addresses. I have a gmail account and I believe my message will be better received if it comes from my personal gmail account instead of from one of my website's email accounts. But if I do not resolve this issue, I might resort to trying something else.

A youtube tutorial for setting up a C# program for sending GMail messages has instructed me to first set up two tier authentication. So I did that. Then this tutorial suggested that I use a special feature in the Google Account Settings of creating an App ID with a unique 16 character special password. If you like, I can add more specifics and content about this and post a link to the youtube tutorial.

It did not work and the line of code where, after I set up the parameters of a message, I use the SMTP command to send the message an error is thrown.

It almost seems that there is so much security protocols surrounding GMail now that Google has made it virtually impossible for someone to write a C# program to make tasks easier.

On the other hand, I have an active Email server, Thunderbird, that I use. So there must be a correct way to use Gmail in a desktop App and I assume a software developer can write a program to do what I am wanting to accomplish.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,232 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.