Plug-In for sending scheduled emails according to users input time and date.

A

A.K.Seerajdeen

Hi All,

This is my first thread in this forum. People who are replying in this forum are very great.

I am developing a plug-in on microsoft outlook, in which it has to send an email according to the user setting time and date.

When I click the new email button on the main outlook explorer, a new mail template i.e.; "Untitled Message" is displayed. I have created a toolbar on that template, now on that template I have kept a commandbarbutton and on clicking that button, a form is displayed in which user can set the time and date to send that prepared mail.

I need help in the coding part to how to send the email using the details of time and date selected by the user.

Thanks in Advance...

With Regards,
Siraj..
-
With Regards,
A.K.Seerajdeen,
Software Engg,
Emp ID: NGV33051,
Ph : +91 9885444639,
Mail ID: mailto:[email protected].
Home page : www.nannacomputers.com
An ISO 9001:2000 Company
 
K

Ken Slovak - [MVP - Outlook]

What do you mean by "using the details of time and date selected by the
user"? Do you mean you don't want the email to get sent until a specified
time and date? If so set the DeferredDeliveryTime property of the mail item.

When you post here it's always best to post your Outlook version and any
other relevant information that might help in answering your question,
although it's not necessary here if I answered what you were asking.
 
A

A.K.Seerajdeen

Hello Mr. Ken Slovak,

Thank you so much for responding to my mail. I am very glad to have a reply in this forum. I am sorry for not mentioning the details, since this is my first forum please forgive for this. Below are the details:

I am using outlook 2003.
I am also using VSTO to develop this particular addin on outlook.

Actually I have seen this site http://sendlater.4team.biz/ please go through this site once, please don't mind.

I want to create a mail and then I want to send that mail later at any time. For that I have created a commandbarbutton on the toolbar of the new mail template. After I fill To,CC,subject,body etc then I will click that commandbarbutton so that a form pops up and in that I have kept some controls like when to send this mail, that is, time and date will be selected and then I will click the submit button on that form (popup window), then that particular mailitem should be saved in a custom created folder and when the scheduled time comes the mail should be sent to the sender.

This is my application's requirement, I hope I am clear with my above explanation. If any other information required please do reply me. So, how could I implement the task of sending the mail later at different time. Please help me out this problem.


With Regards,
Siraj..
--
With Regards,
A.K.Seerajdeen,
Software Engg,
Emp ID: NGV33051,
Ph : +91 9885444639,
Mail ID: mailto:[email protected].
Home page : www.nannacomputers.com
An ISO 9001:2000 Company
 
K

Ken Slovak - [MVP - Outlook]

Other than saving the item in a custom folder the DeferredDeliveryTime
property does exactly what you want. If you send using that property set to
a date/time value then the item will be in Outbox until the send time. Of
course Outlook would have to be running at that time.

If you want the items saved in a special folder then that property isn't
going to be any good for you. In that case you would have to move the items
yourself into that special folder and run a timer to check on actual sending
times and then at the appointed times you would call Send() on the items.

With Outlook 2003 you may end up with the Outlook security warnings when you
call Send(), take a look at http://www.outlookcode.com/article.aspx?id=52
for your options for that. Personally I use the Redemption alternative.
 
S

Sue Mosher [MVP-Outlook]

I've noticed another limitation with DeferredDeliveryTime: The sent time that the recipient will see is the time that the user originally clicked Send, not the time set for deferred delivery. The timer+call Send approach avoids that problem.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


Ken Slovak - said:
Other than saving the item in a custom folder the DeferredDeliveryTime
property does exactly what you want. If you send using that property set to
a date/time value then the item will be in Outbox until the send time. Of
course Outlook would have to be running at that time.

If you want the items saved in a special folder then that property isn't
going to be any good for you. In that case you would have to move the items
yourself into that special folder and run a timer to check on actual sending
times and then at the appointed times you would call Send() on the items.

With Outlook 2003 you may end up with the Outlook security warnings when you
call Send(), take a look at http://www.outlookcode.com/article.aspx?id=52
for your options for that. Personally I use the Redemption alternative.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


A.K.Seerajdeen said:
Hello Mr. Ken Slovak,

Thank you so much for responding to my mail. I am very glad to have a
reply in this forum. I am sorry for not mentioning the details, since this
is my first forum please forgive for this. Below are the details:

I am using outlook 2003.
I am also using VSTO to develop this particular addin on outlook.

Actually I have seen this site http://sendlater.4team.biz/ please go
through this site once, please don't mind.

I want to create a mail and then I want to send that mail later at any
time. For that I have created a commandbarbutton on the toolbar of the new
mail template. After I fill To,CC,subject,body etc then I will click that
commandbarbutton so that a form pops up and in that I have kept some
controls like when to send this mail, that is, time and date will be
selected and then I will click the submit button on that form (popup
window), then that particular mailitem should be saved in a custom created
folder and when the scheduled time comes the mail should be sent to the
sender.

This is my application's requirement, I hope I am clear with my above
explanation. If any other information required please do reply me. So, how
could I implement the task of sending the mail later at different time.
Please help me out this problem.


With Regards,
Siraj..
--
With Regards,
A.K.Seerajdeen,
Software Engg,
Emp ID: NGV33051,
Ph : +91 9885444639,
Mail ID: mailto:[email protected].
Home page : www.nannacomputers.com
An ISO 9001:2000 Company
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top