diff --git a/pkg/server/routes.go b/pkg/server/routes.go index d9b57a9..b3057b8 100644 --- a/pkg/server/routes.go +++ b/pkg/server/routes.go @@ -123,11 +123,39 @@ func (ctrl *Controller) CreateJob(ctx *gin.Context) { if ctrl.EmailService != nil { // TODO: make this a nicer html template? - message := fmt.Sprintf( - "Your job has been created!\n\nUse this link to edit the job posting", - SignedJobRoute(job, ctrl.Config), - ) - err = ctrl.EmailService.SendEmail(newJobInput.Email, "Job Created!", message) + subject := fmt.Sprintf("Job %s Created!", newJobInput.Position) + message := fmt.Sprintf(` + + + + + + Job Created + + + +
+

Job %s Created!

+

Congratulations! Your job posting for the position %s has been successfully created.

+

You can edit or update your job posting by clicking the link below:

+

Edit Job Posting

+ +
+ + + `, newJobInput.Position, newJobInput.Position, SignedJobRoute(job, ctrl.Config)) + + err = ctrl.EmailService.SendEmail(newJobInput.Email, subject, message) if err != nil { log.Println(fmt.Errorf("failed to sendEmail: %w", err)) // continuing...