c# - Recieving error retrieving mail with Imap on Gmail (port 143) -
hello using limilabs library connect gmail account. purpose of programme send mail service , receive. on laptop can receive mails on friend's pc can both receive , send. question why can't receive emails on laptop?
the programme supposed download emails , populate subject in listbox , on friend's laptop working not on mine. getting error port 143. here part of code. give thanks in advance.
public void readmail() { using (imap imap = new imap()) { seek { imap.connect("imap.gmail.com"); //connectssl ssl imap.login("xxxxxxxxx", "xxxxxx"); } grab (exception ex) { messagebox.show("log in failed. " + ex.tostring(), "message", messageboxbuttons.ok, messageboxicon.error); }
i found solution:
i needed utilize connectssl method, , alter port 993
here single line of code needed changed:
imap.connectssl("imap.gmail.com",993);
c# email gmail imap
No comments:
Post a Comment