Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

Sending Email with attachment returns "The specified protocol is unknown"

Hi Kevin,

I have a customer for whom we can send mail just fine, except with an attachment. When we send with an attachment, the error in the title is returned. The same code works on other computers just fine. This one is Windows 10 PRO.
Here is the configuration file I send to SRP_SEND_MAIL

ConfigFile = ""
ConfigFile<1> = 2 ; * Send Using Port (Email server not on local machine)
//ConfigFile<1> = "" ; * Send Using Port (Email server not on local machine)
ConfigFile<2> = ""
ConfigFile<3> = 465 ; * SMTP Server Port
//ConfigFile<3> = 587 ; * SMTP Server Port
ConfigFile<4> = "mail.smtp2go.com"
ConfigFile<5> = 1 ; * SMTP Authentication
ConfigFile<6> = "sbotes@retailware.net" ; * Account User Name
ConfigFile<7> = EmailConfig<4> ; * Account Password
ConfigFile<8> = 1 ; * Use SSL to send email

I have tried ConfigFile<1> set to both a 2 and "", Tried the two different port addresses and looked at the comments in the forum regarding ConfigFile<8> but have left that at 1.

For the other systems it runs fine with ConfigFile<1> = 2 and ConfigFile<3> set to 465.

Any suggestions would be appreciated. I have the same code on my system and can send attachments just fine. So it strikes me as something with their system.

Comments

  • What version of SRP Mail?
  • I have this one on our development platform for RetailWare


    but the client has the older one.




    What do I need to do to bring them current?

  • Yeah, 1.2 is pretty old and doesn't support TLS, which is very likely why your email server is saying the protocol is unknown. SRP Mail, like most of our utilities, ship with RDK view/deployments. So, you can just export the SRP Mail RDK and send them yours. They will need your license to go with it assuming their copy of OI has the same serial number as yours.
  • Hi Kevin, I downloaded the newest version and installed it on top of the 2.1 version. I checked and the DLL showed the new version. But when I test it I get this message back. Was there something else I missed? I did not make any changes to the code I had in place.


  • Does something have to be re-registered after downloading the SRP_MAIL install?
  • What version of OI is your client running? Do you have .Net installed?
Sign In or Register to comment.