Skip to content

Commit da2488d

Browse files
committed
chore: update README.md
1 parent 0cf4242 commit da2488d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const zmtp = @import("zmtp");
4949
const CertificateBundle = std.crypto.Certificate.Bundle;
5050
const EmailClient = zmtp.EmailClient;
5151
const Credentials = zmtp.authentication.Credentials;
52+
const Message = zmtp.message.Message;
5253
5354
pub fn main() !void {
5455
var bundle: CertificateBundle = .{};
@@ -69,10 +70,10 @@ pub fn main() !void {
6970
.password = "bar",
7071
};
7172
72-
try client.sendEmailWithCredentials(.{
73-
.from = .{ .address = "fooo@exp.pt" },
73+
const message: Message = .{
74+
.from = .{ .address = "fooo@exp.com" },
7475
.to = &.{
75-
.{ .address = "fooo@exp.br" },
76+
.{ .address = "fooo@exp.com" },
7677
},
7778
.subject = "THIS IS A TEST 🥱",
7879
.body = .{
@@ -83,7 +84,9 @@ pub fn main() !void {
8384
},
8485
},
8586
},
86-
}, cred);
87+
};
88+
89+
try client.sendEmailWithCredentials(message, cred);
8790
}
8891
```
8992

0 commit comments

Comments
 (0)