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

[Bug]: #1511

Open
2 of 3 tasks
hkechung opened this issue Dec 10, 2024 · 6 comments
Open
2 of 3 tasks

[Bug]: #1511

hkechung opened this issue Dec 10, 2024 · 6 comments
Assignees
Labels
bug Something isn't working up-for-grabs

Comments

@hkechung
Copy link

Issue Description

Issue Description
.env.prod in windows directory is not working for SMTP

SMTP_ENABLE=true
SMTP_HOST=172.16.xxx.xxx
SMTP_PORT=25
SMTP_USER_EMAIL=
SMTP_PASS=

Problem is, the SMTP_ENABLE=true but erorr when sending email with "Please setup email adapter."

Expected Behavior

Send email

Current Behavior

when sending email with "Please setup email adapter."

Steps to reproduce

reset your password

Screenshots of the issue(optional)

No response

Operating System [e.g. MacOS Sonoma 14.1, Windows 11]

windows 11

What browsers are you seeing the problem on?

No response

What version of OpenSign™ are you seeing this issue on? [e.g. 1.0.6]

2.6.0

What environment are you seeing the problem on?

Dev (localhost or vercel)

Please check the boxes that apply to this issue report.

  • I have searched the existing issues & discussions to make sure that this is not a duplicate.

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I have searched the existing issues & discussions to make sure that this is not a duplicate.
@andrew-opensignlabs
Copy link
Collaborator

andrew-opensignlabs commented Dec 10, 2024

Have you set the values for SMTP_USER_EMAIL & SMTP_PASS?

@hkechung
Copy link
Author

Have you set the values for SMTP_USER_EMAIL & SMTP_PASS?

I should assign an user and password for sending email ?
in C:\Users\xxxxx.env.prod ?

@hkechung
Copy link
Author

Just set a username and password... same result.

@hkechung
Copy link
Author

2024-12-10 15:21:07 OpenSign-container | HTTP 12/10/2024 7:21:07 AM 172.18.0.3 Returned 200 in 2 ms
2024-12-10 15:21:11 mongo-container | {"t":{"$date":"2024-12-10T07:21:11.004+00:00"},"s":"I", "c":"WTCHKPT", "id":22430, "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":{"ts_sec":1733815271,"ts_usec":4362,"thread":"1:0x7fb80a66c6c0","session_name":"WT_SESSION.checkpoint","category":"WT_VERB_CHECKPOINT_PROGRESS","category_id":7,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"saving checkpoint snapshot min: 10, snapshot max: 10 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 72"}}}
2024-12-10 15:21:29 OpenSignServer-container | new entry is insert in contracts_Document
2024-12-10 15:21:41 OpenSignServer-container | err in sendmailv3 Error: getaddrinfo ENOTFOUND smtp.yourhost.com
2024-12-10 15:21:41 OpenSignServer-container | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
2024-12-10 15:21:41 OpenSignServer-container | errno: -3008,
2024-12-10 15:21:41 OpenSignServer-container | code: 'EDNS',
2024-12-10 15:21:41 OpenSignServer-container | syscall: 'getaddrinfo',
2024-12-10 15:21:41 OpenSignServer-container | hostname: 'smtp.yourhost.com',
2024-12-10 15:21:41 OpenSignServer-container | command: 'CONN'
2024-12-10 15:21:41 OpenSignServer-container | }

@rishabjasrotia
Copy link
Contributor

Hello @hkechung

It seems to be issue with hostname you provided in .env

The error getaddrinfo ENOTFOUND smtp.yourhost.com typically indicates that the hostname smtp.yourhost.com could not be resolved to an IP address.

@hkechung
Copy link
Author

I set the SMTP_HOST=172.16.xxx.xxx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working up-for-grabs
Projects
None yet
Development

No branches or pull requests

3 participants