• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

Adding a Button for Quick Email

Is it possible to create a button in Outlook that when clicked would start a new message automatically assigned to a person?
0
Filogix
Asked:
Filogix
  • 3
  • 2
1 Solution
 
kg69Commented:
Create a macro to send the mail message:
http://www.experts-exchange.com/Programming/Misc/Q_21927384.html

Then right mouse click on the toolbar area of outlook go to macros and drag and drop your macro where you want it.
0
 
Leon TealeCommented:
hmm i think its possible to set up a template for it...are you office 03 or 07?
0
 
kg69Commented:
By right click then select customize.. sorry thought I had that in. :)
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
FilogixAuthor Commented:
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 ("TSIncidentCoordinators@filogix.com")
  .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
objMail.Send

' Display it
' objMail.Display

Set objMail = Nothing
End Sub
0
 
kg69Commented:
=) 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.
0
 
FilogixAuthor Commented:
Had to remove the remarks coding so it would not autosend.  everything is working fine now.  Thanks
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now