Skip to content

Commit aeabb1a

Browse files
jshapaolobarbolini
andauthored
Replace builder with relay.
Co-authored-by: Paolo Barbolini <[email protected]>
1 parent 696be4a commit aeabb1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/email.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ fn send_email(recipient: &str, subject: &str, body: &str) -> AppResult<()> {
108108

109109
match mailgun_config {
110110
Some(mailgun_config) => {
111-
let transport = SmtpTransport::builder(&mailgun_config.smtp_server)
111+
let transport = SmtpTransport::relay(&mailgun_config.smtp_server).unwrap()
112112
.credentials(Credentials::new(
113113
mailgun_config.smtp_login,
114114
mailgun_config.smtp_password,

0 commit comments

Comments
 (0)