aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2024-05-26 14:48:20 +0100
committerMartin Ashby <martin@ashbysoft.com>2024-05-26 14:48:20 +0100
commit17790173f953d34fd0e2c9cd7c8e0c9bf9be4e5f (patch)
treea0f7831087ac28c9f3f3bad231ed93f2d2b7cd68 /src
parentc99cb339e87b28d937899f9561f106968772ee0c (diff)
downloadsmtp-zig-17790173f953d34fd0e2c9cd7c8e0c9bf9be4e5f.tar.gz
smtp-zig-17790173f953d34fd0e2c9cd7c8e0c9bf9be4e5f.tar.bz2
smtp-zig-17790173f953d34fd0e2c9cd7c8e0c9bf9be4e5f.tar.xz
smtp-zig-17790173f953d34fd0e2c9cd7c8e0c9bf9be4e5f.zip
Changes for latest zig masterHEADmain
Diffstat (limited to 'src')
-rw-r--r--src/main.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig
index 03322b6..954d93e 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -341,8 +341,8 @@ test "send email" {
\\
\\This is a test message
;
- const user = std.os.getenv("SMTP_USERNAME").?;
- const pass = std.os.getenv("SMTP_PASSWORD").?;
+ const user = std.posix.getenv("SMTP_USERNAME").?;
+ const pass = std.posix.getenv("SMTP_PASSWORD").?;
var client = try Client.init(std.testing.allocator, "mail.mfashby.net:587", .{ .user = user, .pass = pass });
defer client.deinit();
try client.send_mail("martin@mfashby.net", &[_][]const u8{"martin@mfashby.net"}, mail);