get users email address any Results

Page 1 of 4.
Results 1...20 of 72

Sponsored Links:

With Exchange server and Outlook 2000 clients how/where can I extract the current logged in user's email address?

Email servers are required by RFC821 to accept email in the form USER@[IP ADDRESS]. Microsoft addresses :>) this issue for Exchange Server in KB193316. So my Exchange server will accept email addressed this way, but I cannot get Outlook to send an email addressed so. The dialog pops up saying Outlook does not recognize ...... Any suggestions?

Anybody know a quick and easy way to find the email address of a sender? I'm trying to get to this without outlook giving me any security messages. I'm currently using Windows XP, outlook 2003 and excel 2003.

I have and excel user form that people can submit. Instead of asking the user to provide their own email address. I'd rather see if there is a way I can find it on their pc or in their outlook and prefill it. When the user form is submitted, it will be sending and email via CDO. I'm not sure if the settings at my work allow for the MAPI send message configurations. I've tried a few different code examples and keep getting error messages that I'm not able to figure out. So any suggestions to find this would be very much appreciated.

I'm reporting some success in getting the currently logged
in user's email address -- the SMTP address -- from an
Exchange server via CDO. With core gleanings from here's a tweakable function. I still want to try
the LDAP solution to see what that does. The key to this is
the PR_EMS_AB_PROXY_ADDRESSES constant value
which references all the Exchange Email address names
for the current user. Of note is the simple technique for
returning the "Reply address" as the prefered SMTP
address when the user has more than one SMTP "alias".
The "reply address" in Exchange is the one with SMTP in
uppercase. Any other SMTP address has that prefix in
lower case.

The MAPI objects for this function are all declared in the module declaration section and not reproduced here.

Function CurrentUserEmailAddress() As String
'The e-mail addresses (also known as 'Proxy Addresses') are stored in a multivalued MAPI property. Here is how to read this multivalued property:
' MAPI property tag for e-mail addresses

' Array for e-mail addresses
Dim strAddresses
Dim i As Integer

' Get current user object
Set objSession = CreateObject("MAPI.Session")
On Error Resume Next
objSession.Logon ShowDialog:=False, NewSession:=False

Select Case Err.Number
Case -2147221231
On Error GoTo 0
On Error Resume Next
objSession.Logon ShowDialog:=False, NewSession:=True ', profileinfo:="MSXServer" & vbLf & Environ("UserName")
If Err.Number 0 Then
'MsgBox "Error trying to start Outlook"
CurrentUserEmailAddress = ""
Exit Function
End If
'[Collaboration Data Objects - [MAPI_E_LOGON_FAILED(80040111)]]
'Set the value to a known good address so the email can at least be sent

End Select

Set objAddressEntry = objSession.CurrentUser

' Get the fields collection of the address entry
Set objFields = objAddressEntry.Fields

' Pull out proxy addresses
Set objMailAddresses = objFields.Item(PR_EMS_AB_PROXY_ADDRESSES)
If Not objMailAddresses Is Nothing Then
' Add the addresses to an array
strAddresses = objMailAddresses.Value
For i = LBound(strAddresses) To UBound(strAddresses)
If Left$(strAddresses(i), 4) = "SMTP" Then
MsgBox i & ": SMTP E-mail address: " & strAddresses(i)
Exit For
End If
End If
CurrentUserEmailAddress = strAddresses(i)
Set objMailAddresses = Nothing
Set objFields = Nothing
Set objAddressEntry = Nothing
Set objSession = Nothing
End Function

I have Windows XP, Hp pavilon 553x, hp psc 2110 all-in-one printer, scanner,

I am missing an address bar on Internet Explorer tool bar and also one on
the desktop tool bar . Seems like they both vanished at the same time, about
3 months ago.

I can't think of any changes I have made to my computer except downloading
Adware and Spybot and using the paid versions of both about 1 month ago.

I have a paid for Smart Exlplorer and it does have an address bar. I have
had this for nearly a year. I have to use it to go anywhere online.

I have been online with HP techs for two days each time about 2 hrs sessions
and they cannot fix this.

Here is what they have had me try.
1-download XP_Toolbar fix , which did not work.
2-Next typed C:windowsinf ,found the IE file and re-installed, restarted
computer again No address bar
Day two.
3-she had me try the XP_toolbar fix again, didn't work.

