EldoS | Feel safer!

Software components for data protection, secure storage and transfer


Posted: 07/30/2009 03:54:46
by WebSerGe  (Basic support level)
Joined: 07/30/2009
Posts: 6

Could you write example? Because there no example in Examples...
And I dont know exactly method Login. What is Domain? Have i use IP-address or name in ADDRESS?
Sorry for such simple questions and my english/
Posted: 07/30/2009 04:09:31
by Eugene Mayevski (Team)

The sequence of calls is
Send(<put your prepared RFC 822 or MIME message here>);

In Login you need to send the domain name of your host, as visible by the recipient side. If you leave the parameter empty, the component will attempt to get the local host name from the system, but this is not always what the SMTP server expects to get.

Sincerely yours
Eugene Mayevski
Posted: 07/30/2009 04:13:59
by Ken Ivanov (Team)

There's no sample for TElSMTPClient class, sorry. In general, the component should be used in the following way:
m_smtpClient = new TElSMTPClient();
m_smtpClient.Address = "smtp.wonderland.com";
m_smtpClient.Port = 465;
m_smtpClient.Username = "lewis_carrol";
m_smtpClient.Password = "cheshire_cat";
m_smtpClient.UseSSL = true;
m_smtpClient.SSLMode = TSBSSLMode.smImplicit; // required for Gmail
m_smtpClient.UseInternalSocket = true;
m_smtpClient.OnCertificateValidate += new SBSSLCommon.TSBCertificateValidateEvent(client_OnCertificateValidate);
m_smtpClient.OnError += new SBSSLCommon.TSBErrorEvent(client_OnError);

Pass an empty string as a domain for Gmail SMTP server.
Posted: 07/30/2009 07:06:17
by WebSerGe  (Basic support level)
Joined: 07/30/2009
Posts: 6

Thanks. But I did it before except
m_smtpClient.SSLMode = TSBSSLMode.smImplicit; // required for Gmail
But I can`t


And ProxyResult is 200.
Posted: 07/30/2009 11:01:40
by Ken Ivanov (Team)

And what exactly exception do you get?
Posted: 07/30/2009 13:12:26
by Eugene Mayevski (Team)

And are you sure that you actually need to set up WebTunnel proxy? This is the type of proxy that connects to the HTTP proxy, then issues CONNECT command to open the channel to the needed port of the remote side and then tunnels the data.

Sincerely yours
Eugene Mayevski
Posted: 07/31/2009 06:21:27
by WebSerGe  (Basic support level)
Joined: 07/30/2009
Posts: 6

Yes I need.
I tried to use ElHTTPSClient with httpproxy. It works perfect.
Also it works perfect with webtunneling.
But ElSMTPClient don`t have httpproxy.
ElSMTPClient works perfect if I choose 25 port and USETLS:=False.
But Gmail wants ssl or tls (wireshark show "You need to starttls").
If USETLS:=TRUE then OnError is '75777'.
I tried to connect to port 587 (SSL) and 465 (TLS).
I used before Clever Component Suite but it don`t work with proxy
Posted: 07/31/2009 06:29:54
by Ken Ivanov (Team)

Have you set SSLMode to TSBSSLMode.smImplicit? It is required to be set accordingly to make the component work with gmail.
Posted: 07/31/2009 07:11:09
by WebSerGe  (Basic support level)
Joined: 07/30/2009
Posts: 6

Yes of cause.
I find method STARTTLS. if i do it after open error is 75784, Fatal is -1 remote is 0.
Also CertificateValidate is false.
Posted: 07/31/2009 07:23:39
by Ken Ivanov (Team)

It's you who must set Validate parameter of OnCertificateValidate method to true. Handling this event (and setting Validate to true) is absolutely necessary for the component to proceed with SSL negotiation.



Topic viewed 6812 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!