Removed Message.DelHeader

This commit is contained in:
Alexandre Cesaro 2015-08-18 22:18:38 +02:00
parent 8790779bce
commit 17b3f1c73a
2 changed files with 2 additions and 5 deletions

View File

@ -3,12 +3,14 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [2.0.0] - unreleased
- Mailer has been removed. It has been replaced by Dialer and Sender.
- `File` type and the `CreateFile` and `OpenFile` functions have been removed.
- `Message.Attach` and `Message.Embed` have a new signature.
- `Message.GetBodyWriter` has been removed. Use `Message.AddAlternativeWriter`
instead.
- `Message.Export` has been removed. `Message.WriteTo` can be used instead.
- `Message.DelHeader` has been removed.
- The `Bcc` header field is no longer sent. It is far more simpler and
efficient: the same message is sent to all recipients instead of sending a
different email to each Bcc address.

View File

@ -193,11 +193,6 @@ func (m *Message) GetHeader(field string) []string {
return m.header[field]
}
// DelHeader deletes a header field.
func (m *Message) DelHeader(field string) {
delete(m.header, field)
}
// SetBody sets the body of the message.
func (m *Message) SetBody(contentType, body string) {
m.parts = []part{