How To Get All The Profile Name From Microsoft Outlook?
Dear Members
In our project i have to get & show all the microsoft outlook profile names. How to get all the profile name from Microsoft Outlook?
Thanks in advance Rajesh
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
MS Outlook - Which Profile Is Active?
Hi,
is it possible to determine which Outlook profile is currently active?
I know the reg key for default profile but i want to react on special profiles if selected...
thx
Stefan
Logon New Profile In Outlook
Send Email with changing Outlook Profiles:
I use MAPI.Session object and MAPI.Message object in order to send email with the option to change the from field by changing outlook profile.
In order to change Outlook Profile, I log with new profile. This operation is been done by MAPI.Session.logon function. This function receive ProfileName, ProfilePassword and ShowDialog parameters.
If ShowDialog is true, the user must enter profile name and profile password regardless ProfileName, ProfilePassword define in the logon function.
If ShowDialog is false, the logon been done by ProfileName, ProfilePassword.
In win32, there is a defect. The profilePassword parameter is ignored on all Win32 platforms.
I want to know if there is away to log to new profile without using ShowDialog=True in objSession.logon function. (I develop automatic application, without user interference)
example: objSession.Logon ProfileName:=name, ProfilePassword:=pass, ShowDialog:=False, NewSession:=True, nomail:=True
Note: I can't create smtp protocol, our company policy is : use written things (outlook), don't invent existing functionalty.
Outlook Profile Password
Greetings!
I have a problem with Outlook profile password. I have a PC with Outlook 2000 install on it and configure with different profile (already configure). I also use that PC to run scheduled process in the morning and want it to send me an email confirming the process.
I have the code that sent the email to work fine with one email account but because I use multiple profile, it ask me for the password.
This is my code:
Private Sub SendMail()
Dim objOutlook As Outlook.Application
Dim objOutlookName As Outlook.NameSpace
Dim objOutlookMsg As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Dim CallDescription As String
Set objOutlook = CreateObject("Outlook.Application")
Set objOutlookName = objOutlook.GetNamespace("MAPI")
objOutlookName.Logoff
objOutlookName.Logon "user1", "user1", False, True
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
Set objOutlookRecip = .Recipients.Add("user2@company.com")
objOutlookRecip.Type = olTo
.Subject = "Updating completed successfully!"
.Body = "Great job. "
objOutlookRecip.Resolve
.Display
.Send
End With
objOutlookName.Logoff
Set objOutlook = Nothing
End Sub
With the ShowDisplay set to false I get this error message:
"Run-time error '-2044706811 (86204005)':
Cannot create e-mail message because a location to send and receive messages could not be found. To add a location, click the Tools menu, click Services, and then click the Delivery tab."
but if I set the ShowDisplay and enter the password manually, it works fine. I have also tried MAPI.
Does anyone have any ideal on how to fix this.
Your help is greatly appreciated.
Thanks,
Husky.
Retrieve Outlook Profile Name
I need to be able to get the name of the current profile name in
use by Outlook. For example if I have one profile called
"ProfileWork" and another called "ProfilePersonal" and I log into
Outlook using the "ProfilePersonal" profile, in one of my programs
I need to read a file which is created by the profile and named
from the profile name.
So if I dont know which profile (in case there are more than one
profiles for the user) is currently being used, I won't know which
file to open and my program data will be irrelevalent to the user's
profile.
I know its a long shot that someone may know, but it will really
help me.
Thanks in advance for any help or direction.
Setting Up Outlook Profile
Hello,
We are in the process of upgraded 10000 users from NT4 to W2k. Most of the user setup has been scripted for the techs. However, they still must configure Outlook manually for each user. Although it only takes a minute, x10000 users it is an added pain. It seems the profile info is stored in a .pip file which can't be accessed directly. I'm wondering if anyone knows a way to use maybe the MS dlls to modify the pip file. Thanks!
-C
Creating Outlook 97/98 Profile Thru VB?
How can I create a new Outlook 97/98 profile via VB. These computers have Outlook installed, may or may not have a profile already. I need to create a new profile. I will have the username, full name etc... I need it to be generic in the creation process. Thanks for any help
Outlook User Profile
Does anyone know What API I could use so that I could create an Outlook User profile
Programmaticly.
Any suggestions would be greatly appreciated.
tcompe
Adding A .pst File To An Outlook Profile
Does anyone know how to use VB or VBScript to add a .pst file to an Outlook profile? We are migrating thousands of users to a different Exchange system and I have most of what we need figured out but I haven't found a good way to tell Outlook where the .pst file is located. Has anyone ever done this sucessfully? I was hoping there would be a nice, neat registry entry but there doesn't seem to be.
Thanks,
Ken Franklin
Read/configure Outlook Profile
I think this question's been asked many a time before, but here goes...
We have Exchange Server 2000 and multiple Win 2K Pro PC's that access it. When I log into my computer I set up my Outlook's Microsoft Exchange Server profile through Control Panel/Mail, and when I start Outlook it goes right in. When someone else logs into my computer, they get the Setup wizard and they have to choose "Microsoft Exchange Server" and enter the server name.
Is there a way to write a program in VB that could execute with the NT login script, that would set up the user's profile? Thanks!
Selecting An Outlook User Profile
Hello World!
How can I programmaticaly select, a specific user profile when opening Outlook with automation, if the user has more than one?
Alternatice Outlook Profile Email From Excel
Hi Friends
I am using Microsoft Outlook 2000. I have SMTP Microsoft Exchange Server.
In my pc there are two profile has been created. One is belongs to me that is User1 and password test1, other one is common news letter that is User2 and password is test2. I want to send a mail at a particular time using user2 profile.
When I am sending mail in test time its asking a window to(a) start up profile and (b) asking to connect, offline or cancel. Then I say connect.. (c) it is asking password. so there are three steps are going.
Is there anyway to control the default setup through macro. Kindly help me in detail that I could use your knowledge..
thanks in advance..
Open Other Outlook Profile And Export Calendar
Hi all
I have developed a new system which uses information from a number of different people's outlook calendars. At the moment I am having to go into each profile and manually export their calendars into an individual excel spreadsheet for each of them.
This works fine apart from the fact that there are now 75 people taking part in this system which means a lot of manual opening and closing of different people's mailboxes. I have set up a profile for each person on my computer, so what I need if possible is the following:
A macro that will go into a new person's profile and export their calendar to excel, then close the profile.
Does anyone have any starting points for me on this one. I believe I can work through the calendar export but I am struggling with the code for opening different profiles and closing them again.
Any help would be much appreciated.
Brokovich
MAPI Send Mail .. Outlook Profile
Is there a way to make outlook use the default profile for outlook? RIght now i have it sending email using outlook but it prompts for a profile?
HELP
please email shaffer224@yahoo.com
thanks
Selecting Outlook Profile From Access Database
Hello there,
In my project, I need to generate reports from an access database and send
the emails by attaching the generated report.
To do this, I'm using docmd.sendobject method.
But, the outlook is prompting me to select the profile for each and every
email. I would like to select the profile for the first email and
subsequent emails should use the same profile. Can someone help me in this
regard?
Regards,
Krishnamohan
Creating An Outlook 97 User Profile Programmaticly
Can someone tell me how I could go about creating a Outlook User profile on a machine that has had Outlook just installed.
My objective is to place code in a vb logon script which would detected if a users has had outlook installed and indicate whether or not the Outlook user profile has been setup. I understand how to check for the existence of Outlook what I am looking for is what MAPI's are being called so that I can create the users profile programmaticly???
Any suggestions would be greatly appreciated
tcompe
Outlook Promts For Profile Over And Over And Won't Send Mail CODE >>>>
Outlook prompts me for the profile to use to send this simple email like it's looping or something.... can someone take a gander at this code and help me out please?
THANKS,
JUSTIN
Private Sub SendMail(strTo As String, strSub As String, strMsg As String)
Dim olApp As Outlook.Application
Dim olNS As NameSpace
Dim olMessage As MailItem
Set olApp = CreateObject("Outlook.Application")
Set olNS = olApp.GetNamespace("MAPI")
Set olMessage = olApp.CreateItem(olMailItem)
olMessage.To = strTo
olMessage.Subject = strSub
olMessage.Body = strMsg
olMessage.Send
olApp.Quit
Set olApp = Nothing
Set olNS = Nothing
Set olMessage = Nothing
Dim strSendTo As String
Dim strSubject As String
Dim strMessage As String
strSendTo = "xtremewireless@cox.net" '<=CHANGE TO NEEDED ADDRESS
strSubject = "This is the subject line" '<=CHANGE AS NEEDED
'Construct the message you want to send, append the text in the text box to the end of a string, add a new line...
strMessage = "Reference Number: " & Text1.Text & vbNewLine
'add some more text to the message
strMessage = strMessage & "This is the rest of the message..." & vbNewLine
Call SendMail(strSendTo, strSubject, strMessage)
End Sub
Private Sub Command1_Click()
Call SendMail("xtremewireless@cox.net", "Test mail", "Test mail from VB using SendMail procedure")
End Sub
Outlook Automation, Profile/pst Problem I Think - TOTALLY Desperate
I am new to Visual Basic programming and in writing an application I have included an Outlook automation subroutine that updates the contacts folder with data from a VB form. How can I identify the user profile to which I want to save the contact, instead of always saving to the profile of the user currently logged on?
Any help with this would be greatly appreciated
Thanks
HIGH TECH HOMER.
Sending Mail Thro' Exchange Server ( Without Outlook Profile)
Hi,
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.
Thanks,
Poochi..
Open Microsoft Outlook Or Outlook Express
I was wondering what code I would need to open Microsoft outlook I have a button and I want it to see if outlook is open if not open it up so an email can be sent. Thanks
Robb
Microsoft Outlook
Okay, I'm sure almost everybody out there has a hotmail account for checking e-mail, correct? 2.0mb doesn't last very long at all... and as I have discovered, you can connect to your hotmail account through outlook and download your e-mails to a local folder. The only problem, is that I want to save them, each individually (equivalent to save as)... except there are more than 510 e-mails in my one folder.
I know there is a visual basic object for Outlook. Would it be possible to loop through all messages in a folder and save them? Or could you cut the text, save it to a text document and name it whatever the subject was?
Thanks in advance.
Microsoft Outlook
I have an application that run a sql-query every night against an access-database. I the result of the query return something it automaticly send a mail to a person with the information from the query.
I have problem with this function if Microsoft Outlook is not started.
How can I code to start up Microsoft Outlook and logon with username, password and domain name. We use Microsoft Exchange server.
The application is running locally on the computer and also the person who
shall receive the mail have only this computer.
Hope someone can help me ?
Using Microsoft Outlook
Can someone tell me how I can from a Visual Basic 6 Program, open the New Mail Item in Outlook, insert an e-mail address that has been entered into my VB Program and add an Attachment to that e-mail. I am at a bit of a loss as to where to start
Trevor
Microsoft Outlook
Hi Guys
I am trying to process emails in a specific Outlook Folder. I have the following declaration in my code:
Dim objOutlook As New Outlook.Application
Dim objNameSpace As Outlook.NameSpace
Dim objFolder As MAPIFolder
Dim objMail As MailItem
Dim emailBody, emailDate, emailAddress
' Get the MAPI name space
Set objNameSpace = objOutlook.GetNamespace("MAPI")
Howeve, I keep getting the error "Run-time error '48' Error in loading DLL" on the last line.
Any ideas?
Thanks
Microsoft Outlook And VB
Hi,
I need a help in the following:
I have a table in Access.Now I need help in writing a code by which table is automatically e-mail by Microsoft Outlook Express to a particular address if a single record is entered in it.
Please help!
regds
Sanjeev
Microsoft Outlook With VB6.0
I am trying to tie an actual form in Microsoft Outlook with another form in my visual basic program. I dont really know much about visual basic and I dont know what properties in the object browser to select inorder to tell the program what i am trying to do. I dont know if this properly explains my problem.
thanks will apreciate any responces
Microsoft Outlook
Hello team:
I need a help one more time. I am writing an application in Visual Basic 6.0 in which:
--I have to access the Address Book from Microsoft Outlook version 2002
--Read and copy the email address list into an Excel Sheet
--Read and copy the user names list into another Excel Sheet
The Microsoft outlook is in the server. Is there is any example code in Visual Basic 6.0 so that I can solve this task.
Thanks to all for your time and tips
Daniel
Hollywood, Florida
Microsoft Outlook
Hi there, this isn't really a programming question, its more of a "help me please question". I have just created a custom form in outlook it works fine! However when i open it the form is displayed straight away without a prompt to enable/disable the macros, when the form opens non of the macros work.
Any ideas how to fix this problem, i am currently working in Outlook 2000, is there a way to make the enable/disable macro box appear?
Thanks Rohan
FW: VBA And Microsoft Outlook
> -----Original Message-----
> From: Stein, Delta
> Sent:Wednesday, September 24, 2003 3:02 PM
> To:'XML-L@OpenITx.com'
> Subject: VBA and Microsoft Outlook
>
>
> I am very new at this so I am going to do my best to explain myproblem as best as possible. I am trying to attach a single file tooutlook using VBA. I found a code that has gotten me pretty close to mygoal except the code it suppose to send the same attachment to severaladdresses which are housed in the excel sheet. For some reason it willonly send the attachment with the message to the last email address incolumn A not all the email addresses in column A. Help. I need to beable to have anyone change the email addresses without having to go intothe module itself. Attached is the code. I am sure I am just missinga slight detail.
>
> '--- Set up the Outlook objects.
> Dim objOutlook As Outlook.Application
> Dim objOutlookMsg As Outlook.MailItem
> Dim objOutlookRecip As Outlook.Recipient
> Dim objOutlookAttach As Outlook.Attachment
>
> '--- Declare our global variables to be used in each subroutine.
> Dim CustomerAddress As String
> Dim CustomerMessage As String
>
> Sub MailItNow()
>
> '--- Declare our variables.
> Dim X As Integer
> Dim TempCustomerAddress As String
>
> '--- Prevent screen redraws until the macro is finished.
> Application.ScreenUpdating = False
>
> '--- Sort the addresses and names alphabetically, by the e-mailaddress.
> '--- This is REQUIRED to prevent any duplicate addresses from
> ' receiving more than one e-mail.
>
> Columns("A:B").Select
> Selection.Sort Key1:=Range("A2"), Order1:=xlAscending,Header:=xlGuess, _
> OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
>
> '--- Sets which row to start searching for e-mail addresses and names.
> X = 1
>
> '--- Begin looping through all the e-mail addresses in column A until
> ' a blank cell is hit.
> While Range("A" & X).Text <> ""
>
> '--- These variables will be used to search for duplicates.
> CustomerAddress = Range("A" & X).Text
> TempCustomerAddress = CustomerAddress
>
> '--- Increment X until a different e-mail address is found.
> While TempCustomerAddress = CustomerAddress
> X = X + 1
> CustomerAddress = Range("A" & X).Text
> Wend
>
> '--- Add the e-mail address to a global variable.
> CustomerAddress = Range("A" & X - 1).Text
> '--- Add a message with the user's name to the e-mail.
> '--- Customize your own message and closing here.
> CustomerMessage = Range("B" & X - 1).Text & "," & vbCrLf &vbCrLf _
> & "Attached is this weeks OT report." & vbCrLf & vbCrLf & _
> "Thanks" & vbCrLf & "Payroll"
>
> '--- Run the subroutine to send the message.
> Call SendMessage
>
> Wend
>
> '--- This is required to prevent a name which does not resolve to
> ' an e-mail address from hanging the app.
> On Error Resume Next
>
> ' Create the Outlook session.
> Set objOutlook = CreateObject("Outlook.Application")
>
> ' Create the message.
> Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
>
> With objOutlookMsg
> ' Add the To recipient(s) to the message.
> Set objOutlookRecip = .Recipients.Add(CustomerAddress)
> objOutlookRecip.Type = olTo
>
> ' Set the Subject, Body, and Importance of the message.
> .Subject = "Thank You!"
> .Body = CustomerMessage
> .Importance = olImportanceHigh 'High importance
>
> ' Add attachments to the message.
> If Not IsMissing(AttachmentPath) Then
> Set objOutlookAttach = .Attachments.Add("C:Documentsand SettingsdsteinDesktopOT.XLS")
> End If
>
> ' Resolve each Recipient's name.
> For Each objOutlookRecip In
Com Add-In And Microsoft Outlook
I have visited Microsoft Support Page for making an Office Com Add-In. It was real easy to create the Com Add-In for an excel command button.
What I am trying to do is create a Com Add-in for Outlook 2000. I would like to be able to sense a new mail arrival and then execute code. This is very simple if I just use VBA and use the Private Sub Application_NewMail() sub. But this is not easily scalable or deployable. Is there a way to use the WithEvents command to sense the NewMail arriving in the inbox?
Microsoft Outlook
How do I go about manipulating text(i.e Bold, Underline,bullets etc.) in an outlook mailitem using VB?
Microsoft Outlook
My program sends an email using Outlook. It works fine if I set reference to MSOUTL9.OLB since I have Outlook 2000 installed. However, it doesn't work on a machine with Outlook 97 installed. I have to recompile my program with the reference set to MSOUTL8.OLB in order for it to work. Any suggestion to work around both versions of Outlook ?
Microsoft Outlook
Is it possible to read Outlook database from my application?
For example: can I search for a specific contact in the Contacts folder?
Is there API or something like that?
Thank you.
Microsoft Outlook
Hello, does anyone know how I would read an email as I would read any text file?? I try to use the FileSystemObject when dealing with files, but I don't know how I would access an email.
Thanks for any help,
Sean
Microsoft Outlook And MAPI
This is my code for sending an attachment in vb6 by using the MAPI controls.
This code works perfectly for Outlook Express but it doesn't seem to be working for Microsoft Outlook. I am only able to send one attachment. When attempting to send more it fails. Anyone have any idee to solve this?
For i = 0 To UBound(arrayAttach) - 1
With frmEmail.mapMessage
.AttachmentIndex = X
.AttachmentPosition = Len(frmEmailDetails.txtMessage.Text) + X
.AttachmentType = 0
.AttachmentName = arrayAttach(i).AttachFile
.AttachmentPathName = arrayAttach(i).AttachPath
X = X + 1
End With
Next i
Open Microsoft Outlook Using VBA
Hello guys.
I'm currently working on a project that will need to open new message for Microsoft Outlook using VBA.I manage to create the message but i cant find a way to insert signature straight away into the message that i created.i gone through MSDN but still cant figure out what command that can actually do this.
Hope to get reply from u guys soon.
oi ching
Attach is the code that i used to open Microsoft Outlook:
Code:
Dim objOutlook As Outlook.Application
Dim olns As Outlook.NameSpace
Dim olepl As Outlook.Explorer
Dim ofld As Object
Dim olCom As Office.COMAddIn
Dim objOutlookMsg As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Dim objOutlookAttach As Outlook.Attachment
Dim sSubject, sText As String
Set objOutlook = New Outlook.Application
Dim ObjName As String
ObjName = InsertWordPIEmail(Me.TransId, Me.RevisionNo, 0, , 1) '06052004
Call OpenOutlook
'Begin:send email
Set objOutlook = New Outlook.Application
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
Set objOutlookRecip = .Recipients.Add(sEmail)
objOutlookRecip.Type = olTo
.Subject = sSubject
.Body = sText
.Importance = olImportanceHigh
If Not IsMissing(ObjName) Then
Set objOutlookAttach = .Attachments.Add(ObjName)
End If
For Each objOutlookRecip In .Recipients
objOutlookRecip.Resolve
If Not objOutlookRecip.Resolve Then
objOutlookMsg.Display
End If
Next
.Send
End With
Set objOutlookMsg = Nothing
Set objOutlook = Nothing
Public Sub OpenOutlook()
Dim objOutlook As Outlook.Application
Dim olepl As Outlook.Explorer
Set objOutlook = New Outlook.Application
Set olepl = objOutlook.ActiveExplorer
If olepl Is Nothing Then
Dim lCommandLine As String
Dim lType As String
Dim pFileName As String
pFileName = ""
lType = "outlook"
lCommandLine = regQuery_A_Key(HKEY_CLASSES_ROOT, lType + "shellopencommand", "")
If lCommandLine = "" Then
MsgBox "Microsoft Outlook is not installed." & _
"Please contact your IT Department in order to proceed.", vbCritical
Exit Sub
End If
If Not StringReplace(lCommandLine, "%1", pFileName) Then
lCommandLine = lCommandLine + " " + pFileName
End If
Call Shell(lCommandLine, vbMaximizedFocus)
End If
Exit Sub
End Sub
Microsoft Outlook / Exchange
Hi,
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.
Thanks,
David
Microsoft Outlook Component
Hi guys...
One simple question for u....I hope...
Im using the outlook component and trying to use .SenderName property of the mailitem object to get the senders email address.. Unfortunatley this is just giving me a simple name like Joe or John... and no email address... What can I do to get the specific email address as it appears in the From field in square brackets in Outlook...
Thnx a lot
Microsoft Outlook Express
Hello any One
See I've taken Backup of E-mail in Outlook Express
The files have been saved in Dbx Extension
How do i see the data in Dbx Format
I want see anyhow
Thanks
Samyo
Microsoft Outlook Journal
Hello,
Can anyone tell me how Microsoft work the Journal facility within Outlook - I think it's a very useful resource & I'm interested to find out how the journal keeps tabs on documents (whether their info is stored in a databse) and on the various details about their creation & ammendment.
Thanks
Sam
Microsoft Outlook Object In VB
Can anyone help me...I am trying to figure out how to use the Outlook object in VB 6.0. I have search all over the web and MSDN, but I can't find anything helpful. I thought you would Dim an object as an Outlook.Mailitem, but i get errors when I try to set the parameters. Any help would be great.
Thanks,
Steve
Microsoft Outlook Cool Bar
have you seen the cool bar that microsoft outlook has on the right?
Does anybody know or have an idea where to get it? Or how to make it?
Thanks
VB Via Microsoft Outlook 2000
I am trying to create an e-mail template in Microsoft Outlook 2000 but when using control source under advanced properties I keep getting the error "Could not set the control source property. Invalid property value." Any ideas. Thank you.
Microsoft Outlook Address
I was wondering if anybody knew how to retrieve the actual email address from a message sent to a mailbox. I can retrieve the name of the person who sent the message by using the following code:
Dim oApp As New Outlook.Application
Dim oNameSpace As NameSpace
Dim oFolder As MAPIFolder
Dim oMailItem as Object
Set oName = oApp.GetNamespace("MAPI")
Set oFolder = oName.GetDefaultFolder(olFolderInbox)
For Each oMailItem In oFolder.Items
MsgBox oMailItem.SenderName
Next
But I can not find a way to get the address. I appreciate any help. Thanks
Microsoft Outlook SideBar Ocx
Does anyone know where I can Get a Freeware version of the Microsoft Outlook SideBar?? I've seen it once, but can't remeber where I saw it. Thanks
|