| Author | 
         | 
         
      
        
         
         Paulo Moreno Newbie 
          
 
  Joined: 23 October 2006 Location: Brazil
 Online Status: Offline Posts: 3
          | 
        
         
          
           | Posted: 23 October 2006 at 9:26pm | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
 I found a problem    !!!
 
 If I send e-mail with body html format and file PDF attach, the body is sending blank
 
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Andrew AfterLogic Support 
          
 
  Joined: 28 April 2006 Location: United States
 Online Status: Offline Posts: 1189
          | 
        
         
          
           | Posted: 24 October 2006 at 4:47am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
The following code (C# syntax) sends the message with HTML and plain text bodies and attached PDF:
 
 
Code: 
   
    
    
      
       Smtp.LicenseKey = "Trial or permanent key";
 Smtp mailer = new Smtp();
 
 mailer.SmtpServers.Add("mail.domain.com", "jdoe", "secret");
 
 mailer.From.Email = "jdoe@domain.com";
 
 mailer.To.AsString = "\"Bill Smith, Jr.\" <bill.smith@company.com>";
 
 mailer.Subject = "Test";
 mailer.BodyHtmlText = "<html>This is HTML test.</html>";
 mailer.BodyPlainText = "This is PLAIN test.";
 
 mailer.AddAttachment(@"C:\test.pdf");
 
 mailer.Send(); | 
       
       | 
    
    | 
 
 
 
 The sent message has non-blank HTML and plain text bodies.
 
 Could you please provide us with the part of your code where you're composing the message with attached PDF and a sample of sent mail with blank body? You can send this information to: support@afterlogic.com.
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   |