Adding a Button for Quick Email

Posted on 2008-11-04
Last Modified: 2010-04-21
Is it possible to create a button in Outlook that when clicked would start a new message automatically assigned to a person?
Question by:Filogix
    LVL 3

    Expert Comment

    Create a macro to send the mail message:

    Then right mouse click on the toolbar area of outlook go to macros and drag and drop your macro where you want it.
    LVL 6

    Expert Comment

    by:Leon Teale
    hmm i think its possible to set up a template for it...are you office 03 or 07?
    LVL 3

    Expert Comment

    By right click then select customize.. sorry thought I had that in. :)

    Author Comment

    OK, I created a macro, then a toolbar and added the macro to that toolbar.  When I click it I get nothing.  Here is the code i edited for the macro.

    Sub Email_TS_Incident_CoOrdinators()
    Dim objMail As Outlook.MailItem
    Set objMail = Application.CreateItem(olMailItem)

    With objMail
      ' By default person will be added
      ' to the To area
      .Recipients.Add ("")
      .Subject = "Incident Report" & Date & Time
      ' Touching body makes it an RTF message
      .Body = "Incident report created at:" & Date & Time
      ' Touching HTMLBody makes it HTML
      '.HTMLBody = "This is the body in HTML."
    End With

    ' Send it

    ' Display it
    ' objMail.Display

    Set objMail = Nothing
    End Sub
    LVL 3

    Accepted Solution

    =) Well I tested myself and looks like it works well I ended up emailing that address...Doh! should have changed it. :) Hehe
    It is simply emailing without you seeing anything. Check your sent items and you should see the message.  If you want to edit the body and put more details in, I would tie this behind a form and just have the macro call the form. Let me know if you need code to do that.

    Author Closing Comment

    Had to remove the remarks coding so it would not autosend.  everything is working fine now.  Thanks

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Sorry for my English and Italian screenshots..... Problem: Every Year the number of E-Mails grow dramatically and the space that they take on Exchange Servers or .PST files, grow much more faster, once it was only text, now our E-Mail Archives …
    Find out how to use dynamic social media in email signatures with this top 10 DOs & DON’Ts.
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now