473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Sending a Sharing Invitation for a RSS Feed to a Outlook 2007 user

mc
I would like to be able to send from an ASP.NET page an email which when recieved takes the form of
a "Sharing Invitation for a RSS Feed" (http://office.microsoft.com/en-us/ou...595391033.aspx)

I've found a MSDN article about it (http://msdn2.microsoft.com/en-us/library/bb176432.aspx) but that
example is presented as a vb(a) script from within outlook.

Can this functionality be emulated from sending an email from C#?

TIA

MC
May 11 '07 #1
8 4809
mc,

It's really nothing more than an email message with some extra headers
added. When I sent a feed to myself, these are the headers that I saw:

Message-ID: <00bd01c793ee$18e99810$4abcc830$@pa*****@exisconsu lting.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AceT7hiW9pqbs1LDSbyX6nYoED6UDg==
Content-Language: en-us
content-class: Sharing
x-sharing-capabilities: 28001
x-sharing-flavor: 310
x-sharing-instance-guid: 964EB63011711D41910A86650B07AA42
x-sharing-provider-guid: AFF0060000000000C000000000000046
x-sharing-provider-name: RSS Feeds
x-sharing-provider-url: http://www.microsoft.com/rss/
x-sharing-remote-path: http://www.restaurantgirl.com/restaurantgirl/rss.xml
x-sharing-remote-name: restaurantgirl
x-sharing-remote-store-uid:
x-sharing-remote-uid:
x-sharing-remote-type: text/xml
x-sharing-local-type: IPF.Note
x-sharing-config-url:
outlookfeed://www.restaurantgirl.com/restaurantgirl/rss.xml
x-sharing-browse-url:

I can't seem to find any information about these headers on the web, so
I'm assuming that it is not public knowledge. However, I am guessing that
you can probably replace the instance and the provider guid (the provider
guids should be constant for items you provide) as well as the feed url
(obvioiusly) and you might be able to get it to work. You can easily send
an email using the classes int the System.Net.Mail namespace, as well as set
headers yourself.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"mc" <mc@community.nospamwrote in message
news:46********@mail.hmgcc.gov.uk...
>I would like to be able to send from an ASP.NET page an email which when
recieved takes the form of a "Sharing Invitation for a RSS Feed"
(http://office.microsoft.com/en-us/ou...595391033.aspx)

I've found a MSDN article about it
(http://msdn2.microsoft.com/en-us/library/bb176432.aspx) but that example
is presented as a vb(a) script from within outlook.

Can this functionality be emulated from sending an email from C#?

TIA

MC

May 11 '07 #2
mc
This is as I hoped would be the case, I will have a go adding the extra headers, Where would I be
able to get the x-sharing-instance-guid, x-sharing-provider-guid? Or do these just need to be unique
guids?

Regards
MC

Nicholas Paldino [.NET/C# MVP] wrote:
mc,

It's really nothing more than an email message with some extra headers
added. When I sent a feed to myself, these are the headers that I saw:

Message-ID: <00bd01c793ee$18e99810$4abcc830$@pa*****@exisconsu lting.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AceT7hiW9pqbs1LDSbyX6nYoED6UDg==
Content-Language: en-us
content-class: Sharing
x-sharing-capabilities: 28001
x-sharing-flavor: 310
x-sharing-instance-guid: 964EB63011711D41910A86650B07AA42
x-sharing-provider-guid: AFF0060000000000C000000000000046
x-sharing-provider-name: RSS Feeds
x-sharing-provider-url: http://www.microsoft.com/rss/
x-sharing-remote-path: http://www.restaurantgirl.com/restaurantgirl/rss.xml
x-sharing-remote-name: restaurantgirl
x-sharing-remote-store-uid:
x-sharing-remote-uid:
x-sharing-remote-type: text/xml
x-sharing-local-type: IPF.Note
x-sharing-config-url:
outlookfeed://www.restaurantgirl.com/restaurantgirl/rss.xml
x-sharing-browse-url:

I can't seem to find any information about these headers on the web, so
I'm assuming that it is not public knowledge. However, I am guessing that
you can probably replace the instance and the provider guid (the provider
guids should be constant for items you provide) as well as the feed url
(obvioiusly) and you might be able to get it to work. You can easily send
an email using the classes int the System.Net.Mail namespace, as well as set
headers yourself.

Hope this helps.

May 14 '07 #3
mc
I've had a go and it doesn't appear to have worked.

The system.Net.Mail class does not seem to allow me to have headers with null values. So I have
omitted the Headers without values. Would this matter?

The outlookfeed field appears to not be a normal header? How would I add this header to the message?

Still not sure what to use for the Guid values.

When I send a RSS Sharing request from myself to myself in Outlook 2007 how do I see the headers?
when I try and inspect the Headers in Message Options It's blank and the Message source only
contains the body of the message.

Something odd is happening because when I first receive my Share email I can read it however if I
try to re-read the message I get an error "Cannot open this item".

Any help would be appreciated!

TIA

MC
mc wrote:
This is as I hoped would be the case, I will have a go adding the extra
headers, Where would I be able to get the x-sharing-instance-guid,
x-sharing-provider-guid? Or do these just need to be unique guids?

Regards
MC

Nicholas Paldino [.NET/C# MVP] wrote:
>mc,

It's really nothing more than an email message with some extra
headers added. When I sent a feed to myself, these are the headers
that I saw:

Message-ID: <00bd01c793ee$18e99810$4abcc830$@pa*****@exisconsu lting.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AceT7hiW9pqbs1LDSbyX6nYoED6UDg==
Content-Language: en-us
content-class: Sharing
x-sharing-capabilities: 28001
x-sharing-flavor: 310
x-sharing-instance-guid: 964EB63011711D41910A86650B07AA42
x-sharing-provider-guid: AFF0060000000000C000000000000046
x-sharing-provider-name: RSS Feeds
x-sharing-provider-url: http://www.microsoft.com/rss/
x-sharing-remote-path:
http://www.restaurantgirl.com/restaurantgirl/rss.xml
x-sharing-remote-name: restaurantgirl
x-sharing-remote-store-uid:
x-sharing-remote-uid:
x-sharing-remote-type: text/xml
x-sharing-local-type: IPF.Note
x-sharing-config-url:
outlookfeed://www.restaurantgirl.com/restaurantgirl/rss.xml
x-sharing-browse-url:

I can't seem to find any information about these headers on the
web, so I'm assuming that it is not public knowledge. However, I am
guessing that you can probably replace the instance and the provider
guid (the provider guids should be constant for items you provide) as
well as the feed url (obvioiusly) and you might be able to get it to
work. You can easily send an email using the classes int the
System.Net.Mail namespace, as well as set headers yourself.

Hope this helps.

May 14 '07 #4
mc
Oops, just spotted that the outlookfeed had probably been word wrapped from the line above
"x-sharing-config-url". Now I've made the change the mail gets sent to outlook and on the inital
viewing the mail appears to be a "normal" mail, when I click off and back on again it recognizes
it's a "share" mail and works fine?

Regards
MC
mc wrote:
I've had a go and it doesn't appear to have worked.

The system.Net.Mail class does not seem to allow me to have headers with
null values. So I have omitted the Headers without values. Would this
matter?

The outlookfeed field appears to not be a normal header? How would I add
this header to the message?

Still not sure what to use for the Guid values.

When I send a RSS Sharing request from myself to myself in Outlook 2007
how do I see the headers? when I try and inspect the Headers in Message
Options It's blank and the Message source only contains the body of the
message.

Something odd is happening because when I first receive my Share email I
can read it however if I try to re-read the message I get an error
"Cannot open this item".

Any help would be appreciated!

TIA

MC
mc wrote:
>This is as I hoped would be the case, I will have a go adding the
extra headers, Where would I be able to get the
x-sharing-instance-guid, x-sharing-provider-guid? Or do these just
need to be unique guids?

Regards
MC

Nicholas Paldino [.NET/C# MVP] wrote:
>>mc,

It's really nothing more than an email message with some extra
headers added. When I sent a feed to myself, these are the headers
that I saw:

Message-ID: <00bd01c793ee$18e99810$4abcc830$@pa*****@exisconsu lting.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AceT7hiW9pqbs1LDSbyX6nYoED6UDg==
Content-Language: en-us
content-class: Sharing
x-sharing-capabilities: 28001
x-sharing-flavor: 310
x-sharing-instance-guid: 964EB63011711D41910A86650B07AA42
x-sharing-provider-guid: AFF0060000000000C000000000000046
x-sharing-provider-name: RSS Feeds
x-sharing-provider-url: http://www.microsoft.com/rss/
x-sharing-remote-path:
http://www.restaurantgirl.com/restaurantgirl/rss.xml
x-sharing-remote-name: restaurantgirl
x-sharing-remote-store-uid:
x-sharing-remote-uid:
x-sharing-remote-type: text/xml
x-sharing-local-type: IPF.Note
x-sharing-config-url:
outlookfeed://www.restaurantgirl.com/restaurantgirl/rss.xml
x-sharing-browse-url:

I can't seem to find any information about these headers on the
web, so I'm assuming that it is not public knowledge. However, I am
guessing that you can probably replace the instance and the provider
guid (the provider guids should be constant for items you provide) as
well as the feed url (obvioiusly) and you might be able to get it to
work. You can easily send an email using the classes int the
System.Net.Mail namespace, as well as set headers yourself.

Hope this helps.

May 14 '07 #5
mc
I've spent a little more time looking at this issue and have trimmed the headers that are
required/used by outlook 2007. The function I have created is shown below.

I've found that if you substitute the http:// for outlookfeed:// in a hyperlink on a website or in
the body of the email you can, once clicked, cause outlook to load the RSS feed.

However I would still like Outlook to recognize my additional headers the first time the email is
viewed. Any help fixing this issue would be greatfully received.

The US Patent Applicatation (http://www.freepatentsonline.com/20060123011.html) provides the only
documentation I've been able to find in support of this functionality.

Regards
MC

///<summary>
/// Function to send an email from the current user to a specfied user prompting
/// them to share a RSS feed.
///</summary>
public void SendRssInviteEmail(string toEmailAddress, string Subject, string Body, string FeedTitle,
string FeedUrl){
try{
SmtpClient Client = new SmtpClient("mail.domain");
MailMessage Msg = new MailMessage(User.Identity.Name.Substring(User.Iden tity.Name.IndexOf("\\")+1)
+ "@mail.domain", toEmailAddress, Subject, Body);
Msg.IsBodyHtml = true;
Msg.Headers.Add("content-class", "Sharing");
Msg.Headers.Add("x-sharing-remote-name", FeedTitle);
Msg.Headers.Add("x-sharing-config-url", FeedUrl.Replace("http://", "outlookfeed://"));
Client.Send(Msg);
}
catch{
//Probably should do something?
}
}

mc wrote:
Oops, just spotted that the outlookfeed had probably been word wrapped
from the line above "x-sharing-config-url". Now I've made the change the
mail gets sent to outlook and on the inital viewing the mail appears to
be a "normal" mail, when I click off and back on again it recognizes
it's a "share" mail and works fine?

Regards
MC
mc wrote:
>I've had a go and it doesn't appear to have worked.

The system.Net.Mail class does not seem to allow me to have headers
with null values. So I have omitted the Headers without values. Would
this matter?

The outlookfeed field appears to not be a normal header? How would I
add this header to the message?

Still not sure what to use for the Guid values.

When I send a RSS Sharing request from myself to myself in Outlook
2007 how do I see the headers? when I try and inspect the Headers in
Message Options It's blank and the Message source only contains the
body of the message.

Something odd is happening because when I first receive my Share email
I can read it however if I try to re-read the message I get an error
"Cannot open this item".

Any help would be appreciated!

TIA

MC
mc wrote:
>>This is as I hoped would be the case, I will have a go adding the
extra headers, Where would I be able to get the
x-sharing-instance-guid, x-sharing-provider-guid? Or do these just
need to be unique guids?

Regards
MC

Nicholas Paldino [.NET/C# MVP] wrote:

mc,

It's really nothing more than an email message with some extra
headers added. When I sent a feed to myself, these are the headers
that I saw:

Message-ID:
<00bd01c793ee$18e99810$4abcc830$@pa*****@exisco nsulting.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AceT7hiW9pqbs1LDSbyX6nYoED6UDg==
Content-Language: en-us
content-class: Sharing
x-sharing-capabilities: 28001
x-sharing-flavor: 310
x-sharing-instance-guid: 964EB63011711D41910A86650B07AA42
x-sharing-provider-guid: AFF0060000000000C000000000000046
x-sharing-provider-name: RSS Feeds
x-sharing-provider-url: http://www.microsoft.com/rss/
x-sharing-remote-path:
http://www.restaurantgirl.com/restaurantgirl/rss.xml
x-sharing-remote-name: restaurantgirl
x-sharing-remote-store-uid:
x-sharing-remote-uid:
x-sharing-remote-type: text/xml
x-sharing-local-type: IPF.Note
x-sharing-config-url:
outlookfeed://www.restaurantgirl.com/restaurantgirl/rss.xml
x-sharing-browse-url:

I can't seem to find any information about these headers on the
web, so I'm assuming that it is not public knowledge. However, I am
guessing that you can probably replace the instance and the provider
guid (the provider guids should be constant for items you provide)
as well as the feed url (obvioiusly) and you might be able to get it
to work. You can easily send an email using the classes int the
System.Net.Mail namespace, as well as set headers yourself.

Hope this helps.

May 14 '07 #6
Hi MC,

I'm currently consulting your question within our internal discussion list
to see if there's any public documentation available for the RSS Feed
invitation e-mail message. I'll keep you posted. Thank you for your
patience and understanding.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

May 15 '07 #7
Hi MC,

I've been confirmed by our product team that currently we don't have
published document for creating RSS feed sharing invitation email message
in Outlook 2007. We plan to add this in future version of Outlook. Sorry
for the inconvenience caused.

Although we don't encourage to reverse engineer the message headers, the
headers are all there for your inspection.

Hope this helps.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

May 16 '07 #8
mc
So to summarize the official Microsoft line is that it is not possible/supported to create Sharing
requests from outside outlook (until some future release)?

I would be interested to hear if my code snippet is tested by someone else they get the same symptoms?
Regards
MC

Walter Wang [MSFT] wrote:
Hi MC,

I've been confirmed by our product team that currently we don't have
published document for creating RSS feed sharing invitation email message
in Outlook 2007. We plan to add this in future version of Outlook. Sorry
for the inconvenience caused.

Although we don't encourage to reverse engineer the message headers, the
headers are all there for your inspection.

Hope this helps.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
May 17 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: joe215 | last post by:
I want my users to send emails from a Windows app that I am developing in Visual Basic.NET 2003. I found a good example of sending email to a SMTP server using the SmtpMail class. However, using...
1
by: Devonish | last post by:
I am composing an email with Access VB and then sending it from within Access. Everything works correctly (the email actually goes!) but Outlook ask some irritating questions that the user is...
2
by: Josh Golden | last post by:
hello, In my application I want to send an email when a certain event ocuurs. It should pop-up the user's email client and fill in the send to address and subject and body. Kind of like I can do...
5
by: =?Utf-8?B?VG9ueSBXaXNzbGVy?= | last post by:
Hello everyone- I am hoping a couple of you will have some ideas on this one... I have a webform created in visual basic 2005. Basically, the webform gather answers to the questions asked on...
8
by: kcovert | last post by:
using System.Net.Mail; I've been unable to get a carriage return/line feed into the body of my Outlook message. Have look all over the web for a soltion with no luck. Here's what I have tried...
1
by: =?Utf-8?B?SmFzb25NYQ==?= | last post by:
All, I've been trying to wrap my head around this for quite sometime and it seems to be a growing issue. Below is the problem and my troubleshooting thus far: Outlook 2k3 Server w/ Outlook...
5
by: cycling22 | last post by:
How to get an RSS feed from Craigslist???? How can I get an RSS feed from Craigslist???? I'd like to setup a simple RSS feed on Craigslist for a particular piece of equipment. When it...
5
by: John | last post by:
Hi I have an Outlook add-in solution which includes a setup project. If I install the Outlook add-in by right clicking on the setup project and sleeting Install then the add-in gets installed...
7
by: Jason1983 | last post by:
Hello sir, When iam trying to send emails to my user accounts which are gmail id's using my application it is giving me this error. Here is the error... Server object error 'ASP 0177 : 800401f3'...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.