D3 and mvBase

 View Only

 I need help with blat email on d3/Windows

Bob Thomson's profile image
PARTNER Bob Thomson posted 04-03-2024 18:42

The setup string I run seems to work ok:                                                                                                                                    

001 IT = "!d:\blat\blat -install imap.mail.yahoo.com bobthomson2001@yahoo.com 3                                                     
     993"                                                                                                                           
002 EXECUTE IT                                                                                                                      
eoi 002                                                                                                                             
.EX                                                                                                                                 
[220] 'BLAT.INSTALL' exited                                                                                                         
:BLAT.INSTALL                                                                                                                       
Blat v3.2.24 (build : Feb  9 2022 21:19:39)                                                                                         
64-bit Windows, Full, Unicode    

Then I write a file out to Windows, but when I try to run blat to email it I get an error message:

BLAT.TEST                                                                                                                          
Blat v3.2.24 (build : Feb  9 2022 21:19:39)                                                                                         
64-bit Windows, Full, Unicode                                                                                                       
                                                                                                                                    
Error: Can't resolve hostname (smtp.email.yahoo.com).                                                                               
Error: Can't resolve hostname (smtp.email.yahoo.com).                                                                               
Error: Can't resolve hostname (smtp.email.yahoo.com).                                                                               
blat.test:                                                                                                                 
                                                                                                                                    
001 OPEN "DOS:D:\email" TO DOS.EMAIL ELSE STOP "CANNOT OPEN DOS EMAIL"                                                              
002 ITEM = "TEST"                                                                                                                   
003 ITEM<-1> = "LINE TWO"                                                                                                           
004 WRITE ITEM ON DOS.EMAIL, "TEST.TXT"                                                                                             
005 *                                                                                                                               
006 IT = "!d:\blat\blat -server smtp.email.yahoo.com:465 -attach D:\email\test.                                                     
    txt -to bobthomson2001@yahoo.com"                                                                                               
007 EXECUTE IT                                                                                                                      
008 *                

Richard Thiot's profile image
PARTNER Richard Thiot

You probably need to change smtp.email.yahoo.com to smtp.mail.yahoo.com.  The one you are using is not a valid DNS entry.

Bob Thomson's profile image
PARTNER Bob Thomson

That changed the error message I'm getting:

:blat.test                                                                                                                          
Blat v3.2.24 (build : Feb  9 2022 21:19:39)                                                                                         
64-bit Windows, Full, Unicode                                                                                                       
                                                                                                                                    
Error: Wait a bit (possible timeout).                                                                                               
Error: Wait a bit (possible timeout).                                                                                               
Error: Wait a bit (possible timeout).                                                                                               
*** Error ***  SMTP server error                                                                                                    
Error: Not a socket.                                                                                                                
Error: Not a socket.                                                                                                                
:                       
Richard Thiot's profile image
PARTNER Richard Thiot

Well, at least now you are talking to the Yahoo SMTP server.  I do not know what rules YAHOO has regarding mail relay but I suspect that at a minimum it requires some sort of user authentication.  I also understand that port 465 is an encrypted connection.  I don't believe that BLAT supports this so would need to create an SSL tunnel first.  We use SendGrid now for email like this or a local SMTP server but that has drawbacks of its own.  Sending email is not a trivial process.  There are some other options like your own executable. 

Brian Speirs's profile image
Brian Speirs

We left BLAT behind many years ago. We switched first to POSTIE - but that then became unsupported. We now use SWITHMAIL (https://www.tbare.com/software/swithmail/) sending emails via MS365 email. It handles all the secure ports ... and comes at the same price as BLAT :-)

Cheers,

Brian