Hey Hi All!Please help me I am trying to setup the...
# ask-questions
f
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
That message come from the invite resend
do you have any logs from the container?
f
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
are you an admin on GrowthBook?
f
I have used this as well as nodemailer both
yes
f
are you sure there are no logs?
f
cannot see one
f
you’re running
Copy code
docker container logs [OPTIONS] <CONTAINER-NAME OR ID>
or similar?
f
yes