<commit_before>kintone SendGrid plug-in
====

This plug-in enables kintone to send Emails through SendGrid.

## Usage
1. Make Email templates in SendGrid. You can use substitution tags in the templates.
2. Install this plug-in into your environment.
3. Add this plug-in into kintone apps that you want to use Email.
4. Set general settings in the SendGrid plug-in settings.

### API Keys
1. Create an API key on the SendGrid web portal.
2. Set the API key into the SendGrid plug-in settings.
  - The API key need the permissions:
    - mail.send
    - templates.read

### Mail settings
1. Enter the From address into the SendGrid plug-in settings.
2. Select the kintone field for the To. The To field should be [Text(single-line)] or the [Link(Type is E-mail address)] field which is prohibited duplicate values for the recipient address.

### Template settings
1. Click the Get a list of Templates button.
2. Select the default template name.

### Substitution tags settings (Optional)
1. Click the Add Substitution tag button.
2. Enter the substitution tag which you want to substitute in the email.
3. Select the kintone field for the substitution tag.<commit_msg>Refer to docs from README<commit_after>kintone SendGrid plug-in
====

This plug-in enables kintone to send Emails through SendGrid.

## Documentation

See [here](https://sendgridjp.github.io/kintone-sendgrid-plugin/) in Japanese.

## Usage
1. Make Email templates in SendGrid. You can use substitution tags in the templates.
2. Install this plug-in into your environment.
3. Add this plug-in into kintone apps that you want to send emails.
4. Set general settings in the SendGrid plug-in settings.

### API Keys
1. Create an API key on the SendGrid web portal.
2. Set the API key into the SendGrid plug-in settings.

### Mail settings
1. Enter the From address into the SendGrid plug-in settings.
2. Select the kintone field for the To. The To field should be [Text(single-line)] or the [Link(Type is E-mail address)] field which is prohibited duplicate values for the recipient address.

### Template settings
1. Click the Get a list of Templates button.
2. Select the default template name.

### Substitution tags settings (Optional)
1. Click the Add Substitution tag button.
2. Enter the substitution tag which you want to substitute in the email.
3. Select the kintone field for the substitution tag.
{'fraction_non_alphanumeric': 0.06748207507380852, 'fraction_numerical': 0.010965837199493884, 'mean_word_length': 3.880658436213992, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4566276', 'n_tokens_mistral': 655, 'n_tokens_neox': 636, 'n_words': 356}