gomail icon indicating copy to clipboard operation
gomail copied to clipboard

Hello BinodKafle

Open blizzardtrade opened this issue 5 years ago • 1 comments

I am a beginner in Goland and try to use your code. Without attachment code work perfectly, But when I try to use code for attachment from your post on Medium I have a panic error and do not understand how t fix it.

in this code _, err = GmailService.Users.Messages.Send("me", &message).Do() if err != nil { log.Printf("Error: %v !!!!!", err) } else { fmt.Println("Message sent!") } return true, nil

and response

panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x96e727]

blizzardtrade avatar Dec 07 '20 09:12 blizzardtrade

Thank you @blizzardtrade. I will look into it

BinodKafle avatar Mar 31 '21 14:03 BinodKafle