Outlook 2007 - definition of indicators of reminder about e-Mails in VBA

I try to send an e-mail to a recipient by program and set the flag from follow-up and the reminder to remind the recipient to process the email before a certain date.

I searched the web to find out how - to of and got a work function, but it is not simply to set the reminder on e-Mail flag.

The function I wrote allows me to pass different parameters and, based on whether or not the mail should be indicator monitoring, indicators of the post.

Code is attached below. If anyone can help me, I would appreciate it.

Public Sub SendMail (sTo As String, CSC As String, sBCC As String, sSubject As String, sBody As String, matter As Integer, bSetFlag As Boolean, vFlagDueBy As Variant, bViewMsg As Boolean)

Dim strBodyText As String, $vdate As Variant

Dim olApp As Outlook.Application

Dim olNS As Outlook.NameSpace

Dim olFolder As Outlook.MAPIFolder

Dim olMailItem As Outlook.MailItem

Set olApp = CreateObject ("Outlook.Application")

Set olNS = olApp.GetNamespace ("MAPI")

OlFolder = olNS.GetDefaultFolder (olFolderInbox) set

Define olMailItem = olFolder.Items.Add ("IPM. Note")

' Set olMailItem = Item

With the olMailItem

. To = sTo

. CC = CSC

. BCC = sBCC

. Subject = objects

. Body = sBody

. Importance = matter

Select the bSetFlag box

Real deal

. FlagStatus = olFlagMarked

. FlagIcon = olRedFlagIcon

. FlagDueBy = vFlagDueBy

. ReminderOverrideDefault = True

. ReminderSet = True

Select end

Select the bViewMsg box

Real deal

. Display "electronic watch to the user for confirmation/edition

Case Else

. Save

. Send "send the email without user interaction

Select end

Ends with

Define olMailItem = Nothing

Set olFolder = Nothing

Set olNS = Nothing

Set olApp = Nothing

End Sub

In fact, news://msnews.microsoft.com/microsoft.public.outlook.program_vba or http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba is a best place for programming issues.  Programmers may or may not read the General discussion Forum.

Brian Tillman [MVP-Outlook]

Tags: Windows

