|
a |
|
b/assets/sendmail_template.txt |
|
|
1 |
To: $email |
|
|
2 |
Subject: $subject |
|
|
3 |
Mime-Version: 1.0 |
|
|
4 |
Content-Type: multipart/related;boundary="nfcoremimeboundary" |
|
|
5 |
|
|
|
6 |
--nfcoremimeboundary |
|
|
7 |
Content-Type: text/html; charset=utf-8 |
|
|
8 |
|
|
|
9 |
$email_html |
|
|
10 |
|
|
|
11 |
--nfcoremimeboundary |
|
|
12 |
Content-Type: image/png;name="nf-core-deepmodeloptim_logo.png" |
|
|
13 |
Content-Transfer-Encoding: base64 |
|
|
14 |
Content-ID: <nfcorepipelinelogo> |
|
|
15 |
Content-Disposition: inline; filename="nf-core-deepmodeloptim_logo_light.png" |
|
|
16 |
|
|
|
17 |
<% out << new File("$projectDir/assets/nf-core-deepmodeloptim_logo_light.png"). |
|
|
18 |
bytes. |
|
|
19 |
encodeBase64(). |
|
|
20 |
toString(). |
|
|
21 |
tokenize( '\n' )*. |
|
|
22 |
toList()*. |
|
|
23 |
collate( 76 )*. |
|
|
24 |
collect { it.join() }. |
|
|
25 |
flatten(). |
|
|
26 |
join( '\n' ) %> |
|
|
27 |
|
|
|
28 |
<% |
|
|
29 |
%> |
|
|
30 |
|
|
|
31 |
--nfcoremimeboundary-- |