[GH-ISSUE #364] unable to add SMTP servers: Cound not add server: php_network_getaddresses: getaddrinfo failed: Name or service not known #311

Closed
opened 2026-02-25 21:34:43 +03:00 by kerem · 7 comments
Owner

Originally created by @nekromoff on GitHub (Nov 20, 2019).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/364

Originally assigned to: @jasonmunro on GitHub.

💬 Question

Cound not add server: php_network_getaddresses: getaddrinfo failed: Name or service not known

Originally created by @nekromoff on GitHub (Nov 20, 2019). Original GitHub issue: https://github.com/cypht-org/cypht/issues/364 Originally assigned to: @jasonmunro on GitHub. ## 💬 Question <!-- Describe your Question in detail. Include screenshots and drawings if needed. --> Cound not add server: php_network_getaddresses: getaddrinfo failed: Name or service not known
kerem 2026-02-25 21:34:43 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nekromoff commented on GitHub (Nov 22, 2019):

imap and others work fine

<!-- gh-comment-id:557466199 --> @nekromoff commented on GitHub (Nov 22, 2019): imap and others work fine
Author
Owner

@nekromoff commented on GitHub (Nov 22, 2019):

Any ideas? I have now tried it with two different hostings and the same error, I am just unable to add any SMTP server (tried multiple, different settings, SSL, TLS, 465, 567, 25 etc.).

<!-- gh-comment-id:557575176 --> @nekromoff commented on GitHub (Nov 22, 2019): Any ideas? I have now tried it with two different hostings and the same error, I am just unable to add any SMTP server (tried multiple, different settings, SSL, TLS, 465, 567, 25 etc.).
Author
Owner

@jasonmunro commented on GitHub (Nov 22, 2019):

I'm unable to reproduce this so I'm not sure what is going on. It's the same process used to add an IMAP server (we use PHP's fsockopen() to attempt a network connection to the server + port). I just tested smtp.gmail.com port 465 with TLS and it worked without issue.

<!-- gh-comment-id:557580371 --> @jasonmunro commented on GitHub (Nov 22, 2019): I'm unable to reproduce this so I'm not sure what is going on. It's the same process used to add an IMAP server (we use PHP's fsockopen() to attempt a network connection to the server + port). I just tested smtp.gmail.com port 465 with TLS and it worked without issue.
Author
Owner

@nekromoff commented on GitHub (Nov 22, 2019):

I will put PHP in full error mode and report back.

On Fri, Nov 22, 2019 at 4:37 PM Jason Munro notifications@github.com
wrote:

I'm unable to reproduce this so I'm not sure what is going on. It's the
same process used to add an IMAP server (we use PHP's fsockopen() to
attempt a network connection to the server + port). I just tested
smtp.gmail.com port 465 with TLS and it worked without issue.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jasonmunro/cypht/issues/364?email_source=notifications&email_token=ACBHPTMXV7KNC2GL5PIBM3TQU74CRA5CNFSM4JPQYCD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE6AAUY#issuecomment-557580371,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACBHPTOWFU35LFK5PCACC3LQU74CRANCNFSM4JPQYCDQ
.

<!-- gh-comment-id:557581334 --> @nekromoff commented on GitHub (Nov 22, 2019): I will put PHP in full error mode and report back. On Fri, Nov 22, 2019 at 4:37 PM Jason Munro <notifications@github.com> wrote: > I'm unable to reproduce this so I'm not sure what is going on. It's the > same process used to add an IMAP server (we use PHP's fsockopen() to > attempt a network connection to the server + port). I just tested > smtp.gmail.com port 465 with TLS and it worked without issue. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/jasonmunro/cypht/issues/364?email_source=notifications&email_token=ACBHPTMXV7KNC2GL5PIBM3TQU74CRA5CNFSM4JPQYCD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE6AAUY#issuecomment-557580371>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ACBHPTOWFU35LFK5PCACC3LQU74CRANCNFSM4JPQYCDQ> > . >
Author
Owner

@jasonmunro commented on GitHub (Nov 22, 2019):

you may also want to remove the '@' character here:

https://github.com/jasonmunro/cypht/blob/master/modules/smtp/modules.php#L243

This stifles PHP warnings (which are likely the same as $errstr) but worth trying to see if it provides any additonal clues.

<!-- gh-comment-id:557581983 --> @jasonmunro commented on GitHub (Nov 22, 2019): you may also want to remove the '@' character here: https://github.com/jasonmunro/cypht/blob/master/modules/smtp/modules.php#L243 This stifles PHP warnings (which are likely the same as $errstr) but worth trying to see if it provides any additonal clues.
Author
Owner

@nekromoff commented on GitHub (Nov 29, 2019):

Must have been problem with some of the PHP modules, everything works after upgrade.

<!-- gh-comment-id:559719356 --> @nekromoff commented on GitHub (Nov 29, 2019): Must have been problem with some of the PHP modules, everything works after upgrade.
Author
Owner

@jasonmunro commented on GitHub (Feb 6, 2020):

Glad to hear you got this sorted. Thanks for the feedback and don't hesitate to let us know if you have other issues/questions/suggestions!

<!-- gh-comment-id:582818175 --> @jasonmunro commented on GitHub (Feb 6, 2020): Glad to hear you got this sorted. Thanks for the feedback and don't hesitate to let us know if you have other issues/questions/suggestions!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#311
No description provided.