PC Review


Reply
Thread Tools Rate Thread

Automating email generation with attachment included

 
 
Yann
Guest
Posts: n/a
 
      27th Nov 2003
Hello! I want to put a code behind a button on my form.
It must attach a report to an email (even better make the
report the body of the email) fill out the subject line
and send the email to an email address listed on the
form. I am using this code to generate the email:
Private Sub cmdEmail_Click()
Dim x
x = fHandleFile("mailto:" & Me!ContactEMail,
WIN_NORMAL)

I just don't know how to deal with the attachment and the
subjet line.

Thanks for your help!
 
Reply With Quote
 
 
 
 
Cheryl Fischer
Guest
Posts: n/a
 
      27th Nov 2003
You could use the SendObject method or action; it has arguments which allow
you to use code to specify the email address, subject and the name of the
Access report that you want to send, among others. See VBA help for further
details.

Otherwise, if you want to send a file which is not an Access object, you'll
need to look into Automation of Outlook. The following is a link with code
to create appointments, emails, and contacts - which can get you started:

http://msdn.microsoft.com/library/de...us/dnofftalk/h
tml/office071299.asp

hth,

--
Cheryl Fischer
Law/Sys Associates
Houston, TX

"Yann" <(E-Mail Removed)> wrote in message
news:0b1001c3b4f5$39691100$(E-Mail Removed)...
> Hello! I want to put a code behind a button on my form.
> It must attach a report to an email (even better make the
> report the body of the email) fill out the subject line
> and send the email to an email address listed on the
> form. I am using this code to generate the email:
> Private Sub cmdEmail_Click()
> Dim x
> x = fHandleFile("mailto:" & Me!ContactEMail,
> WIN_NORMAL)
>
> I just don't know how to deal with the attachment and the
> subjet line.
>
> 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
MS Access metadata repository generation query, matrix generationquery, table-generation query, array-generation query. Roy Roebuck Microsoft Access Database Table Design 1 20th Dec 2008 08:23 PM
Nvidia's Ageia Purchase - Why Ageia matters - Next Generation SonyPlayStation GPU - Next Generation PC GPUs - Next Generation Console GPU -Nvidia Inside - Nvidia Everywhere sprite scaler AMD 64 Bit 0 8th Feb 2008 02:43 AM
Nvidia's Ageia Purchase - Why Ageia matters - Next Generation SonyPlayStation GPU - Next Generation PC GPUs - Next Generation Console GPU -Nvidia Inside - Nvidia Everywhere sprite scaler ATI Video Cards 0 8th Feb 2008 02:43 AM
Nvidia's Ageia Purchase - Why Ageia matters - Next Generation SonyPlayStation GPU - Next Generation PC GPUs - Next Generation Console GPU -Nvidia Inside, Nvidia Everywhere sprite scaler Video Cards 0 8th Feb 2008 02:41 AM
Printing email showing that attachment was included in the email. =?Utf-8?B?am9keSBmcmF6aWVy?= Microsoft Outlook Discussion 0 19th Oct 2006 06:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:42 AM.