Removed Message.DelHeader
This commit is contained in:
parent
8790779bce
commit
17b3f1c73a
|
@ -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/).
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
## [2.0.0] - unreleased
|
## [2.0.0] - unreleased
|
||||||
|
|
||||||
- Mailer has been removed. It has been replaced by Dialer and Sender.
|
- Mailer has been removed. It has been replaced by Dialer and Sender.
|
||||||
- `File` type and the `CreateFile` and `OpenFile` functions have been removed.
|
- `File` type and the `CreateFile` and `OpenFile` functions have been removed.
|
||||||
- `Message.Attach` and `Message.Embed` have a new signature.
|
- `Message.Attach` and `Message.Embed` have a new signature.
|
||||||
- `Message.GetBodyWriter` has been removed. Use `Message.AddAlternativeWriter`
|
- `Message.GetBodyWriter` has been removed. Use `Message.AddAlternativeWriter`
|
||||||
instead.
|
instead.
|
||||||
- `Message.Export` has been removed. `Message.WriteTo` can be used 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
|
- 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
|
efficient: the same message is sent to all recipients instead of sending a
|
||||||
different email to each Bcc address.
|
different email to each Bcc address.
|
||||||
|
|
|
@ -193,11 +193,6 @@ func (m *Message) GetHeader(field string) []string {
|
||||||
return m.header[field]
|
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.
|
// SetBody sets the body of the message.
|
||||||
func (m *Message) SetBody(contentType, body string) {
|
func (m *Message) SetBody(contentType, body string) {
|
||||||
m.parts = []part{
|
m.parts = []part{
|
||||||
|
|
Loading…
Reference in New Issue