Closed slavikm closed 8 years ago
@alexcesaro sorry about the noise with the 2 PRs. I did not see that my teammate already created a PR on the exact same issue.
Thanks, I commented the code.
Please also merge all your commits (I only want one commit at the end) and add an example in example_test.go
.
@alexcesaro Not sure how the examples are being used but see the last commit - squashed and added example.
Thank you! I slightly edited your commit to fix the example.
For your information, rules about naming examples can be found in the documentation of the testing package. And you can see the result in the Gomail documentation.
If the name of the attachment is different the the actual filename on disk, we should have an easy option to change it