[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

Creating email message programmatically in offline mode

Asked by KMcElhiney in Outlook Groupware Software, Exchange Email Server, Visual Basic Programming

Tags: Outlook 2003 Redemption VB6

OK, here goes:

I have a legacy VB6 application that is run on laptop computers by field reps while disconnected from the internet and the corporate network. I added a form to allow these reps to create feedback on usage of the app which I want to then send to a central mailbox on the corporate Exchange server. These reps connect to the corporate network from home each night using VPN, at which time they connect to the corporate Exchange server and send/receive email. My brilliant plan was to create these feedback messages in the Outbox of the Outlook 2003 they have installed on their laptops and then have these messages delivered when they connect to the corporate network each night. Sounds simple, right?

To get by the Outlook security warning I am using Outlook Redemption, a fantastic little piece of software if I ever saw one. The problem I am running into is that when I create the email message in Outlook, I get a message saying:

 "You are not connected to your Exchange Server. Would you like to work offline?"

If you click yes the message is created in the Outbox and delivered when you connect to the corporate network. However, I would really like to avoid getting this message if at all possible.

Can someone help me with this? The relevant code is shown below.

Thanks in advance,
Kevin
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
Set safeItem = CreateObject("Redemption.SafeMailItem")
    
    ' Create the Outlook session
    Set objOutlook = CreateObject("Outlook.Application")
    Set objNS = objOutlook.GetNamespace("MAPI")
    objNS.Logon
    Set safeUser = CreateObject("Redemption.SafeCurrentUser")
    userName = safeUser.Name
    safeUser.cleanUp
    
    ' Assemble the email body
    bodyText = "Type of Feedback: " & cboFeedbackType.Text & vbCrLf
    bodyText = bodyText & "Priority:         " & cboPriority.Text & vbCrLf & vbCrLf
    bodyText = bodyText & txtFeedback.Text
    
    ' Create the Message
    Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
    
    ' Move from Drafts to Outbox folder so that it doesn't get held up
    ' Note that I copy to a new object to avoid "ghost messages"
    Set objNewOutlookMsg = objOutlookMsg.MOVE(objOutlook.Session.GetDefaultFolder(4))
    objNewOutlookMsg.save
    safeItem.Item = objNewOutlookMsg
    With safeItem
        .Recipients.Add toEmailAddress
        .Subject = "In-Home Tool feedback from " & userName
        .Body = bodyText
        .Send
    End With
    Set objOutlookMsg = Nothing
    Set objNewOutlookMsg = Nothing
    Set objNS = Nothing
    Set objOutlook = Nothing
    Set safeItem = Nothing
[+][-]09/23/09 06:44 AM, ID: 25402948Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/23/09 06:45 AM, ID: 25402974Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/23/09 07:01 AM, ID: 25403112Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/23/09 07:02 AM, ID: 25403126Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/23/09 07:03 AM, ID: 25403148Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/23/09 07:06 AM, ID: 25403169Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/23/09 07:11 AM, ID: 25403230Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/23/09 07:24 AM, ID: 25403392Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/23/09 08:20 AM, ID: 25404179Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Outlook Groupware Software, Exchange Email Server, Visual Basic Programming
Tags: Outlook 2003 Redemption VB6
Sign Up Now!
Solution Provided By: craisin
Participating Experts: 3
Solution Grade: B
 
[+][-]09/23/09 08:52 AM, ID: 25404622Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/23/09 08:57 AM, ID: 25404691Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/23/09 10:14 AM, ID: 25405518Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/23/09 10:19 AM, ID: 25405563Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/23/09 10:24 AM, ID: 25405611Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625