diff --git a/src/mail.rs b/src/mail.rs index 1596a42..d8558e4 100644 --- a/src/mail.rs +++ b/src/mail.rs @@ -22,8 +22,8 @@ fn send_mail(email: &Email) -> Result<(), String> { .build() .map_err(|err| format!("Invalid email contents: {}", err))?; - let mut mailer = FileTransport::new("mails"); - if let Err(error) = create_dir_all("mails") { + let mut mailer = FileTransport::new("/srv/mail"); + if let Err(error) = create_dir_all("/srv/mail") { println!("Could not create mail directory: {}", error); }; mailer.send(email.into()).map_err(|err| {