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 10:54:06 -0400
Newsgroups: microsoft.public.sqlserver.notificationsvcs
The change to utf-8 in the appConfig fixed it.  Thanks Andy & Kate!
Brent

"Andy" <[email protected]> wrote in message 
news:[email protected]
> Stopping the service should not cause a problem, I do it all the time, but 
> I am running this on a Server not XP.
>
> Have you tried to make your entry:
> <Name>SmtpServer</Name>
> <Value></Value>
>
> By default it will look at localhost.
>
> I don't think this would cause you a problem, but you may want to try and 
> set your settings like:
> <ProtocolName>SMTP</ProtocolName>
> <Arguments>
>    <Argument>
>        <Name>SmtpServer</Name>
>        <Value></Value>
>    </Argument>
>    <Argument>
>        <Name>Bod oding</Name>
>        <Value>utf-8</Value>
>    </Argument>
> </Arguments>
>
> Your XSL is declaring the utf-8, but you setting is utf-16 in the 
> instanceconfig, based on what you sent.
>
> "Brent Horine" <[email protected]> wrote in message 
> news:[email protected]
>> 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: 
>> &#25942;&#29806;&#29301;&#18277;&#21328;&#21280;&#25968;&#25701;&#16672;&#25964;&#29810;
>> 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>