diff --git a/src/email/mod.rs b/src/email/mod.rs index 7994a3f..27c2668 100644 --- a/src/email/mod.rs +++ b/src/email/mod.rs @@ -219,10 +219,10 @@ pub struct SimpleSendableEmail { impl SimpleSendableEmail { /// Returns a new email - pub fn new(from_address: &str, to_address: &str, message: &str) -> SimpleSendableEmail { + pub fn new(from_address: &str, to_address: Vec, message: &str) -> SimpleSendableEmail { SimpleSendableEmail { from: from_address.to_string(), - to: vec![to_address.to_string()], + to: to_address, message: message.to_string(), } }