-
Notifications
You must be signed in to change notification settings - Fork 623
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
Using Mailparse to parse rfc822 email address efficiently. #594
Conversation
Avoids: ``` PHP Notice: Array to string conversion ```
Use `print_r` instead of `echo` on Arrays.
Added Hello World test
…ithout-composer Updating docs and non-composer includes
…uld defer setting until later
…sts/{list_id}/recipients endpoint
resolves issue 399 containing list_id within payload of /contactdb/li…
Adding name for ReplyTo for issue #390
…them as required. This is based on Elmer's comments on PR #408
Optional mail constructor arguments now set those available
…ch parameters are required for sending all email
There was no way for the sections to get substituted without there being a substitution that calls them. This updated example fixes that.
Added Code Review to Contributing.md
Update README.md
Add Code Review to Contributing.md
update CONTRIBUTING.md
Updated PHP VERSION.
Omit PHP closing tag in use case sample
added helper for new recipient form
Implemented stats helper
Add support for commas and semicolons in email name and add test
Set attachment content from path
Arjan Keeman seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Hello @ssiddhantsharma, It looks like something went wrong with this PR. Could you please create a new fork, add your changes and submit a new PR? Thanks! With Best Regards, Elmer |
We appreciate the effort for this pull request but before that please make sure you read the contribution guidelines given above, then fill out the blanks below.
Please enter each Issue number you are resolving in your PR after one of the following words [Fixes, Closes, Resolves]. This will auto-link these issues and close them when this PR is merged!
e.g.
Fixes #497
Fixes
Checklist
Short description of what this PR does:
Sample Code (Tested on local machine) -
`<?php
// input: My Email some.test.email@somewhere.net
function get_name_from_rfc_email($rfc_email_string) {
// match all words and whitespace will be terminated by '<'
$name = preg_match('/[\w\s]+/', $rfc_email_string, $match);
$match[0] = trim($match[0]);
return $match[0];
}
// Output: My Email
function get_email_from_rfc_email($rfc_email_string) {
$EmailAddress = preg_match('/(?:<)(.+)(?:>)$ /', $rfc_email_string, $match);
// extract parts between ( )
return $match[1];
}
// Output: some.test.email@somewhere.net
?>`