22 lines
		
	
	
		
			449 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			449 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Text;
 | |
| 
 | |
| namespace LBOutlookLibrary
 | |
| {
 | |
| 	public partial class LBApplicationClass
 | |
| 	{
 | |
| 		public LBMailItemClass CreateMailItem()
 | |
| 		{
 | |
| 			return new LBMailItemClass(CreateItem(LBOlItemType.olMailItem));
 | |
| 		}
 | |
| 	}
 | |
| 	public partial class LBMailItemClass
 | |
| 	{
 | |
| 		public void AddAttachment(string filename)
 | |
| 		{
 | |
| 			Attachments.Add(filename, LBOlAttachmentType.olByValue, Type.Missing, Type.Missing);
 | |
| 		}
 | |
| 	}
 | |
| }
 | 
