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?
  • Don, you asked about versions of .NET here is what is running on my system. Am I still missing something?


  • Steve - I also asked what version of OI you are running. The reason is because the latest versions of the SRP Utility required RevDotNet.

    That said, looking closer at your error it seems to be a formatting problem with your email address. Can you confirm the values you are trying to use?
  • OI version is 9.4.6
    With the SRPMail.dll 2.1 I was not getting any errors with this same email. However, I have one customer who was having issues with attachments and that started this. That customer was using a much older version of SRPMail. I installed the newest on my development system and it is working fine. I will double check what I am sending.

    I am trying to get our RetailWare email set to work with the new verified senders rule being put in place.
  • Here is what is being passed in the first parameter. The problem is the user can enter a reply to address. This one was being modified by the user and turned out to be invalid. Thanks for the help. I am always irritated when I miss something that is right in front of me.


Sign In or Register to comment.