Outlook And Exchange
hey everyone, well, here's what i want to do, right now im
fixing a program...most of it is done, works great, but
anyway back to the problem...our LAN emails through MS
Exchange, and the program i am working on sends through
Outlook, (not outlook express, i dont know if there's a dif
or not but i just wanted to be specific). so in the program
it sends the outlook mailitem, but doesnt really check to
see if our Exchange server is up...i was wondering if anyone
out there could tell me how i can check our Exchange server
before sending and if it IS down, dont send, but wait a
period of time and try again... thanks a bunch
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Difficult: Sending Outlook Meeting Appointments To Outlook And Exchange
I've seen partially useful postings, but nothing clear enough to understand how to solve this problem.
Here's what I want to accomplish:
. my meeting application chooses a date and users (from a calendar and drop down list)
. the app then sends email to the list of people with the meeting info
When the outlook client receives the email they are prompted the normal way to add the meeting to their outlook. I don't want to rewrite exchange, just deliver mtg info.
Anyone with sample code or even a pointer to info on how I may solve this problem?
VB & Outlook/Exchange
Is there any way to use VB6 to check your own Exchange (Outlook) Calendar
for events or meetings?
Is there sample code anywhere? Suggestions?
Signing On To Outlook Exchange
is it possible to be able to use VB to sigh on to an Outlook Exchange server, supplying the username, password and the exchange server, I want to intergrate a small program into my set of tools that will automatically send me an email to other members of staff letting them know what's happening in the software, but as we use an exchange software and and needs to log on before sending any email it's seems impossible to do this unnattended
OutLook -> Exchange Server
I am currently writing a Discharge Letter system for the Hospital I work in. The system e-mails various administrators depending on what problems arise. To do this I have tagged the Outlook 9 reference, and written a quick e-mail routine to send the messages.
My problem lies with our through-flow of junior doctors. They may travel from one ward to another and use a host of computers around the hospital. Therefore, they need to set-up their details (i.e. the server and user name) for their e-mail account on each PC. Thankfully, there is only one mail server. I want to take this technical tid-bit away from the user, however, and perform the linking automatically.
Can anyone point me in the right direction, please?
Thank-you all in advance,
Microsoft Outlook / Exchange
I would like to enable the OUT OF OFFICE feature in Outlook. The help guide says I need Exchange. When I go to Tools and look for the Out of Office Assistant I do not see it. So I went to Tools/Options/Other/Advanced/Add-In and saw the Exchange Extensions Property Page and below a description for Out of Office. This button is check and should show me the Out of Office assistant on the toolbar but does not. We have Office XP professional. Does this exchange feature come with it or no? I am guessing no but my boss thinks otherwise.
Any suggestions or comments will be greatly appreciated.
Connect To Exchange Via Outlook
Can anyone help me?
I am writing a program and I have to connect to an exchange server via Outlook with Visual Basic, but I haven't got a clue on how to do this.
Do you know how?
Outlook Exchange Settings
I need to know if it's possible to write code that will automate a right click on the Outlook icon -> properties -> Email Accounts -> View or change existing email accounts -> next -> select the Microsoft Exchange server -> change settings -> and then alter the user and possibly the exchange server. Most users are on Outlook 2000/2002
I know it sounds like a lot of effort for such a token job but I think my IT helpdesk is getting a bit annoyed with users desk swapping and complaining about not having email access.
Outlook And Exchange Server
I have a some problems here now, I am developing an outlook 2000 calendar appication using Vb6 to calculate the work hours of the staff in my school as my final project.
The problem am having is that the textbook am using is always talking about COM ADD INs which I dont understand so much cos, even though I have the codes to calculate the hours worked, I dont know where to place them exactly.
I've designed and launched the forrms and folders already.
But since I need the COM ADD INs, I dont know whether to place the codes there or just behind the forms.
The application is such a way that the server side (exchange) is where the main file is stored as (standard), the user's at the client side just need to open their outlook application to get connected to the server's. Each user can only see his worked hours which is stored in the server and his client machine after he has logged in.
Also the server should also be able to store the files (balance) so that each user knows whether he or she has some hours missing or over done just by clicking the balance file.
Hope to get some advice on this, any suggestion will be highly appreciated.
Emailing Through Outlook/Exchange
Hi. I am trying to find information on how to email out of a VB app when I have Exchange as my mail server. I only have a old book on VB and they don't mention emailing. Any help?
MS Outlook And Exchange Server
Just a quick question to all your brainy people, We currently have an intermittent problem at work where somebody can send and Email from their PC, this then goes to the Exchange Server for our company, and for some reason it then continuosly repeats to send the email, so the client gets hundreds of emails.
Does anybody know why this would happen, or has heard of it before ?
Work is necessary for man. Man invented the alarm clock.
Automate Email - Exchange, Outlook
I would like to get some opinions and maybe a even little guidance, suggestions, etc. concerning my approach with regard to a project I am doing.
I am creating an application that will automatically email reports at periodic intervals.
The idea behind the application is as follows:
1. "Jobs" get stored in a database. (a "job" is all the information pertaining to a request.
i.e. Each instance of a job would capture the following:
Client#, contact, email, frequency, start date, expire date, active, report_type, etc..........
2. My application would kick-off at various times and check the database for jobs that are ready to be run.
3. The application would generate the appropriate report and create an email message, attach the report object to the message, and then send it.
I've created a prototype in Access that does this.
I started out using:
DoCmd.SendObject acSendReport, stDocName, acFormatRTF, email_address, , , "Testing", "This is really a test", True
This did not work so I found a Microsoft solution to the problem which I just copied and pasted code .... designed to function closely or mimic the DoCmd.SendObject
BELOW IS A SNIP OF THE CODE:
Set clsSendObject = New accSendObject
clsSendObject.SendObject acSendReport, stDocName, accOutputRTF, _
email_address, , , "This is a test subject", "This is really a test", False
ou have a MAPI-compliant electronic mail application installed on your computer.
This works fine if the application is run on my desktop computer with a MAPI-compliant electronic mail application installed however, say I want to have the application execute on a server. Would I need to install Outlook on the server?
Can I bypass using Outlook (as well as the dialog box security that is show up because of Office 2000 SR security update)
and just use Exchange.....
I'm a bit confused as to how I can get my application to reside on on a server and talk to the exchange server ....
Does anyone have experience with this or suggestions....
Any help or suggestions would be MUCH APPRECIATED! Thanks.
Communicating W/ Exchange Server W/out Outlook?
Is there anyway to send emails through an Exchange Server without using MS Outlook? It is vital that MS Outlook not even be installed on this box. Does MAPI require MS Outlook? What other options do I have? Help!
Need To Get Mailbox Size From Exchange/Outlook
I am trying with no luck to get the size of an Outlook mailbox. I can get all the folders which is my problem. Granted I would like to do that but it requires the user to hit the security option box that pops up. Since it is giveing me the properties of the address book that is launching the security box. I just need to get the total size of the mailbox and display it in a text box. Is there any way to do this without having the user say yes to the box?
Open Exchange Mailbox With Outlook VBA
I need to connect to a different Exchange mailbox, other than my own using VBA. I tried the namespace.Folders("RemoteMailbox").Folders("Inbox") method that I saw on the microsoft site, but I keep coming up with an "Object not found" Error message. Could someone please help.
E-mail Addresses From Outlook Or Exchange
Hello VB folks. I am new to VB from C++ and I need to connect to an exchange server and get all of the e-mail addresses from a Global Address Book [GAB] I know it is possible, i just don't know how. If anyone has some VB code that does this I would be very grateful.. Thank you in advance.
Writing To Public Folder In Outlook/Exchange
I am using some code I found here to write to the Outook Calendar and it works great. However, it writes to the default Outlook Calendar folder. How can I write to a different folder? I have a public folder in Exchange that all users can use and I would like to write calendar events to that folder.
Here's what I'm using now:
Public Sub Add_To_Calender(ByVal subject As String, ByVal date1 As String, ByVal reminderdate As String)
Dim olApp As New Outlook.Application
Dim olAppt As Outlook.AppointmentItem
Dim g As String
Dim s As String
Set olApp = CreateObject("Outlook.Application")
Set olAppt = olApp.CreateItem(olAppointmentItem)
g = Format(date1, "dddd")
If g = "Saturday" Or g = "Sunday" Then Exit Sub
s = CDate(date1) & " 08:00:00"
olAppt.Start = s
.duration = 720 ' this gives one day
.subject = subject
.Body = subject
.Location = "Home Office"
.ReminderMinutesBeforeStart = 1 * 60 * 24 ' this gives one day
.ReminderSet = True
List Calender Information Exchange/Outlook
My goal is to copy calendar information from multi people. So far it works but it is not listing the actually appointment time.
Private Sub Command1_Click()
Dim ADOConn As ADODB.Connection
Dim ADORS As ADODB.Recordset
Dim strConn As String
Set ADOConn = New ADODB.Connection
Set ADORS = New ADODB.Recordset
.Provider = "Microsoft.JET.OLEDB.4.0"
.ConnectionString = "Exchange 4.0;" _
& "MAPILEVEL=Mailbox - MyBox|;" _
& "PROFILE=MS Exchange Settings;" _
.Open "Select * from Calendar", ADOConn, adOpenStatic, _
For x = 0 To 19
Text1 = Text1 & x & ")" & ADORS(x).Name & ": " & ADORS(x).Value & vbNewLine
Set ADORS = Nothing
Set ADOConn = Nothing
Here is the output results for debugging on the last appointment.
1)Message Class: IPM.Appointment
3)Subject: Test Appointment
5)Message To Me: False
6)Message CC to Me: False
7)Sender Name: Kuurus
10)Received: 6/11/2008 8:57:48 AM
11)Message Size: 1653
13)Creation Time: 6/11/2008 8:57:55 AM
14)Last Modification Time: 6/11/2008 8:57:55 AM
16)Has Attachments: False
17)Normalized Subject: Test Appointment
18)Object Type: 5
This appointment is actually for June 13, 2008 at 10:00 am. No where in this information does it say this.
Any idea how i can find out the appointment time?
NOTES: I use VB6, Outlook 2003 connected to Exchange 2000
Download Data From Exchange Server (OutLook)
i want synchroniz my app to outlook users on exchange server.
now I can synchroniz my app to a local outlook with this code:
On Error Resume Next
Set objOutLook = GetObject(, "Outlook.Application")
If Err.Number > 0 Then
Set objOutLook = CreateObject("Outlook.Application")
fCreate = True
If Err.Number > 0 Then
Screen.MousePointer = vbDefault
MsgBox "ìà ðéúï ìäúçáø ì- " & vbCrLf & "Microsoft Oulook"
Set objOutLook = Nothing
fWorking = False
On Error GoTo errHandler
Set objItems = objOutLook.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Items
For nitem = 1 To objItems.Count
MsgBox t & " == " & objItems(nitem).subject
nStartItem = nitem
It works just fine.
But as I explaind I want to get the information from a specific calendar theat belong to specific user on exchanges erver.
thank you all...
Mail Retriever For Microsoft Outlook Exchange
got a little application that uses MAPI Control to:
extract e-mails from local outlook account,
-> checks Subject Field complies,
-> ->creates a .txt file from e-mail's body for further reference.
during runtime, Outlook MSG (attched jpg.. ) pops. and asks to user allow MailBox Access.
AS Application is meant to run in background,
Looking for a way to have no user interaction during runtime
->access the above e-mail from the server. (?)
->create privileges programmatically. (?)
thanks in advance for any ideas, pointers, references.
Lookup Exchange User From Email Address In Outlook Vba
I hope this is the correct place for this query. Apologies if not. I am trying to find out how, programmatically, I would be able to lookup which ms exchange server 2000 user has a specific email address of the form email@example.com. TIA
Outlook Global Address List From Exchange Server
Currently I'm working on a situation where need to retrieve and
update Outlook Global Address List from Exchange server. I'm able to
retrieve the contact list through the following example code but don't know
how to update some fields into the list. Could anyone send me an example
code to update the list ? Thanks.
Private Sub Command1_Click()
Const strServer = "nt_Exchg1"
Const strMailbox = ""
Dim objSession As MAPI.Session
Dim objAddrEntries As AddressEntries
Dim objAddressEntry As AddressEntry
Dim objFilter As AddressEntryFilter
Dim strProfileInfo As String
strProfileInfo = strServer & vbLf & strMailbox
Set objSession = CreateObject("MAPI.Session")
objSession.Logon "", "", False, False, 0, True, strProfileInfo
Set objAddrEntries = objSession.AddressLists _
("Global Address List").AddressEntries
Set objFilter = objAddrEntries.Filter
objFilter.Fields.Add CdoPR_SURNAME, "TEST"
objFilter.Fields.Add CdoPR_GIVEN_NAME, "JACK"
On Error Resume Next
For Each objAddressEntry In objAddrEntries
Debug.Print "E-address: " & objAddressEntry.Address
Debug.Print "Given Name: " & _
Debug.Print "Initials: " & objAddressEntry.Fields _
Debug.Print "Surname: " & objAddressEntry.Fields _
Debug.Print "Display Name: " & objAddressEntry.Fields _
Debug.Print "Alias: " & _
Debug.Print "Title: " & _
Debug.Print "Company Name: " & objAddressEntry.Fields _
Debug.Print "Office Location: " & objAddressEntry.Fields _
Debug.Print "Office Phone 1: " & objAddressEntry.Fields _
Debug.Print "Office Phone 2: " & objAddressEntry.Fields _
Debug.Print "Business Fax: " & objAddressEntry.Fields _
Debug.Print "Mobile Phone: " & objAddressEntry.Fields _
Debug.Print "Pager: " & objAddressEntry.Fields _
Debug.Print "Assistant: " & objAddressEntry.Fields _
Debug.Print "Assistant Phone: " & objAddressEntry.Fields _
Debug.Print "Home Phone 1: " & objAddressEntry.Fields _
Debug.Print "Home Phone 2: " & objAddressEntry.Fields _
Debug.Print "Home Fax: " & objAddressEntry.Fields _
Debug.Print "Home Street: " & objAddressEntry.Fields _
Debug.Print "Home City: " & objAddressEntry.Fields _
Debug.Print "Home State: " & objAddressEntry.Fields _
Debug.Print "Home Postal Code: " & objAddressEntry.Fields _
Debug.Print "Home Country: " & objAddressEntry.Fields _
Debug.Print "Manager Name: " & objAddressEntry.Fields _
Debug.Print "Manager Name: " & objAddressEntry.Manager
Retrieving Mail From Exchange Server (without Outlook Client)
i'm trying to find a way to get mail messages from Exchange server on a machine that doesn't have outlook installed.
i know that there are several protocols (POP3,MAPI...)
but couldn't find an example of how to use them ,
Edited by - elad on 8/28/2004 12:02:20 AM
How To Read Mails From Exchange Server Without Accessing Outlook (with Attachment)?.
Does any of your application using SMTP to read mails from the exchange server. I need to read mails without using the outlook. I need to process the attachments also. If any of you guys have any solutions, please do reply or mail to "firstname.lastname@example.org"
Any help in this regards is highly appreciated.
Thanks and regards,
Sending Mail Thro' Exchange Server ( Without Outlook Profile)
I have written a client-server application. Now i am planning to include email functionality in my
application. I was asked to add the functionality in the server side and the client should invoke a
function in the server to send the mail.
I thought i can do it with MAPI or CDO lib. But it seems both requires exchange server profile configured
in the server machine. All the sample codes written using MAPI/CDO uses a local profile to connect to
exchange server ( which is running in another machine ). SMTP is not secured. So, I cant use CDONTS
or SMTP or WINSOCK to send mails.
Is there a way to directly connect to the exchange server to send mail ( I was given a generic userid/password,
exchange server host name )? If you know a C++ or VB code which does this, please let me know.
Cannot Log Into Exchange 2003 In Program, But Outlook 2003 Works Ok For That Account
I have an error when trying to log into outlook accounts in my vb6 program. I do not have a problem logging into these same accounts using outlook 2003. I have googled and found most of the solutions refer to wsock32.dll is missing. I have a wsock32.dll file. And that also would not explain why I can log in to the accounts on our exchange server using outlook 2003.
Anyways, here is my code: (it is still rough, but I just want to get past this and I will clean it up later for all you experts...lol) I may have pinpointed it to the IPM.Appointment error. I have checked my books and that looks correct though.
Dim objSession As MAPI.Session
Dim objFolder As MAPI.Folder
Dim objMsgs As MAPI.Messages
Dim objMsg As MAPI.AppointmentItem
Dim objField As MAPI.Fields
Dim mar102007 As String
Dim mar112007 As String
Dim mar122007 As String
Dim nov32007 As String
Dim nov42007 As String
Dim nov52007 As String
Dim i As Long
Dim numChecked As Long
Dim temp As String
Dim Count As Long
Dim Subject As String
Dim location As String
Dim startDate As Date
Dim endDate As Date
Dim notes As String
mar102007 = "03/10/2007"
mar112007 = "03/11/2007"
mar122007 = "03/12/2007"
nov32007 = "11/03/2007"
nov42007 = "11/04/2007"
nov52007 = "11/05/2007"
On Error GoTo ErrorHandler
If Check4.Value <> 1 And Check5.Value <> 1 And Check6.Value <> 1 And Check7.Value <> 1 Then
MsgBox "You must check one of the check boxes of a year to the left to run this program"
Set objSession = New MAPI.Session
objSession.Logon 'must logon before you can use objSession
Set objFolder = objSession.GetDefaultFolder(CdoDefaultFolderCalend ar)
Set objMsgs = objFolder.Messages
If Check4.Value = 1 Then
Count = Count + 1
'it appears that this is need before you make the event to add to outlook
objMsg.Type = "IPM.Appointment" 'this is erroring
objMsg.ConversationIndex = objSession.CreateConversationIndex
Set objMsg = objMsgs.Add
'mar 10, 2007 10 pm to mar 11, 2007 6 am
startDate = DateAdd("h", 22, mar102007)
endDate = DateAdd("h", 6, mar112007)
objMsg.Subject = "Regular event on March 10, 2007 from 10 pm to March 11, 2007 at 6 am"
objMsg.Text = "Here is some text"
objMsg.StartTime = startDate
objMsg.EndTime = endDate
objMsg.location = "This is the location field"
objMsg.ReminderSet = True
'set reminder 15 minutes before startDate
objMsg.ReminderMinutesBeforeStart = 15
Set objFields = objMsg.Fields
objMsg.Update True, True
If Check5.Value = 1 Then
Count = Count + 1
If Check6.Value = 1 Then
Count = Count + 1
If Check7.Value = 1 Then
Count = Count + 1
MsgBox "enter exitsub"
Set objFields = Nothing
Set objMsg = Nothing
Set objMsgs = Nothing
Set objFolder = Nothing
If Not objSession Is Nothing Then
Set objSession = Nothing
MsgBox "exit exit sub"
MsgBox "Error Handler"
MsgBox "Error Occurred: " & Err.Description & " [" & Err.Number & "]", vbOKOnly, "DSTMaker - Error"
Thanks for the help in advance
I Have Form A, Form B , Form C, Fom D and Form E in visual basic.
When i click on RUN i would like VB to load Form E instead of Form A. How can i do this?
I need to access mail from an exchange server and I have not found any components which allow you to do this. Does anybody know of any ActiveX or COM components which will allow you to this?
I am trying to write a program to add a disclaimer to our out going email. I found a sample code to follow and it says that I need to add Project | References | Microsoft CDO for Exchange 2000 Library. I do not have that CDO and I cannot find any information on how or where to get it. Can someone point me in the right direction?
I apologize if this is a stupid question, I am very new to VB and programming.
MS Exchange Q
I know this is the VB Forum but theres no one in the General PC forum so please help me out. Does anybody know how do I delete or create an email account on a mail server that is hosted on the ISP?
Vb With Exchange
Is there some site where i can get some tutorial on using Exchange with Visual Basic. I dont mean Exchange admin stuff but developing applications in VB using Exchange.
VB6 And Exchange
I have written a small routine that uses the MAPI controls to read from an Exchange InBox. What I am strying to do is read all email from the Inbox and if there is an attachment save it to predefined location. This part of the routine works.
However, I can only see the first 8 characters of the attachment name. I look at the .attachmentPathName and AttachmentName properties and they both only show the first 8 characters.
Is there a way to fix this??
Ado && Exchange
Once upon a time I read e-mails out of Exchange Server using DAO, so I would say that it is possible to read them with ADO.
I can't remember what the connection string was, but a little poking around on the M$ knowledge base should help.
VB And Exchange
I am reltively new to VB (but not to programming in general) so bear with me for a minute. We are trying to implement a free help desk ticketing system. We would like to have people email requests into it in addition to being able to go to the site and fill out the request form (its web based ASP/MSSQL).
Since our office uses an Exchange server, would it be possible to setup a mailbox, say like email@example.com and have some kind of VB listener that will receive the email, parse it and then automatically incorporate it into the ticketing system?
Exchange And VB
Is there a way on how to create a User or folder in MS Xchange server using VB Codes?
Thanks in advance...
I need to show a list of users FullName and Phone from the Exchange Server into my VB-program.
How do I do that?
Does anyone know how to make or have made an ActiveX DLL for sending text messages to cellular phones? Where do I start and what do I do? (First timer) 8)
How I can transfer a picture from a computer to another computer?
Querying Exchange With VB.NET
I am writing an app that has to query the logged on users exchange account for new unread emails and calender appointments. Using VB.net I can not create any form of connection using the data components in visual studio.NET.
I tried to get round it by using access XP which can query exchange, but it does not seem to pull all the information across i need, like the read flag etc.
Can anyone help
A N Y B O D Y Work With MS Exchange?
I use Outlook automation objects in some of my apps. I have a problem that's just arisen that has nothing to do with my code. Evidently the free/busy data for my own Outlook profile is missing for Dec 2002 and after. I haven't had time to investigate whether others in my office (this is a large State agency) have the same problem. I know that the free/busy data for many staff is as it should be, so the problem isn't affecting everybody. I have received no error msg, such as "Unable to update free/busy information", or anything along those lines.
I don't run our Exchange Server, but expect to be talking to the person who does. Anybody have any leads/links/experience for troubleshooting this sort of thing?
I want to build an application that can access some website to get up-to-date currency exchange rate and then do calculation on the form.
Any idea on how I can accomplish this task?
Thanks in advance.
Getting Addresses From MS Exchange
Hello there one and all, long time, no post.
Does anyone know how to go about reading an address list directly from MS Exchange.
I can do it using Outlook Automation, but on XP it comes up with a prompt to the user telling them that someone wants to read their addresses.
So I need a way to get directly to exchange and read a distribution list.
How To Query Exchange?
I would like to query our Exchange server for a person's calendar info. Based on that info, I will send a alpha-numeric page...
But I need some sample code on how to query Exchange...
Does anyone know of a third-party product that simplifies access to Exchange data and does not require the use of COM Interop? I know that MS does not support CDO and MAPI access to Exchange using .NET. They do support WebDAV, but that is such a convoluted and cumbersome thing to deal with.