4-Then she had me do a registry backup then go to regedit, hkey_current-user
folder, software,
microsoft, Internet Explorer, toolbar, of the 3 sub keys ,Explorer,
ShellBrowser and Webbrowser, shellbrowser had and entry for ItBarLayout and
I deleted that and restarted
she felt that the deleted value would automatically restore any missing
bars in Internet Explorer.
Needless to say it didn't work.
5-Last she had me do sfc /purgecache and sfc /scannow.
It is still left open and problem left unsolved.
I have Norton Antivirus, Adware and Spybot. Run Norton twice a week, Adware
and Spybot every two day.They are all updated.
Plus I have a Virus blocker with my Server that catches it before it gets to
my email.

Address Bar is checked in the view option in IE.
I have done scans for Sasser and MS Blast worms and system is clean.

I feel that there is a check mark somewhere that is preventing this address
bar from appearing.

I will be forever grateful if someone out there can solve this mystery.

As a soon-to-be-but-not-yet XP user, I can see advantages in having
several partitions on the hard drive, one partition being for user data.

I would want to put folders My Documents, My Pictures, My Music onto
(say) the E: drive. In fact there would be one set of such folders
there, one set per each user of XP. How can I set that up?

Is it as simple as moving the whole user profiles folder to another drive,
but if so (idiot question) how does XP know how to find the profiles folder in
its new location? How do I actually do this?

Also, does XP have some special functionality associated with folder
My Pictures that doesn't get associated with any old folder? If so,
will any special properties of My Pictures be preserved if I move it
to another partition as indicated above?

My currently planned partitions BTW (on a 200G drive) are (1) XP Operating
System, (2) Swap File - no fragmentation problems if it has a partition to
itself, (3) Application Programs, and (4) User Data. Will be using Partition
Magic to do the partitioning. 200G drive!

Any comments from the experts will be much appreciated.


Brian Tooby
(remove "x" from email address when replying)

Pilot's Assistant Home Page:

Updated 01-Feb-2008: See Digests / Subscriptions.

We are currently experiencing sporadic delays with our automated email delivery system. Most seriously, this can affect new users and requests for new passwords as you will be unable to log in until you get a response!

If you do not receive an automated reply within 10-15 minutes of registering or requesting a new password, please email and we will endeavour to to manually sort things out as quickly as we can.

Do not forget to mention your registered username! For security reasons, we can only send new passwords to the registered email address in your profile.

Please ensure you have white-listed in any anti-spam software you may be running!
Notifications of replies to posts are similarly affected - see Not receiving email notifications to post replies. We will get back to normal service just as soon as possible!

My current DB uses access to send mail to remind participants of various things. Otherwise, its' an obscure DB and they won't be checking it daily. Mostly, the email addresses are picked up from the table of user account information and messages are created in response to buttons. However, there is one guy - let's call him the program co-ordinator that gets mail regularly from a number of different places within the db. For him I wrote a function that picks up his email address and assembles the message from information (message head and message body) provided by other subroutines.
All of this is working nicely.
Now, I'm trying to implement an improvement to this system.
If the user cancels sending the mail message I want at the very least a custom error message telling them why the mail must go through. Ideally, the information they were adding to the db will also be cancelled. (Something along the lines of not allowing people to cancel approvals without TELLING each other that approval has been cancelled). This also is working nicely. For everyone except the program co-ordinator. Since his message is passed to the function and assembled there, any email cancellations are not picked up by the sub that launched the message. Remember messages to him have variable contents. Anyway, I was wondering if the error msg created by cancelling an email could be passed back to a private sub or if there is a better way of handling the scenario.

Thanks for your thoughts.

I am using the Send Object command to send selected reports using GroupWise in Novell Network. The following statement is used to attach a report to GroupWise email and send it to specific user. There could be anywhere from 1 to 300 e-mail sent at a any one time.

DoCmd.SendObject acReport,
"rptDataEntryCheckToEmail", _
"SnapshotFormat(*.snp)", strTo, _
strCC, "", strSubject, strBody, False, ""

This works great, however, when the user clicks Email command button "Choose Profile" dialogue box pops up. The dialogue box defaults to "Novel Default Settings" and all the user has to do is click OK button to continue.

