Skip to content

Html emails#2514

Closed
azogue wants to merge 2 commits into
home-assistant:nextfrom
azogue:html-emails
Closed

Html emails#2514
azogue wants to merge 2 commits into
home-assistant:nextfrom
azogue:html-emails

Conversation

@azogue
Copy link
Copy Markdown
Member

@azogue azogue commented Apr 26, 2017

Description:

  • Add the ability of sending rich html emails, not only text emails with
    attached images.
  • Customize the product_name to be included as sender in emails.

Pull request in home-assistant (if applicable): home-assistant/core#7313

@mention-bot
Copy link
Copy Markdown

@azogue, thanks for your PR! By analyzing the history of the files in this pull request, we identified @fabaff, @balloob and @icovada to be potential reviewers.

@Landrash
Copy link
Copy Markdown
Contributor

@azogue Which PR are the current parent PR?

@Landrash Landrash added Invalid new-feature This PR adds documentation for a new Home Assistant feature to an existing integration labels Apr 27, 2017
Copy link
Copy Markdown
Contributor

@Landrash Landrash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A minor edit in the email one and please separate the telegram changes out to it's own since I'm assuming they are not related to the same parent pr?


The optional `html` field makes a custom text/HTML multi-part message, allowing total freedom for sending rich html emails. In them, if you need to attach images, you can pass both arguments (`html` and `images`), the attachments will be joined with the basename of the images, so they can be included in the html page with `src="cid:image_name.ext"`.

```yaml
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add ` # Example configuration.yaml entry``in the top of this example.


- You need a [Telegram bot](https://core.telegram.org/bots). Please follow those [instructions](https://core.telegram.org/bots#6-botfather) to create one and get the token for your bot. Keep in mind that bots are not allowed to contact users. You need to make the first contact with your user. Meaning that you need to send a message to the bot from your user.
- The `chat_id` of an user.
- The `chat_id` of an user, or a list of `user_id`s for sending messages to multiple users.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Separate changes to telegram out to it's own PR.

@azogue
Copy link
Copy Markdown
Member Author

azogue commented Apr 27, 2017

I'm closing this PR and I will do it again without the telegram changes, sorry

@azogue azogue closed this Apr 27, 2017
@azogue azogue deleted the html-emails branch April 27, 2017 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Invalid new-feature This PR adds documentation for a new Home Assistant feature to an existing integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants