aboutsummaryrefslogtreecommitdiff
path: root/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'handlers.go')
-rw-r--r--handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/handlers.go b/handlers.go
index 21873a7..4615aa4 100644
--- a/handlers.go
+++ b/handlers.go
@@ -229,7 +229,7 @@ func handleCompose(ectx echo.Context) error {
if len(replyTo) > 0 {
msg.To = make([]string, len(replyTo))
for i, to := range replyTo {
- msg.To[i] = to.MailboxName + "@" + to.HostName
+ msg.To[i] = to.Address()
}
}
msg.Subject = inReplyTo.Envelope.Subject