Similar Questions

  • Outlook 2007 and Win7 (64 bit) of POP e-mail retrieval is SLOW

    Under XP I did not notice this as a problem.  I can download very fast mail.  I can download files very fast.  I get my very slow pop3 mail - I can see the progress of the download in BYTES, KB even not... I'm talking about several minutes for a simple message k 5.  My work PC, connected to the same network, use XP and Outlook, and it's very fast (although not of POP e-mail).  I've run the SCANPST - no problem.  I tried Outlook 2010 - same result.  I have not found anything useful to solve this problem.  Roadrunner, says its number of Outlook.  I just want to go fast :)  I keep it on all updates from Ms.
    My wife has a Macbook on the same network for the Roadrunner-the retreival of mail is very fast.

    Any help?

    Wrong forum.  Windows 7 questions belong to http://social.answers.microsoft.com/Forums/en-US/w7network/threads and Outlook questions belong to http://social.answers.microsoft.com/Forums/en-US/outlooksend/threads

    Brian Tillman [MVP-Outlook]

  • Outlook 2007: Sender email response does not appear on my mail message

    I don't know where this slots but if someone can help me...

    I use Outlook 2007 and before that 2003, with one e-mail account I have the problem that the sender's response appears not on my mail message.

    He only hows my origanal mail, if I answered and the responses of the person back once again my answer not the answer on my answer, everyone els works fine to one specific person working at the Sanlam HQ

    Hello

    May I ask why you post this question here in the forum of Toshiba and don t ask for the support of Microsoft?
    Toshiba has nothing to do with the settings in Microsoft Outlook and in my opinion it s recommended asking Microsoft service for assistance.

    I found this solution Outlook 2007 on page MS Center:
    http://support.Microsoft.com/ph/11335/

    But maybe it s not your wrong setting but the 3rd person answering your mails doesn't send the message to your original content.

  • Office Ultimate 2007 guard Assembly and re - configure any time, I try to use Outlook 2007 after upgrading from Vista Ultimate 32 bit to Win 7 Ultimate. Something is definitely wrong with Outlook 2007 and Windows 7

    There must be a fundamental incompatibility between Win 7 and Outlook 2007. It would be nice if Microsoft looked into this right away and immediately corrects before we start trashing Win 7.

    Hello oguchi,.

    Thanks for posting on the Microsoft answers Forum.

    Office 2007, including Outlook 2007 are compatible with Windows 7.
    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/search.aspx?type=software&s=Office%202007&page=1

    If you're still having problems with Outlook 2007, it would be better to post in the Forums Office.
    http://www.Microsoft.com/Office/Community/en-us/default.mspx?DG=Microsoft.public.Office.misc&lang=en&CR=us

    Hope that helps.

    Sincerely, Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • "Enter network password" popup will not stop appearing, how to stop this? Outlook 2007 audit has aol.

    OK, I know that this question was asked before here and other places, but I tried a lot of things and still cannot get him to stop.

    I use Outlook 2007 to access my aol e-mail account. Until recently it has been works well with none or very few problems. All of a sudden this week, the window 'Enter network password' guard chronically arise with all fields filled already, but you will need to click ok to remove. This happens once in a blue moon in the past, maybe once every 3 weeks to a month and then happen not for awhile. But from this week, it occurs once every 5 minutes about an hour every day. (Has happened twice since I started typing this so far.) This is incredibly annoying doesn't even begin to describe. For more far to annoy me, I have a rule to configure in Outlook where some emails get sent to my work address while I'm not home and when this box appears here at home while I'm at work, nothing doesn't get passed, nothing happens anywhere because I'm not here to click ok in the darn box!
    OK, to cut to the Chase, I have Windows XP with Outlook 2007 here, and I checked my aol email. All parameters have been controlled and tested and is exactly the same as when it was working fine. Other things that can help to know, I have McAfee Antivirus on the computer and the router wireless Belkin F5D8235-4 low. I had McAfee antivirus for many years without any problems and I got the router hooked ever since November 2009 with no problems until now that is.
    Here is what I tried so far, all have not helped at all: (I thought that I would tell you which has been tried and didn't work, so we don't waste time on them).
    1 has created a new Outlook profile. Did not stop the pop ups.
    2 Ran Outlook in safe mode for non-Microsoft services would not be executed. Did not stop the pop ups.
    3. saved registry and the information of the user account deleted from the options of password subkey, and then reinstated "Protected Storage System Provider. Did not stop the pop ups.
    4. disabled in McAfee messaging protection. Did not stop the pop ups. (Just got a new one! Ugh.)
    5 Rebooted/Restarted router. Did not stop the pop ups.
    I'm currently at the "I got Nothin'" point about what should be judged then.
    Anyone has any idea what this might be outside what I already tried?
    I am altogether strung here and it drives me crazy. Anyone have any ideas?
    Jim.

    Update for me.
    Because I changed my e-mail verification of the intervals of 5-10 minutes, there was a considerable improvement in this issue. For a while it has virtually disappeared, it was like the good old days when it happened almost never.
    A few week days last the problem returned with a vengeance, as bad as when it reached its maximum when I started this thread. But I went on google and found a lot of internet chatter, suggesting that it seems to be a question of aol - across the network to an end, given that many people in the country had the same problems. So, it looks that I have would have been doing the pop-ups regardless.
    It seems that to subject the week last, aol themselves have had major problems to their e-mail systems based on internet comments there from other customers, so by doing this problem much more difficult to solve since now you know exactly what is the first cause pop-ups until aol gets their end of it solved. I can certainly tell you that raise the time intervals to send/receive 5 to 10 minutes doesn't seem to go very far to solve problems with pop-ups. Even though I'm still trying, here and there, I think that those that I received lately have been due to problems at AOL more so than mine, based on reviews other aol users. I hope that I may be at the end of the tunnel on this subject but thanks to what is happening to their end (aol), I can't say for sure yet. I'll keep you posted.

  • Help with timezone and error of memory in Outlook 2007

    Hello, I tried to solve a problem on the computer of the employee which I believe is coming from Outlook.

    I have just put up with this "new" computer (adopted by an employee of the precedent). I reinstalled Windows XP, reformatting the HD, installed all the drivers and software. There was no problem with the computer until he started to use it, the first day, I think was good, but over two days the computer began to freeze periodically - so that you cannot move the mouse or to do something but hold the power button to turn off the PC. And the problem is becoming more and more common, and time passes.

    It gets an error in Outlook 2007, something about a time zone adjustment and now it will update all appointments in the calendar, and it is always immediately followed by an "out of memory or system resources. Close some windows or programs and try again. "error message - so I think the synchronization schedule, he's trying to do doesn't work. It seems that it is after the error, is it some time later, the computer crashes.

    This morning the problem is also common as 20 minutes between needs to reboot the machine. I have him out of this computer now so that I can help out. By some suggestions on other forums, I removed Office 2007, deleted her outlook profile, reinstalled Office 2007 and created a new Outlook profile for his email. I have worked since his computer for the last two hours now to try to reproduce the problem - it took about an hour, but then it happened again.

    If the problem is related to Outlook, as I suspect then it must use all the resources somewhere, or the calendar/time zone synchronization problem using all resources. This first hour when the machine did not plant was when Outlook has been download still all his e-mail from the Exchange Server, almost as soon as the full download of the error appeared. I noticed something like 1 000 + items in one of its RSS feeds, so I disabled them for now, but I got the time zone / error of memory still. The OST file is about 1 GB in size.

    He has not collapsed again immediately, but I suspect it's just a matter of time as before. If anyone has any suggestions I would be very happy, here are a few other statistics relating to the computer:

    Windows XP Professional SP3

    Processor Intel Dual @1.6 GHz

    2 GB of Ram

    70 GB of free disk space

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet forum.
    http://social.technet.Microsoft.com/forums/en-us/category/officeitpro
    http://social.technet.Microsoft.com/forums/en-us/category/windowsxpitpro

  • Outlook 2007 is limitation of message size, although there is no restriction of message on the Exchange 2003 server.

    When one of my users trying to reach a 50 MB file to an e-mail message, Outlook 2007 immediately appears with the following message: the attachment size exceeds the allowable limit.  The user is not even allowed to attach the file such as Outlook it immediately blocked.  We have a 10 MB limit for messages that leave the organization.  This user has attempted to send the file to another Member of our Organization. In Outlook 2003, we are able to send 50 MB files to another without problem. Does anyone have any suggestions? I wonder if there is a setting in Outlook 07 which limits the size of an attachment. The confusing part is that he was not yet able to attach the file.

    OS: XP Pro 64-bit
    Suite Office 2007
    Exchange 2003

    Thank you!

    Hello

    1 you need to set the maxRequestLength value in the web.config file to a value greater than 50 MB. The maxRequestLength value in the web.config file is a parameter ASP.NET prevents applications greater than a certain length that has been added to prevent DOS attacks. He is set to 30 MB by default and must be increased in order to send attachments more than 30 MB. This could also be declined to enforce a lower limit.

    2. you need to increase the MaxSubmitMessageSize which is a property of the mailbox of readonly (MaxSubmitMessageSize = 0x666D0003) and this is where we reach the limit of 10 MB.

    It is read from the following locations:

    1. First reading of the object the user mailbox
    2. If not found as indicated by "unlimited", Transport Settings Container
    3. If not found as indicated by "unlimited", Org (read default Org container) container

    To set the value, use the following tasks in the Exchange Management Shell:

    1 set-transportconfig MaxSendSize (this is KBS) and then assign 51200 for 50 MB attachments. This will put it to all users

    Or

    2 set-mailbox and set the MaxSendSize (this is KBS) to 51 200 for attachments of 50 MB forspecific to a set of users.

    Once you set or the other, you must recycle store or not access to the mailbox for 15-20 minutes (to allow to store the cache expire) so that the change in size to have effect. In addition, the property is stored in AD and submitted to replication delays.

    One last thing that you should be aware of (sorry, the list will just):

    We have a timeout of 60 minutes for any attachment request or download attachment query (in OWA basic and Premium). So if you try to download an attachment 50 MB on a 56 Kbps connection, you will then expire and get a HttpWebException (e.g., the max upload is about 25 MB on a 56 Kbps connection).

    So, to sum up, there are two keys to send a large attachment:

    1 ASP.NET change web.config settings.

    2 modify the MaxSendSize using the set-TransportConfig (for all users) or Set-Mailbox for individual users.

    And you must

    3 ensure that the total download time will be less than 60 minutes (depending on your size and the speed of your network link)

    The web.config change is immediate, but the MaxSendSize change takes time, because of the caching strategy (the letter box, DSAccess deadlines and delays in replication cache).

    Examples:

    Changes to Web.Config

    By default, web.config under OWA virtual directory (Microsoft\Exchange Server\ClientAccess\Owa) will have the following entry (by default, the maximum request size is about 30 MB):

    ....

    Change to where X is the value you want in KBs. 50 MB, X will be of approximately50000

    Change the size limit of messages by user

    Go in the Exchange Management Shell and type the following command:

    Set-mailbox - id: "username" - MaxSendSize:50000

    Where "username" is the identity of the mailbox. This will set the limit to send message to about 50 MB. You need to restart the store to see the effect immediately.

    Change the size limit for messages of all users

    Go in the Exchange Management Shell and type the following command:

    -Set-transportconfig MaxSendSize: 50000

    This will set the limit to send message to about 50 MB. You need to restart the store to see the effect immediately.

  • Outbox stuck on Outlook 2007

    I use Outlook 2007 on XP and I have a few emails stuck in the Outbox.

    I tried a few different settings, the connection to the server with a normal connection, a SSL, TLS. SSL does not work but the normal and TLS works when I click on the button "test connection". But e-mails from the Recycle Bin are still there.

    I just installed Service Pack 2 for Office 2007, but the problem persists.

    In most of my efforts, I don't get an error message. Once I got an error message saying that it timed out the connection to the SMTP server.

    When I try all these things with Outlook Express, everything works normally. The Test account works. How Outlook can not work?

    I also try to delete messages in the Outbox folder, but the system, I cannot do so because it is said that he sends them. I click the buttons cancel, he still complains with the same message.

    Everyone comes to this kind of problems before? Is there a way to dig deeper in the journal of communication in order to see what could be wrong here?

    See here for the 3 methods of elimination of mails blocked http://www.howto-outlook.com/faq/messagestuckinoutbox.htm

    You cannot play with the settings of your account, unless your ISP supports the setting you have selected.

    If you have integrated Anti Virus in Outlook that can be the cause of many problems. Integration does not give better protection that the wicked would be detected by the scanner in real-time.
    If you have not integrated AV, uninstall this AV, so symantec, use the utility on their website to remove completely.
    Restart the computer, reinstall the AV without the outlook integration. Then update your virus deffinitions.

    Another cause must be running an auto send/receive definition - it change to put 10

  • . PST to Outlook 2007 (including IMAP) can be shared on a dual boot system Windows XP/Win7?

    I'm migrating from Win XP Pro/32 for Win 7 Pro/64.  I dual-boot between the two while I migrate and test applications.  During the test, I would like to have Outlook 2007 use the same mail/calendar/contacts /... on both systems.  Among the files of e-mail are IMAP which seems to make the process more difficult.  Is this possible?

    Thank you!

    This can happen absolutely not.  I do it.

    Before you do anything, make a copy of your default PST.  Nothing of what I describe should affect your data somehow, but you can't be too sure.

    You don't have to worry about IMAP accounts.  IMAP accounts always have their own sets of folder, but given that the data are kept on the server, two prospects will see the same data.  In order to see your default folders, then Outlook closed (on a partition), move the PST file to a folder that can see the two partitions.  I have two partitions (XP and 7 on the other) on my main drive and I put my PST in a folder on a second disc.  After you move the PST file, start Outlook.  He will complain that it cannot see its records and give you a file browser window.  Navigate to the new location of your default PST, select it and click OK.  Outlook open and look exactly as it did before.

    Close Outlook and start the other partition.  Open the mail applet in the control panel (you may need to enable the 32-bit Control Panel), click the data files button, click Add and browse to the shared PST file.  Select it and click OK.  Now, click on set as default to make the place of delivery.  This will make the default folders (calendar, Contacts, Inbox, etc.) Similarly to the second partition.  Close the control panel and starting Microsoft Outlook.  You should see exactly what you saw on the other partition.

    You will also see the old PST, if you have one configured and you can move all data you want form saved the old default files in the new default folders by opening each folder, by selecting all the data with Ctrl + A and moving the selection.  (You can use copy instead if you want to have the original PST as a partial backup.)  For the calendar, you must select a table as per prior category view works Ctrl + A. Brian Tillman [MVP-Outlook]

  • Alternative Outlook 2007 smtp port number.

    • Alternative Outlook 2007 smtp port number.

      Sending ' reported an error (0x800CCC80): "None of the methods of authentication supported by the client are supported by your server."

    • Outlook 2003 does not have this problem with the same mail server using the same exact account.
    • Windows Vista Ultimate SP1 with Outlook 2007 SP2 doesn't have this problem.
    • Windows XP SP3 and Outlook 2007 SP2 illustrates this problem.
    • Windows 7 with Outlook 2007 SP2 has this problem.

    We needed to move to another port for smtp 3535 25 for security reasons.  This is a wide spread question.  We are connecting to a POP3 "qmail" server to send and receive e-mails.  All systems work perfectly with the receipt of emails. Need a solution to this problem as soon as POSSIBLE please...

    Hi Swmyers,

    Here is a link to the Google Help article about connect Outlook 2007 to Gmail:
    Measures 8-11 show you exactly how to set up the SMTP port and the ports that they recommend that you use.
    Please let me know if I can be of further assistance!

    Cody C
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Outlook 2007 "Sending reported an error (ox8DE00006): use could not" __Can someone help? See you soon!

    I use Outlook 2007 Office Enterprise version. Using XP pro. I created a distribution of about 260 names list and tried to send a message. I put the list in the BCC field and got the message "send reported an error (ox8DE00006): failure to use.
    Can anyone help? See you soon!

    Hi Paparick,

    Thank you for visiting the website of Microsoft Windows Vista Community. The question you have posted is related to Outlook and would be better suited to the office community. Please visit the link below to find a community that will provide the support you want.

    http://www.Microsoft.com/Office/Community/en-us/flyoutoverview.mspx Shawn - Support Engineer - MCP, MCDST
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Empty emails in Outlook 2007

    All of a sudden, I get empty emails in Outlook 2007.  I am running Vista Pro.  I've heard of Email Guard for a PC tool for a fix, but I don't know where to go to get this tool.  This will really fix the problem?  If this isn't the case, please give me some suggestions to use.

    Thank you

    You do not want to use the e-mail scan in any e-mail MS program, and you do not need.

    Why you don't need your anti-virus to scan your email:
    http://thundercloud.NET/infoave/tutorials/email-scanning/index.htm

    And it is from Symantec, but applies to all anti-virus programs.

    From:
    http://snipurl.com/bmf6

    My computer is always protected against viruses if I disable e-mail analysis?

    Disable e-mail analysis won't let you without protection against viruses that are distributed as attachments to email. Norton AntiVirus Auto-Protect scans incoming files as they are saved on your hard drive, email and attachments to emails. Scan to email is just another layer on top of that. To make sure that Auto-Protect provides maximum protection, keep active Auto-Protect and run LiveUpdate regularly to ensure that you have the most recent virus definitions.

    Note: With Norton, if the problem persists after you turn off the analysis of e-mail, you may need to reinstall. Often just turn it off is not enough.

    1: remove completely the program BC

    2: use this tool.

    Download and run the Norton removal tool:
    http://Service1.Symantec.com/support/tsgeninfo.nsf/docid/2005033108162039

    3: do a custom install and remove from analysis when it is offered to e-mail messages.

    Bruce Hagen MS - MVP [Mail]

  • Client rules Outlook 2007 stopped working

    About two weeks ago my client work leaning just Outlook 2007 rules. I tried deletion and recreation and they my or may not work for a short period of time. I renamed my ost file so that if there is corruption files don't would re-create, still no change. I also ran the repair feature and still no luck.

    Any help anyone could provide to solve this would be appreciated.

    THX,
    Stem

    http://www.Microsoft.com/Office/Community/en-us/flyoutoverview.mspx

    Office newsgroups

    http://www.Microsoft.com/Office/Community/en-us/default.mspx?DG=Microsoft.public.Outlook.General&lang=en&CR=us

    Discussions of general issues of Outlook.

    They will help you with your Outlook questions in the newsgroups Office above.

    See you soon.

    Mick Murphy - Microsoft partner

  • Windows Fax & scan using Outlook 2007 does not display do not all contacts

    This can be a matter of Office 2007. I use Windows Fax Scan & and Outlook 2007. I can't choose a recipient in Outlook 2007 Contacts correctly use in Windows Fax & Scan. When I click the To: button in Windows Fax & Scan I have only three columns displayed. Name, full name, and e-mail address.  If the recipient does not have an e-mail address, his name does not appear. Who am I put in wrong place? I don't see an option in Windows Fax & Scan. What is an Outlook setting? Any help would be appreciated.

    From: Hal Hostetler

    This is probably due to sync Palm/BB and/or the / import export, email addresses don't always 'solve' prevents them underscores when used in address lists.  One thing to note for the future is to NEVER use Outlook. PST, import and export functions, they are broken and have been, they lose data and the. PST Import feature usually corrupts the Outlook profile in use at the time.  Instead, just make a copy of the current value, by default. PST file when Outlook is closed, take this copy to your new computer, place it in a folder where it will NOT overwrite any existing... PST files, make sure it is not set to read only (which will happen if you use a CD for transfer, then open of in Outlook using ' file |) Open | Outlook data file. " Do drag what you should leave the default copy on your new machine, or set as the default value and continue to use it.

    About 900 contacts, see if this clever utility can help with that:

    http://www.Chapura.com/downloads_utilities.php

    E-mail address utility

    Another response of the community of Windows Vista discussion groups

  • emails lost in Vista Outlook 2007

    I tried to transfer about 80 e-mails of a laptop XP outlook express for my Vista Business Outlook 2007 existing using WET and Belkin cable.
    Settings to Outlook Vista changed everything, and all of my existing e-mails have disappeared.  They were replaced by emails that are old several years and a former connection e-mail setting.
    80 emails are always on the phone - so I'm not worried about them.
    I really really need to find emails in Outlook 2007.
    There is a file outlook.pst (360KB) - would be them?
    Any help much appreciated.

    Outlook:

     

    http://www.Microsoft.com/Office/Community/en-us/flyoutoverview.mspx

    Office newsgroups

    http://www.Microsoft.com/Office/Community/en-us/default.mspx?DG=Microsoft.public.Outlook.General&lang=en&CR=us

    Discussions of general issues of Outlook.

    They will help you with your Outlook questions when repost you in the Office discussion groups above.

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for