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

Name of sender in From parameter #8

Open
cwilligv opened this issue May 11, 2023 · 2 comments
Open

Name of sender in From parameter #8

cwilligv opened this issue May 11, 2023 · 2 comments

Comments

@cwilligv
Copy link

cwilligv commented May 11, 2023

Hi,

I'm using your package for sending emails to a database of customers. I'd like to have the name of the sender (From parameter) appear in the customer's inbox but I can't seem to make it work. If I use only the sender's email address then it works fine.
This is what I've tried so far:

But I keep getting a 501 error from the smtp server. Am I missing something? or is it a problem on the SMTP server itself while handling the message through curl?

Thanks for your help

@olafmersmann
Copy link
Owner

If this is still an issue for you, could you provide a minimal self contained example? I don't see why the above shouldn't work.

@pat-s
Copy link

pat-s commented Feb 21, 2024

I can confirm the issue.

When using from = "Real Name <in@box.com>" then the verbose output is as follows

> MAIL FROM:<Real Name <in@box.com>

Note the unmatched < character.

By trial and error, I found out that the following works: from = Real Name in@box.com as it gets correctly translated into Real Name <in@box.com> behind the scenes somehow.

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

3 participants