Heenan, Lambert
Lambert.Heenan at AIG.com
Mon Dec 8 11:14:20 CST 2003
I don't see anything wrong with your example code. For each file you need to attach you call the Mail Item's Add method, just as you indicate. Are you getting an error message? If so, what? Lambert > -----Original Message----- > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] > Sent: Monday, December 08, 2003 12:04 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] 2 email attachments > > Hey Group, > Daoes anyone know how to make 2 attachments on a single message ? > > Set objM = objO.CreateItem(olMailItem) > With objM > .To = "Michael at xx.com" > .CC = "Rebecca at xx.com" > .Subject = "HED " & dtSdate > .Attachments.Add sJAdir & "HED" & dtEdate & "-Term" & ".xls" > '.Attachments.Add sJAdir & "HED" & dtEdate & "-Hire" & ".xls" > .Send > > End With > Set objM = Nothing > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com