From 17b3f1c73a3ded2a6feb95ce7181b9a65fb956a0 Mon Sep 17 00:00:00 2001 From: Alexandre Cesaro Date: Tue, 18 Aug 2015 22:18:38 +0200 Subject: [PATCH] Removed Message.DelHeader --- CHANGELOG.md | 2 ++ message.go | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 333d120..9a00487 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/message.go b/message.go index 2a16c56..2ccf4e1 100644 --- a/message.go +++ b/message.go @@ -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{