mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	server: add content-type header to the email
This commit is contained in:
		
							parent
							
								
									62104b417a
								
							
						
					
					
						commit
						28bbcd3667
					
				@ -21,7 +21,11 @@ async fn send_email(to: Mailbox, subject: &str, body: String, options: &MailOpti
 | 
			
		||||
        .reply_to(reply_to)
 | 
			
		||||
        .to(to)
 | 
			
		||||
        .subject(subject)
 | 
			
		||||
        .body(body)?;
 | 
			
		||||
        .singlepart(
 | 
			
		||||
            lettre::message::SinglePart::builder()
 | 
			
		||||
                .header(lettre::message::header::ContentType::TEXT_PLAIN)
 | 
			
		||||
                .body(body),
 | 
			
		||||
        )?;
 | 
			
		||||
    let creds = Credentials::new(
 | 
			
		||||
        options.user.clone(),
 | 
			
		||||
        options.password.unsecure().to_string(),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user