Dave Eyley
10-31-2008, 12:10 AM
Hi,
Is it possible to browse and attach pictures to an email generated from Access XP VB?
I already produce the emails but would like the the attachment option.
Dave
ByteMyzer
10-31-2008, 12:14 AM
That depends on the method you are using to generate the Emails. Can you post the code here for reference?
Dave Eyley
10-31-2008, 01:42 AM
Hi ByteMyzer,
I use The DoCmd.SendObject command:
DoCmd.SendObject , , , strEmail, , , "Security Report " & Forms!IncidentView!IncNo & ":" & Forms!IncidentView!LogReport, Messagestr, False
strEmail is the recipient
IncNo & Forms!IncidentView!LogReport forms the Email subject
Messagestr is constructed from the records with added text.
Thanks
ByteMyzer
10-31-2008, 02:57 AM
Only if you set the EditMessage option to True:
DoCmd.SendObject , , , _
strEmail, , , "Security Report " & Forms!IncidentView!IncNo _
& ":" & Forms!IncidentView!LogReport, Messagestr, True
Then you can browse and attach pictures to the Email.
Dave Eyley
10-31-2008, 04:48 AM
Hi ByteMyzer,
So if the Editmessage option is true the email opens for editing...
I'll try that
Thanks very much for the help
Dave
Dave Eyley
11-04-2008, 01:14 AM
Hi ByteMyzer,
Worked fine... thanks for the prompt response - much appreciated
Dave
pbaldy
11-04-2008, 07:42 AM
If you want to automate it, you can attach other files using Outlook Automation instead of SendObject. Searching should turn up the code.