https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
f

few-electrician-23747

04/13/2023, 10:48 AM
Hey Hi All!Please help me I am trying to setup the email server and even with creadentials I am getting the error
Failed to send email to
I have infact generated the credentials from https://ethereal.email/create and used the same package you guys have used that is nodemailer and I am able to. But when I deploy with same credentials then no luck. I am stuck here for 2 weeks and its pretty urgent for me
f

fresh-football-47124

04/13/2023, 11:21 AM
That message come from the invite resend
do you have any logs from the container?
f

few-electrician-23747

04/13/2023, 11:22 AM
nope. I have raised the bug aswell.
I am able to send mails with similar credentials through python/ go file
Copy code
package main

import (
	"fmt"
	"net/smtp"
)

func main() {

	// Sender data.
	username := "emilio.lehner@ethereal.email"
	password := "uCfXFjR1qdjzjgNyME"

	// Receiver email address.
	to := []string{
		"<http://XYZ.com|XYZ.com>",
	}

	// smtp server configuration.
	smtpHost := "smtp.ethereal.email"
	smtpPort := "587"

	// Message.
	message := []byte("This is a test email message.")

	// Authentication.
	auth := smtp.PlainAuth("", username, password, smtpHost)

	// Sending email.
	err := smtp.SendMail(smtpHost+":"+smtpPort, auth, username, to, message)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println("Email Sent Successfully!")
}
f

fresh-football-47124

04/13/2023, 11:23 AM
are you an admin on GrowthBook?
f

few-electrician-23747

04/13/2023, 11:24 AM
I have used this as well as nodemailer both
yes
f

fresh-football-47124

04/13/2023, 11:25 AM
are you sure there are no logs?
f

few-electrician-23747

04/13/2023, 11:26 AM
cannot see one
f

fresh-football-47124

04/13/2023, 11:27 AM
you’re running
Copy code
docker container logs [OPTIONS] <CONTAINER-NAME OR ID>
or similar?
f

few-electrician-23747

04/14/2023, 3:24 AM
yes
14 Views