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

Allow using a default stream context #19

Closed
wants to merge 1 commit into from
Closed

Allow using a default stream context #19

wants to merge 1 commit into from

Conversation

robbertkl
Copy link
Contributor

Unfortunately, fsockopen() does not respect stream_context_set_default(). However, replacing it with stream_socket_client() resolves this. It will allow setting custom stream context options, without any substantial changes to SmtpMailer.

Of course, it would be nice if a stream context could be passed to the SmtpMailer (see #8), but until that's implemented, this will accomplish pretty much the same thing.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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 this pull request may close these issues.

None yet

1 participant