Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #9246 > unrolled thread
| Started by | "Pedro M. Espinosa" <pmespinosa@gmail.com> |
|---|---|
| First post | 2016-04-11 21:19 -0700 |
| Last post | 2016-04-14 05:51 +0200 |
| Articles | 9 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
How can I know why cSmtp:SendMail() fails? "Pedro M. Espinosa" <pmespinosa@gmail.com> - 2016-04-11 21:19 -0700
Re: How can I know why cSmtp:SendMail() fails? "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-04-12 08:38 +0200
Re: How can I know why cSmtp:SendMail() fails? "Gerhard Bunzel" <g.bunzel@domonet.de> - 2016-04-12 11:30 +0200
Re: How can I know why cSmtp:SendMail() fails? "Pedro M. Espinosa" <pmespinosa@gmail.com> - 2016-04-12 11:19 -0700
Re: How can I know why cSmtp:SendMail() fails? "Pedro M. Espinosa" <pmespinosa@gmail.com> - 2016-04-12 15:11 -0700
Re: How can I know why cSmtp:SendMail() fails? "Pedro M. Espinosa" <pmespinosa@gmail.com> - 2016-04-12 11:11 -0700
Re: How can I know why cSmtp:SendMail() fails? "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-04-13 06:49 +0200
Re: How can I know why cSmtp:SendMail() fails? sherlocksoftware@gmail.com - 2016-04-13 13:21 -0700
Re: How can I know why cSmtp:SendMail() fails? "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-04-14 05:51 +0200
| From | "Pedro M. Espinosa" <pmespinosa@gmail.com> |
|---|---|
| Date | 2016-04-11 21:19 -0700 |
| Subject | How can I know why cSmtp:SendMail() fails? |
| Message-ID | <24d05728-e1a9-4fc2-9e79-4df7dae31b7b@googlegroups.com> |
Hi, I'm using the email sample aef that comes with CAVO 2.8 SP 4 and want to know the reason of the SendMail() method failing.
I tried with my email server and it works fine, but with my customer's server fails.
I changed the code to:
IF oSmtp:SendMail()
oEmailServer:FIELDPUT(#BOXID, EmailServer:ApplySentboxRules(oEmail))
ELSE
IF oSmtp:CheckReply()
xReplyString := oSmtp:ReplyString // NULL STRING
xReplyCode := oSmtp:ReplyCode // 0
xError := oSmtp:Error // 0
ENDIF
lOK := FALSE
ENDIF
But it returns no information of what's wrong
Any help will be appreciated.
[toc] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2016-04-12 08:38 +0200 |
| Message-ID | <dn3jffFs61kU1@mid.individual.net> |
| In reply to | #9246 |
Hi Pedro, there are several possibilities: - your customers server is requiring authentication and yours not - your customers server is requiring another type of authentication than yours - your customers server is requiring another port (you could try port 587) - your customers server is requiring ssl use The first and the 3rd problem should be solvable with VO, the others not so easy. Wolfgang > Hi, I'm using the email sample aef that comes with CAVO 2.8 SP 4 and > want to know the reason of the SendMail() method failing. I tried > with my email server and it works fine, but with my customer's server > fails. I changed the code to: > > IF oSmtp:SendMail() > oEmailServer:FIELDPUT(#BOXID, > EmailServer:ApplySentboxRules(oEmail)) ELSE > IF oSmtp:CheckReply() > xReplyString := oSmtp:ReplyString // NULL STRING > xReplyCode := oSmtp:ReplyCode // 0 > xError := oSmtp:Error // 0 > ENDIF > lOK := FALSE > ENDIF > > But it returns no information of what's wrong > > Any help will be appreciated. --
[toc] | [prev] | [next] | [standalone]
| From | "Gerhard Bunzel" <g.bunzel@domonet.de> |
|---|---|
| Date | 2016-04-12 11:30 +0200 |
| Message-ID | <neif7b$1pg$1@news.m-online.net> |
| In reply to | #9247 |
...here you will find VO2SSL - a SSL library for VO http://vo2ssl.sourceforge.net/ Not tested .... HTH Gerhard Bunzel "Wolfgang Riedmann" schrieb im Newsbeitrag news:dn3jffFs61kU1@mid.individual.net... Hi Pedro, there are several possibilities: - your customers server is requiring authentication and yours not - your customers server is requiring another type of authentication than yours - your customers server is requiring another port (you could try port 587) - your customers server is requiring ssl use The first and the 3rd problem should be solvable with VO, the others not so easy. Wolfgang > Hi, I'm using the email sample aef that comes with CAVO 2.8 SP 4 and > want to know the reason of the SendMail() method failing. I tried > with my email server and it works fine, but with my customer's server > fails. I changed the code to: > > IF oSmtp:SendMail() > oEmailServer:FIELDPUT(#BOXID, > EmailServer:ApplySentboxRules(oEmail)) ELSE > IF oSmtp:CheckReply() > xReplyString := oSmtp:ReplyString // NULL STRING > xReplyCode := oSmtp:ReplyCode // 0 > xError := oSmtp:Error // 0 > ENDIF > lOK := FALSE > ENDIF > > But it returns no information of what's wrong > > Any help will be appreciated. --
[toc] | [prev] | [next] | [standalone]
| From | "Pedro M. Espinosa" <pmespinosa@gmail.com> |
|---|---|
| Date | 2016-04-12 11:19 -0700 |
| Message-ID | <f4bf8502-562b-4009-92d3-1982b3912dc6@googlegroups.com> |
| In reply to | #9250 |
On Tuesday, April 12, 2016 at 4:30:20 AM UTC-5, Gerhard Bunzel wrote: > ...here you will find VO2SSL - a SSL library for VO > http://vo2ssl.sourceforge.net/ > > Not tested .... > > HTH > > Gerhard Bunzel > > > "Wolfgang Riedmann" schrieb im Newsbeitrag > news:dn3jffFs61kU1@mid.individual.net... > > Hi Pedro, > > there are several possibilities: > > - your customers server is requiring authentication and yours not > - your customers server is requiring another type of authentication > than yours > - your customers server is requiring another port (you could try port > 587) > - your customers server is requiring ssl use > > The first and the 3rd problem should be solvable with VO, the others > not so easy. > > Wolfgang > > > > Hi, I'm using the email sample aef that comes with CAVO 2.8 SP 4 and > > want to know the reason of the SendMail() method failing. I tried > > with my email server and it works fine, but with my customer's server > > fails. I changed the code to: > > > > IF oSmtp:SendMail() > > oEmailServer:FIELDPUT(#BOXID, > > EmailServer:ApplySentboxRules(oEmail)) ELSE > > IF oSmtp:CheckReply() > > xReplyString := oSmtp:ReplyString // NULL STRING > > xReplyCode := oSmtp:ReplyCode // 0 > > xError := oSmtp:Error // 0 > > ENDIF > > lOK := FALSE > > ENDIF > > > > But it returns no information of what's wrong > > > > Any help will be appreciated. > > > > -- Gerhard: Thanks for the link. I will try it, and let you know Best regards Pedro
[toc] | [prev] | [next] | [standalone]
| From | "Pedro M. Espinosa" <pmespinosa@gmail.com> |
|---|---|
| Date | 2016-04-12 15:11 -0700 |
| Message-ID | <01403f43-d799-4b4f-9588-0e6a763f194e@googlegroups.com> |
| In reply to | #9255 |
On Tuesday, April 12, 2016 at 1:19:58 PM UTC-5, Pedro M. Espinosa wrote: > On Tuesday, April 12, 2016 at 4:30:20 AM UTC-5, Gerhard Bunzel wrote: > > ...here you will find VO2SSL - a SSL library for VO > > http://vo2ssl.sourceforge.net/ > > > > Not tested .... > > > > HTH > > > > Gerhard Bunzel > > > > > > "Wolfgang Riedmann" schrieb im Newsbeitrag > > news:dn3jffFs61kU1@mid.individual.net... > > > > Hi Pedro, > > > > there are several possibilities: > > > > - your customers server is requiring authentication and yours not > > - your customers server is requiring another type of authentication > > than yours > > - your customers server is requiring another port (you could try port > > 587) > > - your customers server is requiring ssl use > > > > The first and the 3rd problem should be solvable with VO, the others > > not so easy. > > > > Wolfgang > > > > > > > Hi, I'm using the email sample aef that comes with CAVO 2.8 SP 4 and > > > want to know the reason of the SendMail() method failing. I tried > > > with my email server and it works fine, but with my customer's server > > > fails. I changed the code to: > > > > > > IF oSmtp:SendMail() > > > oEmailServer:FIELDPUT(#BOXID, > > > EmailServer:ApplySentboxRules(oEmail)) ELSE > > > IF oSmtp:CheckReply() > > > xReplyString := oSmtp:ReplyString // NULL STRING > > > xReplyCode := oSmtp:ReplyCode // 0 > > > xError := oSmtp:Error // 0 > > > ENDIF > > > lOK := FALSE > > > ENDIF > > > > > > But it returns no information of what's wrong > > > > > > Any help will be appreciated. > > > > > > > > -- > Gerhard: > Thanks for the link. > I will try it, and let you know > Best regards > Pedro Hi Gerard: Further on your link. The Accept method is coded as: METHOD accept() AS CSocket PASCAL CLASS SslSocket and gives the following compilation error: CSOCKET is not inherited from SSLSOCKET How should it be coded? TIA Pedro
[toc] | [prev] | [next] | [standalone]
| From | "Pedro M. Espinosa" <pmespinosa@gmail.com> |
|---|---|
| Date | 2016-04-12 11:11 -0700 |
| Message-ID | <2a044c9a-8696-4c03-8328-191ebcd4ee75@googlegroups.com> |
| In reply to | #9247 |
On Tuesday, April 12, 2016 at 1:38:41 AM UTC-5, Wolfgang Riedmann wrote: > Hi Pedro, > > there are several possibilities: > > - your customers server is requiring authentication and yours not > - your customers server is requiring another type of authentication > than yours > - your customers server is requiring another port (you could try port > 587) > - your customers server is requiring ssl use > > The first and the 3rd problem should be solvable with VO, the others > not so easy. > > Wolfgang > > > > Hi, I'm using the email sample aef that comes with CAVO 2.8 SP 4 and > > want to know the reason of the SendMail() method failing. I tried > > with my email server and it works fine, but with my customer's server > > fails. I changed the code to: > > > > IF oSmtp:SendMail() > > oEmailServer:FIELDPUT(#BOXID, > > EmailServer:ApplySentboxRules(oEmail)) ELSE > > IF oSmtp:CheckReply() > > xReplyString := oSmtp:ReplyString // NULL STRING > > xReplyCode := oSmtp:ReplyCode // 0 > > xError := oSmtp:Error // 0 > > ENDIF > > lOK := FALSE > > ENDIF > > > > But it returns no information of what's wrong > > > > Any help will be appreciated. > > > > -- Hi Wolfgang, My server requires authentication and my customer's doesn't and it doesn't need another port (at least that's what I saw in their outlook configuration). How can I find out if it requires ssl use? But my question is if there is another way of checking the cSmtp object for the reason of the failure. Thanks again, Pedro
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2016-04-13 06:49 +0200 |
| Message-ID | <dn61dtFgn39U1@mid.individual.net> |
| In reply to | #9254 |
Hi Pedro, > My server requires authentication and my customer's doesn't and it > doesn't need another port (at least that's what I saw in their > outlook configuration). How can I find out if it requires ssl use? > But my question is if there is another way of checking the cSmtp > object for the reason of the failure. if your customers server does not require authentication, I don't think it requires SSL. These days, it is mainly Google that requires SSL. I suppose they have a local mail server (otherwise a connection without authentication would be impossible). Could it be that they require SMTP after POP? (a POP connection first and then the SMTP connection). You should look into their Outlook configuration in the advanced SMTP properties. Do you have tried to debug the connection? Or do you have access to the mail server logs to see what is going wrong? Do you have tried on their machines? Wolfgang --
[toc] | [prev] | [next] | [standalone]
| From | sherlocksoftware@gmail.com |
|---|---|
| Date | 2016-04-13 13:21 -0700 |
| Message-ID | <cc48064a-d2b1-4ba8-aa51-7757ab804684@googlegroups.com> |
| In reply to | #9257 |
Wolfgang snip[ SSL. These days, it is mainly Google that requires SSL. ] Not only Google but Live as well and SMTP providors like Mandrill and Sendgrid and more and more this will be the most acceptable way..if we want at least some attempt at security to send data. Port 25 for unencrtped and ports 597 pr 465 for SMTPS We wrote some .NET the only reason I ever needed ,NET for VO.. the get this work so interested if this code works i can dump the .NET code. Also error compiling snip[ CSOCKET is not inherited from SSLSOCKET ] What is the official fix. Interested and work been done on this for SFTP ? Secure FTP is over interest as well built using VO. Phil McGuinness
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2016-04-14 05:51 +0200 |
| Message-ID | <dn8idaF5untU1@mid.individual.net> |
| In reply to | #9263 |
Hi Phil, unfortunately the VO SMTP classes have also a serious bug, therefore I use another software to make SMTP connections, and this software uses stunnel.exe for SSL connections. (precisely I'm using SEE from Marshallsoft - if anyone is interested, I can share my interface library). The bug the SMTP classes have is rather serious: when you have attachments and a not so stable connection (occuring often with mobile connections), some parts of the attachments are retransmitted, corrumping attachments - they become bigger as they should. I plan to use more and more Vulcan.NET or X# components in my applications, but some of the most important applications will be ported over to .NET, so the problems solves itself. Wolfgang > Wolfgang > > snip[ SSL. These days, it is mainly Google that requires SSL. ] > > Not only Google but Live as well and SMTP providors like Mandrill and > Sendgrid and more and more this will be the most acceptable way..if > we want at least some attempt at security to send data. > > Port 25 for unencrtped and ports 597 pr 465 for SMTPS > > We wrote some .NET the only reason I ever needed ,NET for VO.. the > get this work so interested if this code works i can dump the .NET > code. > > Also error compiling snip[ CSOCKET is not inherited from SSLSOCKET ] > > What is the official fix. > > Interested and work been done on this for SFTP ? > Secure FTP is over interest as well built using VO. > > > Phil McGuinness --
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web