ÿþ< ? x m l   v e r s i o n = " 1 . 0 "   e n c o d i n g = " u t f - 1 6 "   s t a n d a l o n e = " y e s " ? >  
 < ! - - C r e a t e d :   1 2 . 0 2 . 2 0 1 0   1 7 : 3 6 : 4 1 - - >  
 < ! - - A C T O p t i m u m V e r s i o n :   4 . 1 . 3 6 8 7 . 3 5 0 1 1 - - >  
 < A u t o D a t a I t e m s   A C T O p t i m u m V e r s i o n = " 4 . 1 . 3 6 8 7 . 3 5 0 1 1 "   C r e a t e d = " 1 2 . 0 2 . 2 0 1 0   1 7 : 3 6 : 4 1 " >  
         < A u t o D a t a C o n t r o l   C r e a t e d = " 1 2 . 0 2 . 2 0 1 0   1 7 : 3 6 : 4 1 "   C l a s s N a m e = " M e l v i l l e _ S c h e l l m a n n . A C T O p t i m u m 3 . C o n t r o l . A u t o D a t a 3 . A u t o D a t a 3 "   P r e f C l a s s V e r s i o n = " 1 . 0 "   A C T O p t i m u m V e r s i o n = " 4 . 1 . 3 6 8 7 . 3 5 0 1 1 " >  
                 < S o u r c e >             D i m   s D o c   A s   S t r i n g  
  
             s D o c   =   " l e t t e r . a d t "   ' N a m e   d e r   V o r l g e n d a t e i   i m   O r d n e r   " T e m p l a t e s "  
  
  
 	 '   F u n k t i o n :   A u s   e i n e r   V o r l a g e n - D a t e i   e i n e   E - M a i l   a n   d e n   a k t u e l l e n   K o n t a k t   e r s t e l l e n .  
 	 '   A u t o r :   R o b e r t   S c h e l l m a n n ,   r s @ m e l v i l l e - s c h e l l m a n n . d e  
 	 '   D a t u m :   1 2 . 0 2 . 2 0 1 0  
  
             D i m   s P a t h   A s   S t r i n g  
             D i m   s S c r i p t N a m e   A s   S t r i n g  
  
             s S c r i p t N a m e   =   " E r s t e l l e   E - M a i l   a u s   V o r l a g e "  
             s P a t h   =   A C T A p p . A c t F r a m e w o r k . S u p p l e m e n t a l F i l e M a n a g e r . W o r k g r o u p . P a t h   & a m p ;   " \ T e m p l a t e s "   & a m p ;   " \ "   & a m p ;   s D o c  
             I f   N o t   S y s t e m . I O . F i l e . E x i s t s ( s P a t h )   T h e n  
                   M s g B o x ( S t r i n g . F o r m a t ( " E s   k o n n t e   n i c h t   d i e   V o r l a g e   ' { 0 } '   g e f u n d e n   w e r d e n . " ,   s P a t h ) ,   M s g B o x S t y l e . I n f o r m a t i o n ,   s S c r i p t N a m e )  
                   G o T o   A b b r u c h  
             E n d   I f  
  
             '   R e f l e c t i o n - A u f r u f   v o n   A C T A p p . E x p l o r e r . C u s t o m C o m m a n d H e l p e r . C u s t o m C o m m a n d H a n d l e r ( s P a t h )  
  
             D i m   o M a i l M e r g e   A s   A c t . U I . C o r r e s p o n d e n c e . E m a i l M a i l M e r g e I n f o  
             D i m   o S e l e c t e d C o n t a c t   A s   A c t . F r a m e w o r k . C o n t a c t s . C o n t a c t L i s t  
             D i m   o W o r d P r o c e s s o r   A s   O b j e c t  
  
             D i m   o P r o p e r t y   A s   S y s t e m . R e f l e c t i o n . P r o p e r t y I n f o  
             D i m   s P r o p e r t y   A s   S t r i n g  
             D i m   o M e t h o d   A s   S y s t e m . R e f l e c t i o n . M e t h o d I n f o  
             D i m   s M e t h o d   A s   S t r i n g  
             D i m   a P a r a m e t e r ( 0 )   A s   O b j e c t  
  
             o M a i l M e r g e   =   N e w   A c t . U I . C o r r e s p o n d e n c e . E m a i l M a i l M e r g e I n f o  
             o S e l e c t e d C o n t a c t   =   A C T A p p . A c t F r a m e w o r k . C o n t a c t s . G e t C o n t a c t A s C o n t a c t L i s t ( A C T A p p . A p p l i c a t i o n S t a t e . C u r r e n t C o n t a c t )  
             I f   o S e l e c t e d C o n t a c t . C o u n t   =   0   T h e n  
                   M s g B o x ( " E s   i s t   k e i n   K o n t a k t   v o r h a n d e n . " ,   M s g B o x S t y l e . I n f o r m a t i o n ,   s S c r i p t N a m e )  
             E n d   I f  
             W i t h   o M a i l M e r g e  
                   ' N u r   a b   A C T !   1 1  
                   ' . E m a i l C r e a t e H i s t o r y T y p e   =   A c t . F r a m e w o r k . P r e f e r e n c e s . E n u m s . E m a i l C r e a t e H i s t o r y T y p e . A t t a c h C o n t a c t  
                   . R e t u r n R e c i e p t   =   F a l s e  
                   . M e r g e C o n t a c t s   =   o S e l e c t e d C o n t a c t  
                   . T e m p l a t e T y p e   =   A c t . U I . C o r r e s p o n d e n c e . P r e d e f i n e d W o r d P r o c e s s o r F i l e s T y p e s . O t h e r  
                   . M e r g e T e m p l a t e   =   s P a t h  
             E n d   W i t h  
  
             s P r o p e r t y   =   " C u r r e n t W o r d P r o c e s s o r M a n a g e r "  
             o P r o p e r t y   =   A C T A p p . U I C o r r e s p o n d e n c e M a n a g e r . G e t T y p e . G e t P r o p e r t y ( s P r o p e r t y ,   R e f l e c t i o n . B i n d i n g F l a g s . I n s t a n c e   O r   R e f l e c t i o n . B i n d i n g F l a g s . N o n P u b l i c )  
  
  
             I f   o P r o p e r t y   I s   N o t h i n g   T h e n  
                   M s g B o x ( S t r i n g . F o r m a t ( " D i e   E i g e n s c h a f t   ' { 0 } '   w u r d e   n i c h t   g e f u n d e n . " ,   s P r o p e r t y ) ,   M s g B o x S t y l e . E x c l a m a t i o n ,   s S c r i p t N a m e )  
                   G o T o   A b b r u c h  
             E n d   I f  
             o W o r d P r o c e s s o r   =   o P r o p e r t y . G e t V a l u e ( A C T A p p . U I C o r r e s p o n d e n c e M a n a g e r ,   N o t h i n g )  
  
             s M e t h o d   =   " C r e a t e M e r g e D o c u m e n t "  
             o M e t h o d   =   o W o r d P r o c e s s o r . G e t T y p e . G e t M e t h o d ( s M e t h o d ,   R e f l e c t i o n . B i n d i n g F l a g s . I n s t a n c e   O r   R e f l e c t i o n . B i n d i n g F l a g s . P u b l i c )  
             I f   o M e t h o d   I s   N o t h i n g   T h e n  
                   M s g B o x ( S t r i n g . F o r m a t ( " D i e   M e t h o d e   ' { 0 } '   w u r d e   n i c h t   g e f u n d e n . " ,   s M e t h o d ) ,   M s g B o x S t y l e . E x c l a m a t i o n ,   s S c r i p t N a m e )  
                   G o T o   A b b r u c h  
             E n d   I f  
             a P a r a m e t e r ( 0 )   =   o M a i l M e r g e  
             T r y  
                   o M e t h o d . I n v o k e ( o W o r d P r o c e s s o r ,   a P a r a m e t e r )  
             C a t c h   e x   A s   E x c e p t i o n  
                   M s g B o x ( S t r i n g . F o r m a t ( " E s   i s t   e i n   F e h l e r   b e i m   A u s f ü h r e n   d e r   M e t h o d e   ' { 0 } '   a u f g e t r e t e n . " ,   s M e t h o d )   & a m p ;   v b C r L f   & a m p ;   _  
                                 e x . M e s s a g e ,   M s g B o x S t y l e . E x c l a m a t i o n ,   s S c r i p t N a m e )  
             E n d   T r y  
 A b b r u c h :  
             R e t u r n   S t r i n g . E m p t y < / S o u r c e >  
                 < S o u r c e C o m m e n t > B e g r i f f :   { 0 } < / S o u r c e C o m m e n t >  
                 < T a r g e t F i e l d s > < / T a r g e t F i e l d s >  
                 < M s g T e x t > { 0 } < / M s g T e x t >  
                 < P i c k l i s t > < / P i c k l i s t >  
                 < M u l t i p l e > F a l s e < / M u l t i p l e >  
                 < E x p a n d a b l e > T r u e < / E x p a n d a b l e >  
                 < O v e r w r i t e A l w a y s > T r u e < / O v e r w r i t e A l w a y s >  
                 < C o p y T o C l i p b o a r d > F a l s e < / C o p y T o C l i p b o a r d >  
                 < S h o w M s g B o x > F a l s e < / S h o w M s g B o x >  
                 < P o s i t i o n M o d e > 1 < / P o s i t i o n M o d e >  
                 < F l a t S t y l e > S t a n d a r d < / F l a t S t y l e >  
                 < A u t o D a t a T e x t > E - M a i l   ( B r i e f ) < / A u t o D a t a T e x t >  
                 < T e x t A l i g n > M i d d l e C e n t e r < / T e x t A l i g n >  
                 < A u t o D a t a F o r m S i z e > 1 6 0 ;   2 7 0 < / A u t o D a t a F o r m S i z e >  
                 < T o o l t i p T e x t > < / T o o l t i p T e x t >  
                 < R e f r e s h L o a d e d V i e w s > F a l s e < / R e f r e s h L o a d e d V i e w s >  
         < / A u t o D a t a C o n t r o l >  
 < / A u t o D a t a I t e m s > 
