Skip to content

Commit d620234

Browse files
committed
Update email creation as API has changed
1 parent 6d33794 commit d620234

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

email.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ func (c *UserContext) CreateEmailAccount(emailAccount EmailAccount) error {
3232
body.Set("quota", cast.ToString(emailAccount.DiskQuota))
3333
body.Set("limit", cast.ToString(emailAccount.SendQuota))
3434

35-
if _, err := c.makeRequestOld(http.MethodPost, "API_POP?action=create", body, &response); err != nil {
35+
if _, err := c.makeRequestOld(http.MethodPost, "API_EMAIL_POP?action=create", body, &response); err != nil {
3636
return err
3737
}
3838

39-
if response.Success != "Email account created" {
39+
if response.Success != "Account created" {
4040
return fmt.Errorf("failed to create email account: %v", response.Result)
4141
}
4242

0 commit comments

Comments
 (0)