File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ const zmtp = @import("zmtp");
4949const CertificateBundle = std.crypto.Certificate.Bundle;
5050const EmailClient = zmtp.EmailClient;
5151const Credentials = zmtp.authentication.Credentials;
52+ const Message = zmtp.message.Message;
5253
5354pub 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
You can’t perform that action at this time.
0 commit comments