Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using format v3.1 and reply-To adress without a name #26

Open
ghusse opened this issue Feb 25, 2019 · 0 comments
Open

Error when using format v3.1 and reply-To adress without a name #26

ghusse opened this issue Feb 25, 2019 · 0 comments

Comments

@ghusse
Copy link

ghusse commented Feb 25, 2019

I tried to use the message format v3.1 because it allows a beter handling of cc & bcc addresses. However, when switching my code from v3 to v3.1, the mailjet API returns me an error:

{"ErrorIdentifier":"caac57f0-5f98-4d52-8c8b-f606caefd1ce","ErrorCode":"send-0018","StatusCode":400,"ErrorMessage":"Property value cannot be null.","ErrorRelatedTo":["ReplyTo.Name"]}

If I look at the code, it seems that MailjetSwiftMailer tests if the replyTo obtained from the message is an array or not, and does not test if the name is empty or not before setting it.

It also seems that swift always provides an array, even if the message contains only one address.

ghusse pushed a commit to ghusse/MailjetSwiftMailer that referenced this issue Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant