| Author | 
         | 
         
      
        
         
         Guests Guest Group 
          
 
  Joined: 10 November 2003
 Online Status: Online Posts: 262
          | 
        
         
          
           | Posted: 08 April 2005 at 7:07am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hello,
         I have downloaded Mailbee SMTP Component,and  using it for sending an html file as a message body in my c# code which is as follows;
 
 MailBee.SMTPClass oMailer = new MailBee.SMTPClass();  
 oMailer.ServerName = "mysmtpserver";
 oMailer.LicenseKey = "MBC520-626A12C272-B3ADB9DDAADBAFF11687684C944B935E";
 oMailer.FromAddr = "amit@abc.com";
 oMailer.ToAddr = "amit@xyz.com";
 oMailer.Subject = "Hello MailBee";
 oMailer.BodyFormat = 1;
 oMailer.ImportBodyText("c:/hello.htm",true,true);
 oMailer.Send(); 
 
 The above code sends the message containing an html file, But it never shows the images in that html message body.
 Please help me in this regards.
 
 Thank you,
 Amit
 
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Alex AfterLogic Support 
          
  
  Joined: 19 November 2003
 Online Status: Offline Posts: 2207
          | 
        
         
          
           | Posted: 08 April 2005 at 8:15am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
You must use backslash as hierarchy delimiter when specifying path to a file:
 
 
Code: 
   
    
    
      
       
 oMailer.ImportBodyText("c:\\hello.htm",true,true);
  | 
       
       | 
    
    | 
 
 
 
 Regards,
 Alex
 
 
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   |