String repo = P_TXT_REPOSITORY_URL

job("mail_p_txt") {
    scm {
        git repo
    }
    triggers {
        scm 'H H * * *'
    }
    steps {
        shell 'cat p.txt'
    }
    publishers {
        extendedEmail {
            // TODO: Set global sender address
            recipientList('8.slashes@gmail.com')
            // defaultSubject('$JOB_NAME')
            defaultContent('''$DEFAULT_CONTENT

$BUILD_LOG''')
            contentType('text/plain; charset=UTF-8')
            triggers {
                always {
                    sendTo {
                        recipientList()
                    }
                }
            }
        }
    }}

String repo = P_TXT_REPOSITORY_URL

job("mail_p_txt") {
    scm {
        git repo
    }
    triggers {
        scm 'H H * * *'
    }
    steps {
        shell 'cat p.txt'
    }
    publishers {
        extendedEmail {
            // TODO: Set global sender address
            recipientList('8.slashes@gmail.com')
            // defaultSubject('$JOB_NAME')
            defaultContent('''$DEFAULT_CONTENT

$BUILD_LOG''')
            contentType('text/plain')
            triggers {
                always {
                    sendTo {
                        recipientList()
                    }
                }
            }
        }
    }}

Revert "Add encoding to content_type"
Revert "Add encoding to content_type"

This reverts commit 7b6b5a40347bea8756d1d8a1ec83673d2fef2a37.
