Skip to main content

Hi,

 

I'm fairly new on K2 and I'm supporting a workflow with smartforms. There is an issue where the action that sends email to user is throwing the following error. 

 

This property cannot be set to an empty string. Parameter name: value

Type:

System.ArgumentException

Source:

System

Method Base
Member Type:

Method

Name:

set_Host

Module
Scope Name:

System.dll

Declaring Type
Full Name:

System.Net.Mail.SmtpClient

Stack Trace:


at System.Net.Mail.SmtpClient.set_Host(String value)

at SourceCode.Forms.AppFramework.FormRuntime.SendMail(String messageXml)

at SourceCode.Forms.Runtime.AJAXCall.ProcessRequest(HttpContext context)

 

Please assist.

Hi,

 

are you using SMTP or EWS on your environment?


Hi,

 

Thank you for the reply, we are using EWS if that means our connection string is pointing to Exchange's webservice.

 

Thank you


I believe a Smartforms action to send an email uses the "Mail Server" environment variable/process string table.  Please check if this is contains a valid SMTP server value.


 


You can test sending SMTP email using telnet as per:


https://technet.microsoft.com/en-us/library/Aa995718(v=EXCHG.65).aspx


Hi Tim,

 

I checked Email Server, our exchange server is configured and I did test it using the link you provided. Still no luck.

 

Thank you.

 

 


Its sorted, I missed the check on "Default" on the Environemt Variables for Mail Server. 


Reply