Questions tagged [outlook.application]

Use to focus your question on the use of an Outlook.Application object outside of Outlook's own VBA. Examples: PowerShell or VB Script referencing and manipulating an Outlook mailbox; Excel or MS Access building an Outlook Mail Item without leaving their own VBA environment, etc. Should be considered a sub-category and used for focusing a question.

Outlook is arguably the most common popular method used by programmers learning to send automated mail from an outside data storage. An Outlook MailItem can be quickly generated by using the mail settings already stored in the default Outlook mail profile outside of the native Outlook environment by introducing an instance of an Outlook.Application object and using that object to programmatically create and send email.

This presents unique problems, particularly in addressing parent/child relationships that are taken for granted in a native Outlook environment. Use this tag to focus attention on these issues when you are using an independent instance of the Outlook.Application from an outside calling process.

Typical examples of outside calling processes would include , or even other Office applications such as or each of which can construct an instance of an object and use it to not only create and send mail but wrangle the Contact, Calendar and other information stored an Outlook mailbox.

References:

22 questions
3
votes
3 answers

How to check if Outlook is running, using vbscript

How to check if Outlook is running, using vbscript, I need this for my installation procedure to ask the user to close outlook before installing my application. Thanks,
Mark
2
votes
4 answers

Opening outlook 2010 through vbscript

I want to send email using outlook 2010, windows 7 & IE8 , what is code required to get the "Outlook.Application" object?. I tried with CreateObject("Outlook.Application") but getting error "Object Required"
Vikas
  • 51
  • 1
  • 2
  • 7
2
votes
1 answer

how to python win32com use eml file open outlook. attachment file extract and body content read

python win32com use open Outlook.Application. eml attachment files extract. and read subject and body content. use python native package use. eml file format. Code import win32com.client outlook =…
THAVASI.T
  • 131
  • 1
  • 5
2
votes
1 answer

How to open outlook using javaScript on client machine?

I Have java code which open outlook in server . but i want to opent outlook on client machine and fill Body with HTML content . is it possible using javaScript , VbScript or any other Technology . public static void main(String[] args)…
Vikram Pareek
  • 21
  • 1
  • 2
1
vote
1 answer

Send e-mail from outlook using PHP,, Attachment problem

i am trying to send e mail via outlook by php. i succeed this with this code, but i couldnt find how to add an attachmnet. $subject="Hi from your city"; $message= "hello my darling"; $to="example@gmail.com"; // starting outlook …
Hasan Yilmaz
  • 108
  • 8
1
vote
5 answers

CreateObject("Outlook.Application") not working on some computers with Office 365

I have a client site running our Windows desktop software on a number of computers with 64 bit Office 365. On most of their computers, our software is able to send email via Outlook. However, two of their computers were upgraded to 365 last year (by…
Graeme
  • 43
  • 1
  • 8
1
vote
2 answers

How can I by VBA code see that outlook object is closed

I use Outlook to edit the subject and body text using following code: Sub SetupEmailTexts() Dim olApp As Object Dim olNameSpace As Object 'Outlook.NameSpace Dim MailFolder As Object 'Outlook.MAPIFolder Dim MyMail As Object…
Ebbe
  • 43
  • 1
  • 8
1
vote
3 answers

Quit Outlook object AFTER email is sent

Here is the code I have so far: Option Explicit Call OpenOutlook() Function OpenOutlook() Dim ObjShell Set ObjShell = CreateObject("WScript.Shell") ObjShell.Run("Outlook.exe") Call SendEmail() 'I tried closing from here but…
Edrei
  • 11
  • 1
  • 4
1
vote
1 answer

VBscript to retrieve current user data from outlook

I need to retrieve few fields from outlook like Fullname, jobtitle from outlook server using VBscript. Set oNetwork = CreateObject("WScript.Network") sDomain = oNetwork.UserDomain sADSPath= sDomain & "/" & sUser Set oUser = GetObject("WinNT://" &…
Preeth
  • 11
  • 2
0
votes
0 answers

Adding MailItem to PST with Python and win32com

I am having trouble adding new MailItems to a PST file that I create dynamically. I can create the MailItems fine on their own, and saving them to a location on my computer works just fine. When I try to save the MailItems to the PST, however,…
mdershti
  • 3
  • 3
0
votes
1 answer

MS Outlook create non-blocking email from template

I create an email from MS Outlook template. The email looks fine and it can be edited or sent. While the new email is not yet sent, the user has no access to the other MS Outlook items. If there are other open emails, the user can't copy content…
Nick_F
  • 1,103
  • 2
  • 13
  • 30
0
votes
1 answer

Is Outlook.Application component still supported in Outlook 2016?

I have some code that sends emails using the default email client on windows. If it's Outlook, I'll use the "Outlook.Application" ole object, otherwise I'll fall back to MAPI. This has been in use at multiple sites for several years, but now it is…
Robbie Matthews
  • 1,404
  • 14
  • 22
0
votes
0 answers

how can we integrate outlook in our application with Rules without Outlook.Application?

I want to add outlook functionality in My project. In that now I used Outlook.Application() so it took mail id from desktop outlook application which is available in system. But I want pass the mail id and password from user enter on web without…
0
votes
1 answer

Can I Access Outlook Add-Ins Through Outlook.Application in my Code?

I'm using Outlook.Application to send emails from my C# code. I have this Voltage Encryption Add-In which allows you to "Send Secure" a message rather than the normal Send. Can I use this Send Secure in my code? Is there some way to access…
Caleb
  • 328
  • 2
  • 10
0
votes
1 answer

Pull data from specific cell to load as text in an email

I am trying to generate an email from a button click and have it load data( as the subject line for the email) from the first cell in the row that the button is located in. Example: In row 22 I place a button in column X and when it is clicked it…
Paul M
  • 3
  • 2
1
2