Click here to Skip to main content
15,890,579 members
Everything / Gmail

Gmail

Gmail

Great Reads

by freedeveloper
Simple Implementation of Google API IDataStore that use MS-SQL server to store your token file
by Vivek Johari
Migrating SQL Database to Azure SQL Database using SSMS Export/Import Contents
by Tkach Aleksey
WPF Gmail-style emails input control using C#, with email validation
by Vivek Johari
This post discusses how to migrate SQL database to Azure SQL database using SSMS deploy.

Latest Articles

by OwenDavies
Looks like sSMTP is no longer maintained, MSMTP is the suggested replacement. This post discusses how to do the replacement.
by Rob Kraft
A lot of small teams could use reminder emails when it is time for a team member to perform a task, but there are not a lot of products where you can easily set up reminder emails for team members for free. But you can do it easily with a Google Sheet. Building on the […]
by YawerIqbal
System Jobs AsyncOperation or System Job is an important Dynamcis 365 system entity. Usually we don’t create its records, rather they are created automatically. A record represents a single execution of an asynchronous resource.
by YawerIqbal
Last week in a meeting client explained requirement: “.. we receive emails in a mail box, and we manually create contacts in CRM using sender name and address for further processing, we want to automate this.. .

All Articles

Sort by Updated

Gmail 

