Meeting request sent by system.net.mail is not sent to meeting organise

Hi,

I'm sending an Outlook meeting request (or just put in a meeting without the request side) from an asp.net (vb.net) application. The recipients receive the request and the code runs without throwing any exceptions, but the meeting organiser doesn't receive the request.

If anyone could help I would be grateful.

Thanks,

Louise


dim mtg_organiser as string = "jo.bloggs@bloggs.com"
dim subject as string = "Hello world"
dim recipient1 as string = "mary.jane@maryjane.com"
dim recipient2 as string = "andrew.fuller@northwind.com"
dim mtg_organiser as string = "me@mydomain.com"
msg.From = New MailAddress(mtg_organiser)
                msg.To.Add(New MailAddress(recipient1))
                msg.To.Add(New MailAddress(recipient2))
                msg.To.Add(NeMailAddress(me@mydomain.com))
            msg.Subject = Subject

            ' Send the message
            SMTPServer.DeliveryMethod = SmtpDeliveryMethod.Network
            SMTPServer.Send(msg)

Open in new window

louise001Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JayFromPepCommented:
There is a typo in the code.

It should look like this....

msg.From = New MailAddress(mtg_organiser)
                msg.To.Add(New MailAddress(recipient1))
                msg.To.Add(New MailAddress(recipient2))
                msg.To.Add(New MailAddress(mtg_organiser))
            msg.Subject = Subject
louise001Author Commented:
Hi,
You're right there's a typo in my attachment on this post but it's not present in my application. What's happening is not quite as I first thought: the mtg_organiser address is receiving meeting requests but (I suppose because they're sent by System.Net.Mail) they have to be accepted in Outlook running on a desktop, whereas what I want is for the meeting requests sent by my application to behave in the Outlook client as they would if the requests had been sent manually from inside Outlook.

Could you or anyone else help with this?

Thanks,

Louise
JayFromPepCommented:
What you want, then, if I understand you, is to schedule an appointment on the calendar of the organizer instead of sending them an email.  Is that correct?
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

louise001Author Commented:
Hi,

Yes, that's right. I'm trying to make things behave as they do when a meeting is set up in Outlook - the meeting is placed in the organiser's calendar and they don't have to accept or reject, and it's placed in the calendars of people who are invited and arrives in their inboxes with accept or reject required.

Thanks,

Louise
JayFromPepCommented:
Ok.  what you want to do is create an ICS File for the meeting organizer.

Here are some links to start you on your way....

http://ryanfarley.com/blog/archive/2008/08/08/adding-calendar-items-from-a-webpage-via-icalendar.aspx
http://msdn.microsoft.com/en-us/library/bb655909(office.12).aspx

It can get a bit involved, so check out the links and let me know if you have questions.

JayFromPepCommented:
Small update....

As I was rereading the thread, it dawned on me that what you are wanting to do may be problematic.  The nature of the beast is that you cannot reach into a machine from the internet without client side code, like java.

So, I could envision a process where the meeting organizer creates the meeting, sends the meeting invites out, and then sends the ICS file to themselves, or....

Have them click a button on the site that says "Add this to my calendar" or some such.....not sure if I am misunderstanding how you are going about this.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
louise001Author Commented:
Hi again,

Apologies for silence on my part. I've read the links you sent and things are clearer now, I hadn't realised that the system uses internet calendars. I can explain things to my users now so I'll accept your last comment as an answer.

Thanks again,

Louise
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.