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.
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