Server

<back to all web services

SmtpConfigSsl

Requires Authentication
The following routes are available for this service:
POST/files/Ssl
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Smtp
Imports Eras2Web.Service.Desktop.Server.ServiceModel.Enums

Namespace Global

    Namespace Eras2Web.Service.Desktop.Server.ServiceModel.Enums

        Public Enum SecurityType
            Ssl
            Tls
            Certificate
        End Enum
    End Namespace

    Namespace Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Smtp

        <DataContract>
        Public Partial Class SmtpConfig
            <DataMember(Name:="Host")>
            Public Overridable Property Host As String

            <DataMember(Name:="Port")>
            Public Overridable Property Port As String

            <DataMember(Name:="SecurityType")>
            Public Overridable Property SecurityType As SecurityType

            <DataMember(Name:="Username")>
            Public Overridable Property Username As String

            <DataMember(Name:="Password")>
            Public Overridable Property Password As String

            <DataMember(Name:="SmtpFromEmail")>
            Public Overridable Property SmtpFromEmail As String
        End Class

        Public Partial Class SmtpConfigResponse
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        <DataContract>
        Public Partial Class SmtpConfigSsl
            Inherits SmtpConfig
            <DataMember(Name:="SecurityType")>
            Public Overridable Property SecurityType As SecurityType
        End Class
    End Namespace
End Namespace

VB.NET SmtpConfigSsl DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /files/Ssl HTTP/1.1 
Host: kromer-servdesk.eras-online.de 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	SecurityType: Ssl,
	Host: String,
	Port: String,
	Username: String,
	Password: String,
	SmtpFromEmail: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}