Re: [go-nuts] email body not showing up

2019-03-21 Thread Martin Tournoij
On Thu, 21 Mar 2019 11:56:21 +0530 pradam wrote: > I have implement below code, but body not showing up, so whats wrong > with the code? > > [..] > > _, err = fmt.Fprintf(wc, "This is the email body") > if err != nil { > log.Fatal(err) > } > > [..] You are not sending any header fields; an e

Re: [go-nuts] email body not showing up

2019-03-21 Thread Marvin Renich
* pradam [190321 02:27]: > I have implement below code, but body not showing up, so whats wrong > with the code? IWFM. I only changed the server, sender email and recipient email, and the mail was delivered (without a Subject) with the correct body. You didn't get any errors? You say the body

[go-nuts] email body not showing up

2019-03-20 Thread pradam
I have implement below code, but body not showing up, so whats wrong with the code? // Connect to the remote SMTP server. c, err := smtp.Dial("mail.example.com:25") if err != nil { log.Fatal(err) } // Set the sender and recipient first if err := c.Mail("sen...@example.org"); err != nil { l