@@ -18,11 +18,11 @@ import {
1818 TestStatus ,
1919} from '@prisma/client' ;
2020import * as postmark from 'postmark' ;
21- import { EmailService } from 'src/email/email.service' ;
2221import { PrismaService } from 'src/prisma.service' ;
2322
2423import * as disposableEmailBlocklist from './disposable-email-blocklist.json' ;
2524import { CreateInternDto } from './dto/createIntern.dto' ;
25+ import { EmailService } from 'src/email/email.service' ;
2626
2727@Injectable ( )
2828export class InternService {
@@ -242,13 +242,6 @@ export class InternService {
242242
243243 Link: https://bit.ly/primjer-inicijalnog` ;
244244
245- const trackImage = `<img src="https://internship.dump.hr/api/email/image?emailId=${ emailId } " width="1" height="1" style="display:none" />` ;
246-
247- const generalTextEnding = `Lijep pozdrav,
248-
249- DUMP Udruga mladih programera
250- dump.hr ${ trackImage } ` ;
251-
252245 let fullGeneralText = generalTextBody ;
253246
254247 if ( internToCreate . disciplines . includes ( Discipline . Marketing ) )
@@ -261,7 +254,43 @@ export class InternService {
261254 From : 'info@dump.hr' ,
262255 To : internToCreate . email ,
263256 Subject : 'Prijava na DUMP Internship' ,
264- HtmlBody : `${ fullGeneralText } \n\n${ generalTextEnding } ` ,
257+ HtmlBody : `
258+ <!DOCTYPE html>
259+ <html lang="hr">
260+ <head>
261+ <meta charset="UTF-8" />
262+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
263+ <title>DUMP Internship 2025</title>
264+ </head>
265+ <body style="margin:0; padding:0; background-color:#f4f4f4; font-family:Arial, sans-serif;">
266+ <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
267+ <tr>
268+ <td align="center" style="padding:20px 0;">
269+ <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="600" style="background:#ffffff; border-radius:8px; box-shadow:0 2px 6px rgba(0,0,0,0.1); overflow:hidden;">
270+ <tr>
271+ <td align="center" style="padding:20px;">
272+ <img src="https://internship.dump.hr/api/email/logo?emailId=${ emailId } " alt="DUMP Logo" width="180" />
273+ </td>
274+ </tr>
275+ <tr>
276+ <td style="padding:30px; color:#333333; font-size:16px; line-height:1.5;">
277+ ${ fullGeneralText . replace ( / \n / g, '<br/>' ) }
278+ </td>
279+ </tr>
280+ <tr>
281+ <td style="padding:20px; background:#f9f9f9; color:#555555; font-size:14px; line-height:1.4; text-align:center;">
282+ Lijep pozdrav,<br/><br/>
283+ <strong>DUMP Udruga mladih programera</strong><br/>
284+ <a href="https://dump.hr" style="color:#007BFF; text-decoration:none;">dump.hr</a>
285+ </td>
286+ </tr>
287+ </table>
288+ </td>
289+ </tr>
290+ </table>
291+ </body>
292+ </html>
293+ ` ,
265294 MessageStream : 'outbound' ,
266295 } ) ;
267296
0 commit comments