We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eae4ed9 commit f6a21eeCopy full SHA for f6a21ee
src/email_client.rs
@@ -46,7 +46,7 @@ impl EmailClient {
46
html_content: &str,
47
text_content: &str,
48
) -> Result<(), reqwest::Error> {
49
- let url = self.base_url.join("/email");
+ let url = self.base_url.join("/email").expect("Invalid email URL.");
50
let request_body = SendEmailRequest {
51
from: self.sender.as_ref(),
52
to: recipient.as_ref(),
@@ -56,7 +56,7 @@ impl EmailClient {
56
};
57
let _builder = self
58
.http_client
59
- .post(url.unwrap())
+ .post(url)
60
.header(
61
"X-Postmark-Server-Token",
62
self.authorization_token.expose_secret(),
0 commit comments