How to attach a file with MS Outlook, from a program?

Status
Not open for further replies.
N

niladri

I am using Powerbuilder. Is there any way to attach a file to the MS

Outlook...from the Application Program itself?

N.B. The User will not have to attach the file fut the program will

automatically attach the file..

thanks

niladri
 
K

Ken Slovak - [MVP - Outlook]

You can't attach a file to the application. You can attach it to an item.

"niladri" <niladri> wrote in message

news:91838354-1DB6-4AA2-88C1-0E86C10442C0@microsoft.com...
> I am using Powerbuilder. Is there any way to attach a file to the MS
> Outlook...from the Application Program itself?

> N.B. The User will not have to attach the file fut the program will
> automatically attach the file..

> thanks
> niladri

>
 
N

niladri

Ken, No.. you did not understand my questtion al all... Let me explain you

again...

1. I am running an application using Powerbuilder.

2. From this application I am calling MS Outlook.

3. Users then search for a specific file (some .doc, .xls etc) to attach

with this Outlook.

I want to create something so that I can attach the file with Outlook

(instead user to look for it...since I know exactly what file needs to be

attached...)

all users are left to do is to put the Recipient address and Send....

-niladri
wrote:


> You can't attach a file to the application. You can attach it to an item.

> >

>

> "niladri" <niladri> wrote in message
> news:91838354-1DB6-4AA2-88C1-0E86C10442C0@microsoft.com...
> >I am using Powerbuilder. Is there any way to attach a file to the MS
> > Outlook...from the Application Program itself?
> > N.B. The User will not have to attach the file fut the program will
> > automatically attach the file..
> > thanks
> > niladri
> >


>
 
K

Ken Slovak - [MVP - Outlook]

You would use the Outlook object model to do that. I have no idea about

Powerbuilder, but in VBA code if oMail is a mail item then this would attach

a file to the item:

Dim oAttach As Outlook.Attachment

Set oAttach = oMail.Attachments.Add("pathToTheFile")

"niladri" <niladri> wrote in message

news:8B8D47FF-CD4C-4429-8433-153FE89541DD@microsoft.com...
> Ken, No.. you did not understand my questtion al all... Let me explain you
> again...

> 1. I am running an application using Powerbuilder.
> 2. From this application I am calling MS Outlook.
> 3. Users then search for a specific file (some .doc, .xls etc) to attach
> with this Outlook.

> I want to create something so that I can attach the file with Outlook
> (instead user to look for it...since I know exactly what file needs to be
> attached...)

> all users are left to do is to put the Recipient address and Send....

> -niladri
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
I Outlook 365 - import/attach PST file that used POP3 Using Outlook.com accounts in Outlook 0
P Macro to attach a file in a shared Outlook draft folder Outlook VBA and Custom Forms 2
T Outlook 2016 mp3 attach "this file cannot be preview because there is no previewer installed for it" Using Outlook 1
K Outlook 2007 can't find the file I want to attach. Using Windows 7 Home Using Outlook 2
J Outlook 2010 shuts down and quickly restarts every time I try to attach a file, but otherwise works Using Outlook 2
N Outlook 2010, File Attachments, not being received by recipients, replaced with "winmail.dat" attach Using Outlook 35
T Outlook's button 'Attach File' does not work Outlook VBA and Custom Forms 7
S Re: Cannot attach a file to an Outlook 2007 template after installingOffice 2007 SP2 Outlook VBA and Custom Forms 3
A Order of Recent Items in Attach File List Using Outlook 5
M Same file "stuck" on top of file list in "Attach File" drop down Using Outlook 4
T Attach Current File to a new Email Using Outlook 0
J Attach file and send email Using Outlook 10
N Cannot paste image in the body of an email, it will only attach it as a file. Using Outlook 4
W My document file cannot be accessed through the 'attach' icon. That file can only be attached by going to 'Documents' in master fi Using Outlook 2
R Unable to attach a large file to an email Using Outlook 1
L Attach file 'Look in' box only lists desktop and ftp Using Outlook 1
R 404 File Not Found when trying to attach a file Exchange Server Administration 4
Y I need to attach a PDF file of resume and cover letter Using Outlook 1
M Files in "Attach File" popup menu no longer alphabetical Using Outlook 3
B VBA to convert email to task, insert text of email in task notes, and attach copy of original email Outlook VBA and Custom Forms 4
M Macro to attach last 2 items downloaded Outlook VBA and Custom Forms 5
Diane Poremsky Use a Macro to Attach Files to New Messages New Slipstick.com Articles 0
C Outlook Custom Contact Form Attach Files in new notes fields Outlook VBA and Custom Forms 3
B Outlook will not attach using Send To Feature Using Outlook 0
C Business Con Mgr - E-mail blast, to have a 'CC' as well as attach a document.. Exchange Server Administration 0
L Can't attach files in Outlook 2007 Using Outlook 2
M Can't attach filesd to email as no symbol Using Outlook 7
T Unable to attach message as an attachment in outlook Using Outlook 5
D Outlook 2010 error - you are attempting to attach too many files at once Using Outlook 11
J Also happened to me, My Outlook 2007 stopped allowing me to attach ANY files. Using Outlook 1
M Is there a Step-by-Step how-to Disable and Attach a Mailbox to a Different User for Exhange 2010? Exchange Server Administration 4
J Problem using drag and drop to attach an html email in Outlook 2010 Using Outlook 18
R My Outlook 2007 stopped allowing me to attach ANY files. Using Outlook 2
J How to attach several image files withour exceeding max message size ? Using Outlook 3
R Cannot attach documents to email Using Outlook 3
E Change Default Directory when attach or save files of emails Using Outlook 1
C Now the problem I see is that I get an error when installing the Exchange 2010 SP 1. I attach a scre Exchange Server Administration 10
A cant send a message when i attach a word doc__ message oa8f2vfv031886 Using Outlook 1
E Attach Item within Body of a Message in Outlook 2007 Using Outlook 1
C Unable to attach document Using Outlook 1
D 1-click change between "attach" and "in-line" for reply and forward? Using Outlook 1
P 1. Outlook 2007 won't send messages.__ Also:__2. I can't attach a 2nd email address to Outlook 2007. Using Outlook 1
J outlook 2010 will not attach contacts to address book Using Outlook 2
T Can't send email using "Attach to email" from Acrobat (and other programs) to Outlook Using Outlook 1
G Unable to attach some files Using Outlook 1
L not able to attach links to outlook express emails Using Outlook 1
D the 'attach item' function is not resizable. why? Using Outlook 4
R attach documents into tasks__ Using Outlook 2
P Send and save to a specific folder, send without saving, reply with or without attachement, delete attach files Using Outlook 3
K Slow to attach excel files Using Outlook 10
Similar threads


















































Top