Link to home
Start Free TrialLog in
Avatar of jonesc3
jonesc3Flag for United Kingdom of Great Britain and Northern Ireland

asked on

macro for outlook 2003 and 2007

when user clicks on New Mail Message
i want them to send out as a different exchange user so instead of user1@domain they send out as info@domain (user account info)

***backgroung info***

 In this company there are going to be 3 types of users
1. office admin (2 users)
2. salesmen (10 users)
3. telesales (10 users)

what i want is for everyone to have their own seperate exchange account
but telesales must send their email out as info@domain but cannot recieve external email
office admin and salesmen all send out as their own username / email
office admin receive all email that comes in on info@domain

the telesales all have their own exchange accounts as they need to do stuff with calenders
Avatar of apache09
apache09
Flag of New Zealand image

Are all these users or email accounts still on the same domain?If so, why not do the following:Add Telesales to the Mailbox Rights of Info@domain.com Allowing them to "Send As" Info

Do nothing with SalesmanAdd Office Admin to the Mailbox Rights of info@domain .com. Then Add the "Info" Inbox to the Office Admins Mailboxes allowing them access to incomming mail for Info.


Avatar of jonesc3

ASKER

yer thats allready done

what i want is instead of them having to click

new mail

then click from

then click Info  (the domain user with email address info@domain)

i want that user pre filled in in the from field
Avatar of jonesc3

ASKER

This macro just needs to represent the action of clicking on the from field and selecting the user Info from the global address list in AD

and it needs to be executed every time a new email is written
I only write macros for Word, but when I send an email from Word, I can select the account I'm sending from.  The code would be:
 
With Application.EmailOptions.EmailSignature
   .NewMessageSignature = "Signature1"
End With

or

With Application.EmailOptions.EmailSignature
    .NewMessageSignature = "Signature1"
    .ReplyMessageSignature = "Reply2"
End With

Hope that's at least a start....
ASKER CERTIFIED SOLUTION
Avatar of rjt82
rjt82
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial