Skip to content

Sending mail doesn't work from v0.7.1 #504

@lunny

Description

@lunny

Description

From go-gitea/gitea#35794.

Take a look at v0.7.0...v0.7.1 , It seems

-if useFullAddr {
-		return from[0].String(), nil
+
+	addr := from[0]
+	if !useFullAddr {
+		addr.Name = ""
	}
-	return from[0].Address, nil
+	return addr.String(), nil

The problem maybe caused by
addr.Name = "" && addr.String() is not equal to addr.Address.

failed to issue MAIL command: 555 5.5.2 Syntax error, cannot decode response. For more information, go to 5.5.2 https://support.google.com/a/answer/3221692 and review RFC 5321 5.5.2 specifications. 4fb4d7f45d1cf-64068f74a56sm1990428a12.15 - gsmtp

To Reproduce

Using v0.7.0 version as dependency of Gitea, sending test email from admin ui. It works.
Using v0.7.1 or v0.7.2 version as dependency of Gitea, sending test email from admin ui. It doesn't work.

Expected behaviour

It should work like before.

Screenshots

No response

Attempted Fixes

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions