Jump to content
Sign in to follow this  

XML for SMTP config. - ISOKEY software mail sending

Recommended Posts

Hello everyone.

We have recently updated an application web based named ISOKEY for ISO documentation (a documentation manager working in IIS), in a Windows 2003 server for Small Business SP2.

We had it working ok with a non SSL config in the e-mail SMTP settings, after we tried to change to gmail mails stopped from sending. So I made a smtp-relay for using port 25 (smtp) with no SSL enabled.

For some reason the logging in windows says that the body is incorrect:



Instance: ISOKEY_TEST: Error sending mail Id #72689:System.FormatException: The specified string does not have the mandatory form for an email address.
   en System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset, String& displayName)
   en System.Net.Mail.MailAddress.ParseValue(String address)
   en System.Net.Mail.MailAddress..ctor(String address, String displayName, Encoding displayNameEncoding)
   en System.Net.Mail.MailMessage..ctor()
   en ISOKEY_Common_Classes.ikSendMail.SendMail(Int64 MessageId, String sFromAddress, String strFromDisplayName, String sToAddress, String sSubject, String sBody, Boolean bIsUrgent, String sAttachmens)
   en ISOKEY_Common_Classes.ikSendMail.SendMails()


So I was wondering if the XML where the smtp configuration is, should be updated too.

I'm uploading the XML, and what I'm asking is (because I can't see an error in the body it seems everything is fine) is there any change we should do for it to work?

Thank you very much in advance for any advice or tip you can give me.





Edit: Since the code for the XML is kind of short, I'll post it right here for a better lecture of it.

<?xml version="1.0" encoding="UTF-8"?>
            <smtp deliveryMethod="Network" from="ISOKEY">
                <network host="smtp-relay.gmail.com" port="25"
            <!-- This section defines the logging configuration for My.Application.Log -->
            <source name="DefaultSource" switchName="DefaultSwitch">
                    <add name="FileLog"/>
                    <!-- Uncomment the below section to write to the Application Event Log -->
                    <!--<add name="EventLog"/>-->
            <add name="DefaultSwitch" value="Information"/>
            <add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=, Culture=neutral, PublicKeyToken=VAR, processorArchitecture=MSIL" initializeData="FileLogWriter"/>
            <!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log -->
            <!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->

			 <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
				  <assemblyIdentity name="IKTypes_43" publicKeyToken="VAR" culture="neutral"/>
				  <bindingRedirect oldVersion="" newVersion=""/>
				  <assemblyIdentity name="IKTypes_50" publicKeyToken="VAR" culture="neutral"/>
				  <bindingRedirect oldVersion="" newVersion=""/>



Edited by hexulon
correct orthography

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...