gmail icon indicating copy to clipboard operation
gmail copied to clipboard

Cannot add html link to email body

Open Zero-Prime opened this issue 8 years ago • 3 comments

when trying to add a html link in the body of the email. It will not add the content in the body when sending

Zero-Prime avatar Nov 15 '16 23:11 Zero-Prime

Could you give an error message and a code sample? The Go Playground is handy for code samples.

SlyMarbo avatar Nov 15 '16 23:11 SlyMarbo

I do not have an error reported from it. The email body is just blank. However, if I switch the contents of demoName and link, then the link appears in the subject line and the body displays as it should. Here is a snippet of my code per the example:

demoName = "name of demo
link := "https://link-to-aws-file"
email := gmail.Compose(demoName, link)

Zero-Prime avatar Nov 15 '16 23:11 Zero-Prime

I'm afraid I can't work out why it's not working. My knowledge of SMTP is very limited; I just wrapped the stdlib package. Sorry I can't help

SlyMarbo avatar Nov 16 '16 00:11 SlyMarbo