Comments (8)
Hi @kadeshar
Can you sent to me an example of your code?
We use POP3 SSL with gmail accounts without problem.
from mailsystem.net.
if (Convert.ToBoolean(usingAccount[threadNumber, 4]) == true)
{
pop[threadNumber].ConnectSsl(usingAccount[threadNumber, 2], Convert.ToInt32(usingAccount[threadNumber, 3]), usingAccount[threadNumber, 6], usingAccount[threadNumber, 7]);
}
else
{
pop[threadNumber].Connect(usingAccount[threadNumber, 2], Convert.ToInt32(usingAccount[threadNumber, 3]), usingAccount[threadNumber, 6], usingAccount[threadNumber, 7]);
}
With old dll is no problem. Only with new one.
Im debugged a program and in my example usingAcconut[threadNumber, 3] = "995".
from mailsystem.net.
Hi @kadeshar
I created some tests to try connect POP3 with the last version of Lib.
The test is like the follow:
[Test]
public void pop3_connect_with_login_ssl_test()
{
try
{
using (var _clientpop3 = new Pop3Client())
{
var connectAndLoginResponse = _clientpop3.ConnectSsl(_popServerAddress, _popPort, _popLogin, _popPassword);
Assert.IsTrue(_clientpop3.MessageCount >= 0);
_clientpop3.Disconnect();
}
Assert.IsTrue(true);
}
catch (Exception e)
{
Assert.Fail("Don't work. Error: " + e.Message, e);
}
}
I don´t have any erros and all tests with POP3 and SSL.
What error message you receive from server?
from mailsystem.net.
This line is problem:
https://drive.google.com/file/d/0B3wpZmFEwnZ_YUg5dUlpV2I4M2c/view?usp=sharing
Catch exception from this line:
Value was either too large or too small for an Int32
from mailsystem.net.
from mailsystem.net.
Eeeeeeee wow. I dont understand but work.
This work:
var port = Convert.ToInt32(portspr[numerwatku]);
popspr[numerwatku].ConnectSsl(hostspr[numerwatku], port, loginspr[numerwatku], haslospr[numerwatku]);
This not (error in second line):
int port = Convert.ToInt32(portspr[numerwatku]);
popspr[numerwatku].ConnectSsl(hostspr[numerwatku], port, loginspr[numerwatku], haslospr[numerwatku]);
And second question, Why this code work properly without error when:
imapspr[numerwatku].ConnectSsl(hostspr[numerwatku], Convert.ToInt32(portspr[numerwatku])); imapspr[numerwatku].Login(loginspr[numerwatku], haslospr[numerwatku]);
Of course im noobie in programming ;)
from mailsystem.net.
I think this answer your doubt:
http://stackoverflow.com/questions/1608801/difference-between-convert-toint32-and-int
I will close this issue :-)
Thanks.
from mailsystem.net.
Still i dont understand.
int port = Convert.ToInt32(portspr[numerwatku]);
result i have variable System.Int32 with value 995
still Connectssl throw exception :| and why oldest library didnt throw that?
This code too throw exception:
int port = 995;
popspr[numerwatku].ConnectSsl(hostspr[numerwatku], port, loginspr[numerwatku], haslospr[numerwatku]);
from mailsystem.net.
Related Issues (20)
- [ALERT] Too many simultaneous connections. HOT 1
- BCC Visible when sending HOT 16
- [Error] System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
- Connection with Office365 HOT 2
- variables not either undeclared or was never assigned
- Last char of subject is ')' HOT 1
- delete
- "Index and length must refer to a location within the string" when using SINCE 24-Apr-2019 HOT 1
- IMAP4 - Not able to fetch calendar/tasks/contacts mailboxes messages using IMAP4 from exchange server.
- UnknownDispositionMimeParts properties blank
- Not getting notification from Office365
- SelectMailbox function may hang
- Checking gmail INBOX gives exception
- How to get spam email?
- S/MIME signing - wrong hash
- Meeting Request via SMTP HOT 2
- Can we manually set read unread option
- imap Openxchange.eu problem, SSL new version? HOT 1
- OAuth - IMAP - Office365 HOT 3
- Code Examples
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailsystem.net.