set the SMTP user to the user's address

Fixes: https://todo.sr.ht/~jeremy/mal/2
This commit is contained in:
Jeremy Baxter 2024-06-05 11:12:10 +12:00
parent e9d4bbcdca
commit 4f3fe35990

3
mal.d
View file

@ -152,7 +152,8 @@ main(string[] args)
addr = "<" ~ addr ~ ">";
}
authUser = authUser ? authUser : fromStatus.localPart;
/* https://todo.sr.ht/~jeremy/mal/2 */
authUser = authUser ? authUser : fromAddr;
protocol = useSmtps ? "smtps" : "smtp";
serverAddr = serverAddr ? serverAddr : fromStatus.domainPart;
serverPort = serverPort ? serverPort : useSmtps ? "465" : "587";