The dialogue box is only displayed once regardless of how many records the SendEmail function are processed or how many e-mails are sent to various email addresses.

The problem with "Choose Profile" dialogue box is the fact that same users click Email button and walking away thinking the process is going to take a long time so they may as well do something else in the mean time. However, if the user walks away too quickly the user may not click OK when "Choose Profile" dialogue box pops up.

The email function takes anywhere from 5 to 60 minutes to process filtered records and send e-mail remainders to selected people. If the user does not click OK button when prompted by "Choose Profile" dialogue box, he or she comes back later to find that "Choose Profile" dialogue box is still there waiting for someone to click OK button.

At that stage the user gets really angry with the &%&^ programmer who didn't program the application to automatically send e-mails without the $%^ dialogue box coming up in the first place.

As the programmer in the firing line I am begging anyone to tell me how to use DoCmd.SendObject without "Choose Profile" dialogue box coming up at all. Help, users of this application are after blood (my blood). Any help will be greatly appreciated.

Environment: Exchange Server 2007 64-bit (by definition!), using Mailboxes (no PSTs), the previous server ran Exchange Server 2003 (32-bit);clients on XP Pro using Outlook 2003 (converted very recently from Outlook 2002/XP;
I'm attempting to set up a new (not copied from Outlook 2002!) server-side rule on the user's Outlook to forward all messages appearing in their InBox to their home email address, except for those messages which they sent from their home address, Out of Office messages, and the like.

I've tried a variety of selection conditions and none, including a date range, and so on, but nothing seems to happen. Even Running the rule only works occasionally. I didn't have any trouble setting up a similar rule in the recently previous Exchange Server 2003/Outlook 2002/XP environment.

I'm completely baffled, and wonder whether there might be 'some setting' on Exchange Server 2007 which needs changing...


This would have been an easy question for HansV...

Computer is a Gateway FX530XV running Vista Ultimate. I had been using Bellsouth as my ISP but was having to call in every other day do get them to reset something at their end so that I could open anything in IE7 and got really tired of that so just switched to Comcast at twice the speed that Bellsouth said I could get at my address. I never did have any email problems with Bellsouth, but now I find that I can recieve but not send anything from Outlook. The strange thing is that I went to Comcast Web Mail and that sends just fine. Also, as there is one other user on this computer I tried to send a test message in both directions as soon as I had the accounts configured and got a message in both directions that "Relaying a message to another Comcast Account is not pernitted." Can any of you help me to get through this? I would greatly appreciate whatever hints that you may have. Oh yeah, a Comcast guy answered me yesterday and suggested that I change the SMPT server port to 587 but that didn't seem to make any difference. Thanks in advance for whatever reccomendations I can get.

After not getting any email digests for many weeks, I created a new user account in the Lounge, using, of course, a different email address with a different ISP, and use a different computer to access it. Another week has gone by, and I'm still not getting any digests. I turned off all spam filters, I checked every setting I could find, but nothing helps. The emails just stopped coming about a month ago. Can anyone suggest a solution? I have lots more email addresses, so I suppose I could just keep adding new member profiles until one of them starts getting the digests, but that seems kinda silly. I'd just like the old one I've used for years to start working again.


A colleague has asked me to post the following, if any further info or explanation is needed please reply as ill check with my colleague.

Can anyone help.

I am trying to get an email sent with the code below.
It will send to a single person with an attachment, but the attachment only shows as an unknown file although it will open in the associated program.

How can I send to a CC, BCC, more than one recipient, change the FILETYPE so it is recognised as XL if thats what I am sending. I also want to change the FROM

any help or suggestions would be much appreciated.

Option Explicit

'-- used for sending mail with api and outlook objects
'-- can be used in MS Access or Visual Basic
'-- MAPI constants
Public Const MAPI_AB_NOMODIFY = &H400
Public Const MAPI_BCC = 3
Public Const MAPI_BODY_AS_FILE = &H200
Public Const MAPI_CC = 2
Public Const MAPI_DIALOG = &H8
Public Const MAPI_E_BAD_RECIPTYPE = 15
Public Const MAPI_E_BLK_TOO_SMALL = 6
Public Const MAPI_E_DISK_FULL = 4
Public Const MAPI_E_FAILURE = 2
Public Const MAPI_E_MESSAGE_IN_USE = 22
Public Const MAPI_E_NO_MESSAGES = 16
Public Const MAPI_E_NOT_SUPPORTED = 26
Public Const MAPI_E_TEXT_TOO_LARGE = 18
Public Const MAPI_E_TOO_MANY_FILES = 9
Public Const MAPI_ENVELOPE_ONLY = &H40
Public Const MAPI_FORCE_DOWNLOAD = &H1000
Public Const MAPI_GUARANTEE_FIFO = &H100
Public Const MAPI_LOGOFF_UI = &H2
Public Const MAPI_LOGON_UI = &H1
Public Const MAPI_NEW_SESSION = &H2
Public Const MAPI_OLE = &H1
Public Const MAPI_OLE_STATIC = &H2
Public Const MAPI_ORIG = 0
Public Const MAPI_PEEK = &H80
Public Const MAPI_SENT = &H4
Public Const MAPI_TO = 1
Public Const MAPI_UNREAD = &H1
Public Const MAPI_UNREAD_ONLY = &H20
Public Const MAPI_USER_ABORT = 1
Public Const SUCCESS_SUCCESS = 0
'-- mapi message recipient object type

Public Type MapiRecip
Reserved As Long
RecipClass As Long
Name As String
Address As String
EIDSize As Long
EntryID As String
End Type
'-- mapi message file object type

Public Type MapiFile
Reserved As Long
Flags As Long
Position As Long
PathName As String
FileName As String
FileType As String
End Type
'-- mapi message object type

Public Type MAPIMessage
Reserved As Long

Subject As String

NoteText As String
MessageType As String
DateReceived As String
ConversationID As String
Flags As Long
RecipCount As Long
filecount As Long
End Type

Public Declare Function MAPILogoff Lib "MAPI32.DLL" (ByVal Session&, ByVal UIParam&, ByVal Flags&, _
ByVal Reserved&) As Long

Public Declare Function MAPILogon Lib "MAPI32.DLL" (ByVal UIParam&, ByVal User$, ByVal Password$, _
ByVal Flags&, ByVal Reserved&, Session&) As Long

Public Declare Function MAPISendMail Lib "MAPI32.DLL" Alias "BMAPISendMail" (ByVal Session&, ByVal _
UIParam&, message As MAPIMessage, Recipient() As MapiRecip, File() As MapiFile, ByVal Flags&, ByVal _
Reserved&) As Long

Public Function api_SendMail(sTo As String, sSubject As String, sMessage As String)

'-- use api functions to send mail
On Error GoTo Err_Trap
Dim Rtn As Long '-- return value For api calls
Dim objMsg As MAPIMessage '-- message object
Dim objRec() As MapiRecip '-- recipient object array
Dim objFile() As MapiFile '-- file object array
Dim hMAPI As Long '-- session handle
ReDim objRec(1)
ReDim objFile(1)
'-- file object *************************************************
' *************
'-- default - not expecting to send a file
objFile(0).Reserved = 0
'-- values not used for file
'-- recipient object ********************************************
' *************
objRec(0).Reserved = 0
objRec(0).RecipClass = 1
objRec(0).Name = sTo
'-- values not used for recipient
'-- message object **********************************************
' *************
objMsg.Reserved = 0
objMsg.Subject = sSubject
objMsg.RecipCount = 1
objMsg.filecount = 0
objMsg.NoteText = sMessage
'-- values not used for message
'-- make api calls to send mail *********************************
' **************
'-- logon to MAPI application
'-- default profile is set in user name parameter of Logon
Rtn = MAPILogon(0, "MS Exchange Settings", "", MAPI_LOGON_UI, 0, hMAPI)
'-- send mail message through MAPI
Rtn = MAPISendMail(hMAPI, 0, objMsg, objRec, objFile, 0, MAPI_DIALOG)
'-- logoff MAPI application
Rtn = MAPILogoff(hMAPI, 0, 0, 0)
Exit Function
ErrorCatch "MOD_MAIL.api_SendMail()"

End Function
Public Function olk_SendMail(sTo As String, sSubject As String, sMessage As String)

'-- use MS Outlook object to send mail
On Error GoTo Err_Trap
Dim objOutlook As Outlook.Application
Dim objMailItem As Outlook.MailItem
Set objOutlook = New Outlook.Application
Set objMailItem = objOutlook.CreateItem(olMailItem)

With objMailItem
.To = sTo
.Subject = sSubject
.Body = sMessage
End With
Set objMailItem = Nothing
Set objOutlook = Nothing
Exit Function

ErrorCatch "MOD_MAIL.olk_SendMail()"

End Function

Public Function ErrorCatch(sDesc As String)

Dim msg As String
msg = vbTab & vbTab & "ERROR OCCURRED!!" & vbCrLf & vbCrLf
msg = msg & "Function :" & vbTab & sDesc & vbCrLf
msg = msg & "Number :" & vbTab & Err.Number & vbCrLf
msg = msg & "Message :" & vbTab & Err.Description
MsgBox msg, vbCritical, "Program Error"

End Function

As you probably know, when you create an email in Outlook, there is an option (from the new email) to click on View, Options and specify 'Have replies sent to ...'.

One of my users is sending a bulk email mailshot using an XL spreadsheet I developed (with help) that, given the name and email address for each recipient, sends an individual email to each. This uses a URL to create the emails - effectively 'mailto:'.

However, he now wants to be able to send the emails with his boss's name in the From field, whilst having all replies sent to himself - presumably the net effect of the 'Have replies sent to ...' option mentioned above.

Does anyone know if there is a URL code for this option, or whether it is possible to set the Replies Sent To option permanently, rather than having to change it on each email? I know you can set it on a template (I did so on one of mine recently and then had to get help here to find it again!!) but again, I don't think you can specify a template when creating an email via a URL code ...

I'm attaching a copy of the spreadsheet - any help would be much appreciated!

I'm tearing my hair out over this problem, and hoping someone can help.

I have a client who has thousands of emails (c 4Gb) locked up in Outlook Express on a Win 2000 machine. I've successfully retrieved them from the machine and imported them into a brand-new XP machine. She is adamant she wants to stick with XP and OE. She is a big user of family history programs, many of which are only useful in XP. Migrating onto Windows 7 is a non-starter (yes, yes, I know :-) )

Her email address is strictly POP3 only. I've set up a Gmail address for her which polls her POP3 email address for her. Gmail is set up with IMAP access via OE.

The sticking point is her massive database of email. It sits on OE in a series of folders in Local Folders. The best way of future-proofing her email and her eventual move from OE is to put it all onto Gmail/IMAP. But how to get her email in there?

Copying folders into the IMAP account in OE doesn't work. Emails can be dragged into IMAP but the folders need to be recreated in IMAP: this will take forever.

Thunderbird can import OE mail, but only if OE is installed on the same machine as I understand it.

She does have access to Outlook 2007. All I have read on the Net seems to suggest mail can be imported from OE to Outlook, possibly using Windows Live Mail as an intermediary. However, if the folder structures aren't maintained and not re-created on the IMAP server easily, this is another long and tedious job.

So, in summary, I need to
- take a very large number of emails in folders from OE
- import them into Gmail via IMAP, whilst maintaining the folders.

Grateful for any and all suggestions!

I'm run a one-man computer tech business. I've been seeing a disturbing trend the last several months with Yahoo email accounts getting hijacked and sending out spam and worse. I"m getting either calls (or spam mail from their hijacked accounts) from at least 3 or 4 of my clients or friends every week now. I'm spending a lot of time helping reset passwords as a result - (BTW - ATT DSL clients have many hoops and different websites to run through to change their email password).

I've seen at least the following situations.

1. Guessing passwords - It appears to me that many of these hijacks are from some kind of password guessing hack as there don't appear to be any other ways to have gotten the email password - no viruses or malware found to be stealing passwords.
2. Phishing email messages - I've seen a few that have been tricked into disclosing their email passwords from clicking on links within bogus phishing email messages declaring that their account needs to be validated or some similar nonsense.

I've also seen a variety of 'impacts' with most just sending out spam messages to everyone in the contact list until the password gets changes. But I've seen at least twice where the spammers have added an alternate email address to the user's yahoo account and then setup forwarding of messages to that alternate email address. That results in the spammers receiving all of the emails the user would have received (with the user getting none) and the spammers getting a list of real addresses and potentially other private information. It also would hide any attempts at hacking into other online services (facebook, amazon, etc...) and resetting passwords or other nasty stuff.

If I'm seeing 3 or 4 a week in my little one-man business this must be epidemic around the world with thousands of accounts getting hijacked every day.

My questions are does Yahoo know about how bad this is getting - are they doing anything about it - do they care? I'm hoping that someone has the ability to ask Yahoo these questions since attempts I've made to contact them as an individual go unanswered.


I am trying to learn ASP/VBScript so I decided to start a project that would give me a goal to work toward. I am making an online news letter. I have been able to get the address to the database with a form but I can not figure out a way to validate the address. I know how to validate the syntax but I want to send an email to the new address asking the user to confirm it.

The addesses are stored in an Access database, is there a way to have a message automaticaly sent to any new address from Access? I am on the right track or is the a better way? Thanks!

Two questions, following a very brief explanation of why I'm asking.

Situation: I have my personal and business domains hosted by a major provider (staying generic here, so as not to influence any discussion). The personal domain is so that I don't have to update my email address in hundreds of profiles every time I change ISPs. From the company side of things, it's a one-person small business with a website and email, nothing more (at least not yet). Neither can afford the price for dedicated hosting (and even if the cost were reasonable it seems like a waste of resources), and I don't and won't do web-only systems.

Problem: I'm really getting tired of my emails not being delivered because someone else on the same shared host is a spammer. This is done by spam checkers that are looking only at IP addresses and don't want to consider that the same IP address may be shared by many users.

Question 1, for anyone using hosted email: have you had either an extreme lack or a plethora of similar problems? Mine seem to go in cycles, but in can take several days to get them resolved. In the meantime, I can't send email, which is a major problem for business.

Question 2, for anyone familiar with any such development: is anyone working on a better method of spam catching? It seems to me that using only an IP address is pretty short-sighted; I'd venture a guess that most small business are on shared hosts and have no control over who else has the same IP address for outgoing mail.

Any general discussion of this problem is also welcome!

(I should add that the biggest problems as far as recipients go are some of the largest user bases: Comcast and AOL.)

(Edited by JohnGray on 12-Oct-06 13:46. can't get √ to work!)We have an Exchange 2003 server, which handles emails addressed to

We now wish it to handle, in addition, emails addressed to (this will eventually take over from olddomain when everything is working properly).

Both domains are hosted by a UK hosting company, which provide the DNS which points the MX "A" records for both these domains to our external fixed IP address. No idea if this is the 'approved' way, but that's what happens and it works on

To get both email domains to 'work' I understand that I have to modify the Recipient Policies -> Default Policy
which used to read
[tick] SMTP
[tick] X400 c=GB;a= ;p=ourdnsdomain;o=Exchange;
and now reads
[tick] SMTP
[tick] SMTP
[tick] X400 c=GB;a= ;p=ourdnsdomain;o=Exchange;

I don't have a problem with SENDING emails from our organisation with a email address (provided I remember to change the Primary email address in my user entry in Active Directory!).

But all external emails addressed to defined email address at all get returned by the Postmaster of with a 5.7.1 Non Delivery report. Here is an example:The sender program at:
could not deliver the message with subject:
External email sent to,uk
originally addressed to:,
for this reason:
Error: delivery failed - Permanent Failure: 550 5.7.1 Unable to relay for

Has anyone any ideas where I might go from here? I'm afraid I have had Exchange systems administration thrust upon me...!



i have a ftp site that i would like to allow several users (200) access it and upload data, pics,pdf's dwg etc and create email addresses. i am not sure how to do this, i was thinking of trying to create a form, and create the desired email add. for the user. but how do you allow 200 users access to an ftp site and keep things straight?

i have never created a form before and any suggestions or templates would be appreciated, id like to get this up and running ASAP

i would like each individual too have there own login and PW. through a home page (1)

the website i am working on is it is a wip, you might visit it and see where i am trying to go with it.

the idea would be to allow several surveyors around the world to post data to a specific folder created by me, state specific of survey data and such.

Page 1 of 4.
Results 1...20 of 72