28 Mar 2015 by aazam rafiee zade
HelloI have this code. I want to retrieve sender email from RETR . Data = "STAT" + "\r\n";szData = System.Text.Encoding.ASCII.GetBytes(Data.ToCharArray());sslStream.Write(szData, 0, szData.Length);sslStream.Flush();messageData = ReadMessage(sslStream,...
29 Jun 2015 by abdul subhan mohammed
Hi guys,I have asp.net web site in c#.and this web site is login using google account.I successfully login into the application using google account.But not getting logout.I mean, once i logged in, its keeping me logged in always.Can any one plz help me.Ref:...
30 Jun 2015 by abdul subhan mohammed
Response.Redirect("https://www.google.com/accounts/Logout");
12 Jun 2014 by adriancs
You can't register by using program, so called "bot" in internet world.Only human can register it.There is a captcha system which is designed only readable by human.However, you can try to write a program that can read the captcha image, of course.
28 Nov 2014 by Afzaal Ahmad Zeeshan
I have tested this entire code in my own IDE and the result for this problem was the username/password match error. Make sure that you're using the correct password for the valid username on the server. Possible issue: You're asking a question about Gmail, but you're using the Yahoo smtp...
25 Jan 2015 by Afzaal Ahmad Zeeshan
Sadly there is no official ASP.NET document or a sample project for downloading the emails from the email server; such as Gmail or Outlook. They just created a helper class WebMail for sending the emails through any SMTP server; including Gmail. Anyways, you can try using these settings from...
4 Jun 2015 by Afzaal Ahmad Zeeshan
We cannot do that. SMTP protocol (the protocol being used to send the emails) is only able to send the email to the recipient's mailbox. Gmail itself categorizes the emails into different folders and so on. However, the IMAP protocol (protocol used to access the emails) does allow you to get...
7 Nov 2017 by Afzaal Ahmad Zeeshan
This is one of the most basic problems with SMTP configurations. Primarily, your solution should've worked, but it didn't. Because the error says, Quote: 5.5.1 Authentication Required. This requires authentication, not a secure channel. In this case, I would recommend checking the...
2 Jul 2020 by Akshay malvankar
i am sending image in my mail body like this
18 Sep 2013 by alex giulio
I am working with a project be related to Gmail. When I send from a Gmail to others, I want to know whether the recipient of mail (to whom mail was sent) read/opened my email or not. So, how can I write codes? Please, help me! Thank you so much!
1 Oct 2013 by alex giulio
hello every body!please help me! i want to sync data between gmail and software, but i don't have much knowledge about it. every can help me understand deeply about it, thank so much!
27 Jan 2014 by Ami_Modi
I got another way out to get open statistics in following link: http://www.aspnetemail.com/samples/emailtracker/default.aspxThis is the easiest way.
2 Jul 2020 by Andre Oosthuizen
Google's Gmail website automatically blocks many email images until it's sure the messages are coming from a trusted source.> Gmail blocks only images that are stored on another website. Spammers often use linked images to verify that your email...
8 Feb 2015 by Android_Maddy
In My App I Have To Login Using Gmail Then I Need To Fetch Profile Info Like Profile Name, Email Id, Gender.Although i am able to access user's profile info using Google plus lo-gin. But i want to do it using authorize G mail API as it did in this sample. So please suggest me how can i...
3 Mar 2014 by Anubhav689
Hey,It's hard to say something by just knowing that after 15-20 users your application is giving the error but still I am trying to solve your problem.Look, we can only send 500 mails using the SMTP Configuration for Gmail/ Yahoo/ Hotmail but if we are sending bulkmail from Outlook or...
16 Apr 2019 by aravindnass
Hi, As part of my project, I can able to read the email using Gmail API but my problem is when I fetch the body, the signature is seen along with the body. So I need to remove the Gmail signature and fetch only the content or message of body. is there is any other way to remove the Gmail...
6 Mar 2020 by aravindnass
Hi, I can read/modify gmails from my own Gmail account via Gmail API using its credentials using Google.Apis.Auth.OAuth2; using Google.Apis.Gmail.v1; But now, IT operation provide me a shared Gmail or delegate. So I want to access, read/modify from that delegate email. How can I access...
23 Apr 2014 by Arnaldo P. Castaño
I have Phproxy 0.52b working on this domain: http://programmingmath.esy.es but is not working for Gmail, that is, I can not sign in to Google. I know there are web proxies that are based on Phproxy and allow you to access Gmail, how can I modify Phproxy for this purpose, appreciate any help,...
11 Oct 2013 by ASP.NET Community
using System.Net.Mail;public partial class SUPER_mail : System.Web.UI.Page{    protected void Page_Load(object sender, EventArgs e)    {    }   
10 May 2016 by AssafStern
Hey everyone, I’m trying to write a simple web application using .Net which shows a user a simple web page with a single button. By clicking on the button the user authenticates his Gmail account using OAuth2 and then the page lists him with his unread emails.This is my...
1 Oct 2013 by bbirajdar
You should better start researching on your own and then come back with specific questions, code snippets and error messages if any.Start from this link Read Gmail in C#[^]
20 Apr 2016 by bindash
hii all i am getting an error in sending mail module in my asp .net web application.my mail module is working properly in local host.. when i publish my applicationmy btnsnd_click code isstring usertype = string.Empty;DataTable dt = new DataTable();try{ for (int i = 0;...
8 Nov 2013 by C For Code!!!
Hey friend to use facebook credentials as login to your account you need to with facebook api developer documnetaionGo with following link[click here]
21 Oct 2022 by Chaitanya 2022
I am creating a web application with ASP .Net WEB API for integrating GMail API. I am reading threads then reading messages on each thread id with a loop of threads. It is taking too much loading to get response. Please help me if i did anything...
28 May 2015 by Chandramani.srivastava
To Fix THis Problem Go tO GMAIL CHANGE SECURITY SETTING ... For Access Less Secure App Turn it OFF and Send mail with above codeany problem contact : chandramani.sri @ gmail.com
2 Apr 2014 by Code Help 2014
Here is a good tutorial for "how to import Contacts from GMAIL using ASP.NET and C#":http://www.aspdotnet-suresh.com/2010/04/import-contacts-from-gmail.html[^]
2 Oct 2013 by codestar007
How to read mail from Gmail using C#.net[^]
9 Oct 2013 by codestar007
It could be firewall problem, or you have made too many connections to the server.Check the below link oncehttp://forums.asp.net/t/1440964.aspx[^]
19 Sep 2014 by Daniel Rios M
/*HOW TO GET Just the UNREAD EMAILS*/ MailClient oClient = new MailClient("TryIt"); oClient.GetMailInfosParam.GetMailInfosOptions = GetMailInfosOptionType.NewOnly;
24 Jun 2017 by Dave Kreskowiak
We're not doing your research for you. Start reading here[^].
30 Sep 2016 by David_Wimbley
In order to send an email via gmail you must use a password. I highly highly doubt google would just let everyone and their mother send passwords on behalf of others without authentication.I think exchange offers the ability to send on behalf of another user, only after you've authenticated...
20 Mar 2015 by debasish mishra
You can use Imapx Libraries.Using these libraries worked for me.The best one in IMAP i believe.http://imapx.codeplex.com/[^] If you are using these type of dlls and connecting to Gmail server then may be your organization firewall is blocking the inbound and outbound calls.This might be...
13 Mar 2015 by Dheeraj Singh Bhadoria
Please refer this example to implement-Example[^]
27 Jun 2015 by DilshadHussain
Hi,I am trying to create a web form where clicking on button will open Gmail in IE.Below is the code I am using, when I run it and click on Open Gmail button I am getting error at underlined line.I have tried both Passwd and passwd-hidden but get same error. Also, I want to know...
29 Jan 2014 by elshorbagy
I want to import Gmail contacts in my web application. I read the guide lines for Google API v3, but it is very complicated to me, if there is a simple example or simple tutorials I will appreciate it.I'm using VS 2008, Framework 3.5Thank you
27 Jun 2015 by F-ES Sitecore
This is why you shouldn't send email via gmail, you should use the smtp server provided by your webhost or isp. Log into your gmail account manually as if it decides you need to pass a cpatcha test then it won't allow you to send email until it's done manually. There might be other issues,...
2 Feb 2016 by F-ES Sitecore
The solution is to not use gmail, use the smtp server provided by your webhost.Things you shouldn't spend time doing | The ASP.NET Forums[^]
30 Sep 2016 by F-ES Sitecore
What you're trying to do is called message relaying and gmail doesn't let you do it and it's one of the many reasons you shouldn't be using gmail to send email. Use the smtp server provided by your webhost instead which is likely to allow relaying (and that's how others "do it").Things you...
19 Dec 2018 by F-ES Sitecore
create gmail account c# - Google Search[^]
26 Feb 2019 by F-ES Sitecore
Have you followed the various configuration steps? SMTP relay: Route outgoing non-Gmail messages through Google - G Suite Admin Help[^] One thing I can see right off the bat is that you're not using the smtp server detailed in the documentation so I'd make sure you've gone through the...
1 Jun 2016 by Faziki
Hello guys,1st post here! YAY :) Im Really NOOB with API'S and cant get any Working code that helps :( I dont ask much, just for community support and direction :PTo the point, Im struggling with Googles API. all i want is the code to work and im stuck now for 4 days on a piece of...
25 Mar 2016 by freedeveloper
Simple Implementation of Google API IDataStore that use MS-SQL server to store your token file
21 Oct 2014 by Garth J Lancaster
we don't do code like this for people - I suggest (if you cant google a solution) you re-post this request on rent-a-coder
20 May 2020 by Garth J Lancaster
The 334 indicates an authentication error of some kind - I'd have expected extra information in the response alluding to the exact problem
27 May 2020 by Garth J Lancaster
Pretty sure you asked the same thing recently .. this post Q: How do I authenticate with an OAUTH2 access token? · Issue #606 · jstedfast/MailKit · GitHub[^] points out that await credential.RefreshTokenAsync(CancellationToken.None); seems to...
17 Dec 2014 by Gaurav_Kaushik
@QoSi QuReshistill not working...!!!
2 Sep 2021 by Gbetnkom Jeff
Hi everyone, hope you are doing well. I've tried to retrieve all mails from my Gmail INBOX but it's not working unfortunately. There is no error. It's just showing me i've no mail in that folder. What I have tried: public static void...
21 Nov 2015 by George Jonsson
As you might have understood by now, this is a programming forum so your question is a little bit off topic. If you have problems with the actual HTML code, then you can come back and ask about that.If what you want to do is to write HTML code in a gmail body and then send it, this link...
10 Feb 2015 by GGMU
I think Gmail blocks all scripts.. thats why events are not firing
20 May 2020 by Grupo Microsistemas
I´m trying to send a email using Oauth2, but i´m getting a error when i authenticate my user. This is the error "An unhandled exception of type 'MailKit.Security.AuthenticationException' occurred in mscorlib.dll Additional information: 334:...
27 May 2020 by Grupo Microsistemas
Hello, i have an app that send emails correctly, the problem is later that day a error shows up saying "Authentication Error code:334". I think that i need to refresh the token or maybe gmail smtp have a limit for free emails. What I have tried:...
28 Aug 2017 by Heba Kamel
Hi, I used this code to sending email from my desktop application string smtpAddress = "smtp.gmail.com"; int portNumber = 587; bool enableSSL = true; string emailFrom = "xyz@gmail.com"; string password = "myPassword"; string...
10 Aug 2021 by Heba Kamel
Hi, I am trying to send mail from gmail and it's sent successfully in localhost but when publish website on server didn't send any help here?it's my code MailMessage mail = new MailMessage(); mail.Subject = strSubject; mail.From = new...
4 May 2017 by Hitesh Chavada
How to use two step authentication (Gmail) during sending mail in C# win form What I have tried: Try this solution security - SmtpClient in C# using smtp.Gmail.com:857 with Google's 2 Step Verification activated - Stack Overflow[^] but it's doesn't work
12 Jun 2014 by Jafarinejadvazifehkhorani
The only thing that you can do is using Google, Microsoft, Facebook or Yahoo as Identity provider in order to authenticate users. So , if it's the case refer to WIF(Windows Identity Foundation)
3 Mar 2014 by Jhone2011
use sendAsync() method of STMPCLIENT class, read online articles for more detail
3 Oct 2017 by Jochen Arndt
There is no method if the video has been send as attachment. All you can do is using some kind of Email tracking - Wikipedia[^]. If the mail contains a link to the video and it is stored on a server controlled by you, you can provide a personalised link and check the server logs for an access...
1 Nov 2017 by Jochen Arndt
It looks like connections are not closed (disconnected) when not used anymore. To know how to do that you should read the documentation of the used Imap4Client class. I would expect that connections are closed in the Imap4Client destructor. But even then it would be better to disconnect...
30 Jan 2018 by Jochen Arndt
In addition to your thread at the mentioned article which seems to have solved your problem and to have an answer here: There are no Gmail specific "raw" data. It is the format of mail messages as defined by RFC 2822: Internet Message Format[^] and related RFCs like RFC 2045 - 2049 for the MIME...
27 Mar 2018 by Jochen Arndt
See What are some of the most common mistakes people make when using JavaMail?[^]: Quote: Setting various socketFactory properties. Long, long ago JavaMail didn't have built in support for SSL connections, so it was necessary to set these properties to use SSL. This hasn't been the case for...
20 Jul 2018 by Jochen Arndt
Quote: When I am running same application on my development PC it works perfectly, but when install setup on client PC it gives error That indicates that it is a problem with the client system or it's local network environment. Quote: I tried disabling anti-virus and firewall but same error....
3 Jan 2016 by JoCodes
Check Auth using gmail Api[^]Another Sample[^]
19 Aug 2013 by kalisiddayya
i want to unread mail from gmail accout created in google app.i try to read the mail.connection is established but email it is should 0.MailServer oServer = new MailServer("pop.gmail.com", "alpha@convate.com", "Siddhu@1", ServerProtocol.Pop3);MailClient oClient = new...
25 Jan 2015 by Ken H123
hello everyon, My questions are as follows: 1)How to authorized use Gmail API to account in asp.net? 2)How to use Gmail api get Inbox lists and sent mail in asp.net?Please provide any relevant sample code.Thanks in advance.
8 Nov 2013 by kingsa
Hi All, I have a application for using my he can access with his facebook or gmail credentials can u guide or send snippets
2 Feb 2016 by koolprasad2003
If it is working on local and now on server, then there may not be code issue, you need to check other things like firewall settings.What error you got exactly ?try out with port number 587, see below snippetMailMessage mail = new MailMessage(); mail.Subject = "Your Subject"; mail.From...
28 Sep 2015 by Kunal Chowdhury «IN»
Hi Experts,I have observed a different scenario with Gmail syncing in Outlook. In Outlook 2010 and previous, "All Mails" (Archived) was present and I could find out my archived mails easily. But in Outlook 2013, I could not find out any specific folder for the Gmail's archived mail.Is it...
23 Jun 2015 by Lakhan Anjana
Fetch Gmail Contacts[^]
15 Sep 2013 by Leena 206
Do u know about Oauth? Just google it, you will Find good way.. google[^]
14 Jun 2022 by Limupua Service
Tried logging into it, resetting my account and even creating new accounts but it didnt work What I have tried: Sending Mail
26 Feb 2019 by Maciej Los
I'd strongly recommend to read this: c# - Gmail Error :The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required - Stack Overflow[^]
20 May 2020 by MadMyche
I would recommend that you read through the following page and verify that you have everything set up correctly; sounds like the MailKit sample code may not be the same as Google provides MailKit Issue #962: AuthenticationException 334[^] It...
13 Sep 2013 by Makzrider
I'm Trying to Sync my gmail account in my asp.net project with back end of c#. Right now I can just send mail using the code:public void SendMail() { //Build The MSG System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage(); ...
26 Jul 2016 by Malikdanish
I have two methods the first one is the simplest one like below , while in second one i am formatting my email content , the second method calls another method to format and then it calls another method for smtp settings, the first method works fine it is sending email to my domain email address...
11 Jun 2014 by Manikandan10
You can't do such things and there are no API for that. How can you pass the Human Verification or Captchas?
31 Jan 2017 by Mannava Siva Aditya
Trying to Send Bulk EMails in asp.net using smtp gmail server getting SMTPException was unhandled by user code. An exception of type 'System.Net.Mail.SmtpException' occurred in System.dll but was not handled in user codeAdditional information: Failure sending mail.My Code:string...
2 Sep 2021 by mareos
I think gmail only allows connections with TLS, so you should use POP3S instead of POP3 Try changing Store store = emailSession.getStore("pop3"); to Store store = emailSession.getStore("pop3s"); also connection should use the same host...
20 Jul 2018 by markwhite1
Hi, I am trying to access mail from gmail server, but when I try to connect it gives me error: Unable to read data from transport connection: connection attempt failed because the connected party did not properly respond after a period of time, or establish connection failed because connected...
6 Apr 2015 by mayooran99
I executed few requests through POSTMAN but I am always getting this error: { "error": { "code": 404, "message": "Not Found", "errors": [ { "domain": "global", "message": "Not Found", "reason": "notFound" } ] } }these...
27 Jun 2014 by mayuresh_joshi
I am working on C# project in which I need to add the labels in Gapps account. I am able to add the label but not able to create sub label in newly created label. Here is the sample code for creating label.GoogleMailSettingsService service = new GoogleMailSettingsService(_domain,...
1 Nov 2017 by Mcbaloo
I'm trying to use the MailSystem.Net to retrieve mails from my gmail account but i get the above error. I have just follow through an example online to make a demo application as a window service. I tried to log the errors to a folder and after running the service i get the above error...