send mail with attachment

  • Thread starter Thread starter Dimitris Nikolakakis
  • Start date Start date
D

Dimitris Nikolakakis

I have two files in HDD.

In a form I want to put a button that will include the two files in an
email. I have a solution that takes only one attachement per email.
 
If you are using Automation to create and send your emails, you can use:

.Attachments.Add <filename>

There is code at the following link that provides more detail:

http://tinyurl.com/2knwj

Look for the section titled: "Creating and Sending Emails"
 
Dimitris Nikolakakis said:
I have two files in HDD.

In a form I want to put a button that will include the two files in an
email. I have a solution that takes only one attachement per email.

This simple code at my website shows how to send 2 attachments (although the
second one is commented out) Using this, you can send dozens of attachments,
if you like. Don't forget to set a reference to your version of Outlook:

http://www.datastrat.com/Code/OutlookEmail.txt
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 
Back
Top