PC Review


Reply
Thread Tools Rate Thread

Re: Send E-mail with external attachment

 
 
TPratt
Guest
Posts: n/a
 
      1st Aug 2003
I'm using Access 97 but the method may be the same or at least very similar.
First, while in the module click on Tools, References and select, in my case
"Outlook 98 Type Library". Then...

Dim ol as Outlook.Application
Dim NewMessage as Object
Dim strPath as String

Set ol = New Outlook.application
Set NewMessage = ol.CreateItem(olMailItem)
strPath = "C:\My Documents\NameofFile.xls"

With NewMessage
.Subject = "Type the subject of your email here"
.Body = "Type message to be seen in body of email"
.Attachments.Add strPath, olByValue
.To = "Email address of person(s) to receive email"
.Send
End With


Works like a charm in Access 97.




"Mark Kovach" <(E-Mail Removed)> wrote in message
news:0c4801c35842$f2b30450$(E-Mail Removed)...
> I need to send an e-mail from a module, the problem is
> that I have to attach a file saved on the computer, not a
> report from the database.
>
> Is there a way to attach a file to an e-mail being sent
> from Access? I am using Access 2000.
>
> Thanks for your help.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving E-mail message and attachment to external drive John Microsoft Outlook Discussion 1 30th May 2008 01:08 PM
Send as attachment doesn't send e-mail Kim K Microsoft Word Document Management 1 31st Jan 2008 08:05 AM
send to mail recipient ( as Attachment) the email will not send. =?Utf-8?B?a2Zvc3RlckBwZmVpbmMuY29t?= Microsoft Word Document Management 4 30th May 2007 03:11 PM
If i have seperate external mail ID ? to send internal & external. =?Utf-8?B?SmFjb2IgR2Vvcmdl?= Microsoft Outlook Contacts 1 11th Sep 2005 06:05 PM
Send e-mail message with attachment with the default e-mail client? Robbie De Sutter Microsoft VB .NET 2 29th Oct 2003 08:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:49 PM.