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

Can't manually set email headers #3

Open
mikecabana opened this issue May 18, 2021 · 4 comments · May be fixed by #4
Open

Can't manually set email headers #3

mikecabana opened this issue May 18, 2021 · 4 comments · May be fixed by #4

Comments

@mikecabana
Copy link

I'd like to be able to solve the following use case

$to = "johndoe@email.com";
$header = "FROM: John Doe<some@site.com>";  <------ ex: set the FROM value with a name
$message = "Your message here.";
$subject = "Your subject";

As of now it looks like the FROM defaults to WordPress

@mikecabana mikecabana linked a pull request May 18, 2021 that will close this issue
@ashhitch
Copy link
Owner

Thanks for the PR would be a nice feature to add extra headers! will have a test and get it merged in ASAP.

Just thinking for the from the field it just takes a string so could you not pass the name as part of that string?

Asg

@mikecabana
Copy link
Author

mikecabana commented May 18, 2021

I tried it with the mutation with the following variable

{
  ...
  "from": "<Peter Parker> info@mydomain.com",
  ...
}

and got sent: false :/

EDIT: just realized I used the angle brackets in the wrong place, you're right I could just pass it as part of that string.

Should be: Peter Parker <info@mydomain.ca>

@mikecabana
Copy link
Author

Quick follow up. Is this bug/PR still relevant? If not I can close her up.

@ashhitch
Copy link
Owner

Hi, it's still relevant just not had a chance to test it yet.. sorry for the delay

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

Successfully merging a pull request may close this issue.

2 participants