microsoft.public.sqlserver.notificationsvcs
[Top] [All Lists]

Re: Confused about encoding for SMTP

Subject: Re: Confused about encoding for SMTP
From: "Brent Horine"
Date: Wed, 31 Aug 2005 07:30:42 -0400
Newsgroups: microsoft.public.sqlserver.notificationsvcs
Thanks Kate.

If I stop the SMTP server, the notifications fail with a DeliveryStatusCode 
of 4 and nothing appears in mailroot\pickup.

I sent the notification to an IMAP email account and saved it as a text file 
from Outlook 2002.
From: [email protected]
Sent: Wednesday, August 31, 2005 7:18 AM
To: bhorine at edited .fm
Subject: 
敖瑮牵䝥卐匠数摥䄠敬瑲
Speed Limit Violation Alert Brent Horine was speeding at 115 MPH at 
8/30/2005 2:58:00 PM at Over There! Speed Limit violation alert provided by 
VentureGPS..

This was sent using the following configurations:
appConfig:
  <DeliveryChannel>
   <DeliveryChannelName>EmailChannel</DeliveryChannelName>
   <ProtocolName>SMTP</ProtocolName>
   <Arguments>
    <Argument>
     <Name>SmtpServer</Name>
     <Value>localhost</Value>
    </Argument>
    <Argument>
     <Name>Bod oding</Name>
     <Value>utf-16</Value>
    </Argument>
   </Arguments>
  </DeliveryChannel>

.xslt: (I've stripped out most of the html to try to reduce chance of 
errors)
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

 <xsl:template match="notifications">

  Speed Limit Violation Alert
   <xsl:apply-templates/>
   Speed Limit violation alert provided by VentureGPS.
 </xsl:template>

 <xsl:template match="notification">
  <xsl:value-of select="VehicleName" /> was speeding at <xsl:value-of 
select="Speed" /> MPH
  at <xsl:value-of select="EventDateTime" /> at <xsl:value-of 
select="Address" />!
 </xsl:template>

</xsl:stylesheet>

"kate" <[email protected]> wrote in message 
news:[email protected]
> if you stop the local smtp server that you are sending thru and get the
> raw email file from the pickup folder in mailroot, can you post what is
> in the raw email file when you open it in text editor?
>
> the only time we have seen this issue is when the body encoding has
> been missed off and you clearly have that one.
>
> Kate MBCS
>
> Alert Technologies
> http://www.alert-technologies.co.uk
> Get your notification services implementation going in minutes not
> weeks ......
> 



<Prev in Thread] Current Thread [Next in Thread>