Results 1 to 13 of 13
  1. #1
    Star Lounger
    Join Date
    Jan 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Setting the From field automatically (2003)

    Hi,

    We have an email account that myself and several colleagues can access and send mail from. When sending replies to mail from this account we would like the email to show as coming from us, rather than the name of the email account. Currently, we do this by editing the name in the From box before sending the message, but you have to do this each time. Is there a way of setting this as default so it always knows to show the message as coming from us?

    Many thanks, Laurie

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Setting the From field automatically (2003)

    Why don't you use your own account then?

  3. #3
    Star Lounger
    Join Date
    Jan 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Setting the From field automatically (2003)

    Because it's a 'student' central account. The idea is questions can be sent to this central e-mail address by students wanting to ask questions, and we all reply to those e-mails. We have recently upgraded from Gorupwise, and in GW it would show as being sent by us automatically.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Setting the From field automatically (2003)

    Try the following:

    - Open Outlook with the central account.
    - Right-click the Inbox.
    - Select Properties from the popup menu.
    - Activate the Permissions tab.
    - Add each individual user you want to be able to access the inbox, and assign the desired role/permissions.
    - OK your way out.

    - Open Outlook with your personal account.
    - Select Tools | E-mail accounts...
    - Click 'View or change existing e-mail accounts'.
    - Click Next >.
    - Select your account and click Change...
    - Click More Settings...
    - Activate the Advance tab.
    - Click Add...
    - Add the central account.
    - OK your way out.

    You should now be able to see the Inbox of the central account while working under your own account. When replying, your personal account wll be the sender.

  5. #5
    Star Lounger
    Join Date
    Jan 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Setting the From field automatically (2003)

    Hi Hans,

    Sorry I have obviously not explained this very well. We do all currently have this access so we can see the emails in the 'Student' folder. It has been set up in exactly the way you describe so we all have access to it from our folder list.

    The key is that when I reply to those emails Outlook always wants to try to send from the mailbox account email address, so they show as being sent by student@..., whereas I want Outlook to, automatically, realise that it should be sent from laurence.willis@...

    Thanks again, Laurie

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Setting the From field automatically (2003)

    I'm sorry, I don't know. Hopefully someone else will be able to help you.

  7. #7
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Setting the From field automatically (2003)

    The question is...How will the PC know you are sending the email if multiple people can send from that account. I am thinking that this is only possible if you log on using a specific identity, either onto windows or into a personal account when opening outlook. If the account is shared, the PC will never know who is really sending a reply.
    Regards,
    Rudi

  8. #8
    Star Lounger
    Join Date
    Jan 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Setting the From field automatically (2003)

    Hi Rudi,

    Because I have logged on with my user name and password and am accessing my own Outlook account when starting Outlook. I see the 'student' mailbox through delegate permissions, so the 'Student' Inbox is accessible through my folder list. I click the folder to see the emails and can then reply.

    So, in effect, when I reply to emails in my Inbox it shows laurence.willis@... as the sender, but when I reply to emails in the student account it shows as from student@... Can Outlook be set to always reply from the 'writer' not the 'account name'?

    Thanks again and sorry for not being clearer!

    Laurie

  9. #9
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Setting the From field automatically (2003)

    Is the Account drop-down enabled in the message compose window? In other words, does it show both your account and the "student" account? If so, then the following thread should help: Prompt for Account (2003).

    If you only have the student account, I think John's solution is the most logical. You also could set the reply-to address field if you want to have the recipient reply directly back to you.

  10. #10
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Setting the From field automatically (2003)

    Since I don't have a multiple account/address setup to test on, I can't be sure if this will work, but you could test the following code, edited to fit your parameters, in the ThisOutlookSession module in the VBE to see if it works:

    Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
    If Item.Class = olMail Then
    With Item
    If .SentOnBehalfOfName = "student@location.edu" Then _
    .SentOnBehalfOfName = "laurence.willis@location.edu"
    .Save
    .Send
    End With
    End If
    End Sub

    If you don't know where this goes or are not comfortable using code, post back.
    -John ... I float in liquid gardens
    UTC -7ąDS

  11. #11
    Star Lounger
    Join Date
    Jan 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Setting the From field automatically (2003)

    Thanks for both of your posts.

    John, I really think this is close to the solution I need. The code seems logical and I have looked up info on SentOnBehlafOfName and it is exactly what I want to set.

    Only problem is, I can't get it to work! I have copied your code into the VB Editor in the ThisOutlookSession module like you suggested and I have closed, saved and reopened Outlook. But when I do a reply from the Student account it is still displaying as sent by laurence.willis@... on behalf of student@... I tried it with the actual e-mail address and the display name. I also did a test with a Msgbox SentOnBehalfOf, but the message box just appears with no result.

    I'm stuck. Any ideas?

    Thanks, Laurie

  12. #12
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Setting the From field automatically (2003)

    I don't have any two-account installations to test, but a few things:

    1. The name you use in the code must be the address book display name, not the underlying SMPT or X500 address.

    2. The SentOnBehalfOfName user (the shared mailbox) -must- give Send Items on My Behalf permissions to the Sender (you)

    3. Are you getting any code error message?

    4. When you put your cursor on the first line of the code, do the Object and Event drop-down boxes select Application and ItemSend as in the Graphic?
    -John ... I float in liquid gardens
    UTC -7ąDS

  13. #13
    Star Lounger
    Join Date
    Jan 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Setting the From field automatically (2003)

    John,

    In answer to your questions:

    1. I am trying it with the display name and it is not working.

    2. Permissions are granted.

    3. The drop down boxes and code are exactly as per your graphic.

    Aaahhh, so frustratingly close!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •