Web Connection
re: mathematical formula
Gravatar is a globally recognized avatar based on your email address. re: mathematical formula
  Alec Gagne
  All
  Feb 12, 2021 @ 11:29pm

With all the threads and all the discussion about SMTP I feel like I should already know the answer to my question. I'm using WC 7.10

My ISP/Mail Host indicates that the SMTP Secure SSL/TLS Settings use port 465 and SMTP Non-SSL Settings use port 587. All other SMTP settings are the same.

The code below works great when I use Port 587 and have lUseSsl=.F. However when I use port :465 with lUseSsl=.T. it does not work and I get a "The operation has timed out." error message. I've other non-WC applications that work with both ports against the same host. Probably a redundant question here but is this likely:

1.) a firewall issue associated with my specific WC app? I don't think so as I tried completely disabling my firewall on my client / development machine but it did not resolve the issue. or

2.) given the discussions about "new" SMTP protocols (not sure what that might be) could this perhaps be an issue where wwSmtp is not supporting something new that my ISP/Mail host is expecting?

DO wwSmtp 
    
LOCAL loIP as wwSmtp

loIP = CREATEOBJECT("wwSmtp",0)
loIP.cMailServer = 'myserver.com:587'
loIp.lUseSsl = .F.
loIP.cUsername = 'myusername' 
loIP.cPassword = 'mypassword' 
loIP.cSenderName = 'Test'
loIP.cSenderEmail = 'myemail@mydomain.com'
loIP.cRecipient = 'someaddress@somedomain.com'
loIP.cSubject = 'Test'
loip.cContentType = 'text/html'
loIP.cMessage = 'Test Message'
loIP.nTimeout = 20
llResult = loIP.SendMail()
if !llResult
   ? loIP.cErrorMsg
endif

Thanks,

Alec

Gravatar is a globally recognized avatar based on your email address. re: mathematical formula
  Rick Strahl
  Alec Gagne
  Feb 13, 2021 @ 12:05am

I would think this is some sort of connection issue. Are you sure that those ports are correct? 587 is usually the port used for TLS/SSL.

And make sure nMailMode = 0 in order for SSL to work. Looks like you're passing it to the constructor so that should work, but maybe double check to make sure the property is set.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: mathematical formula
  Alec Gagne
  Rick Strahl
  Feb 13, 2021 @ 04:05pm

Turns out my ISP documentation was wrong! Server Name is different for Port 465.

Now, unless Google does something completely different I'll try to get it working with that host.

Thanks

Alec

Gravatar is a globally recognized avatar based on your email address. re: mathematical formula
  Tore Bleken
  Rick Strahl
  Feb 14, 2021 @ 12:19am

Why has the title (caption) of this thread changed from "SMTP non-SSL/TLS working: SSL/TLS not working" into "mathematical formula"? I also sent you a PM about this.

Gravatar is a globally recognized avatar based on your email address. re: mathematical formula
  Rick Strahl
  Tore Bleken
  Feb 14, 2021 @ 12:00pm

There's a bug here somewhere, but it's not data corruption.

I think it has to do with client side data recovery where post data is maintained if you abort editing. IOW, if you start replying to a message, then exit without saving the message board saves the text you typed. Next time you create a new message or reply to an existing one it'll ask you if you want to restore the aborted text. I think in that restore something is going wrong also restoring the header (which it shouldn't).

Once the header is changed the title of the thread is bound to the last message, since users can change the title of a message in the thread and that may be the only message that actually displays.

+++ Rick ---

© 1996-2024