Switch emails to pug templates and provide richer html/text-only versions
This commit is contained in:
		
							parent
							
								
									91b8e675e2
								
							
						
					
					
						commit
						df4c603dea
					
				
					 30 changed files with 1682 additions and 274 deletions
				
			
		
							
								
								
									
										9
									
								
								server/lib/emails/contact-form/html.pug
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								server/lib/emails/contact-form/html.pug
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
extends ../common/greetings
 | 
			
		||||
 | 
			
		||||
block title
 | 
			
		||||
  | Someone just used the contact form
 | 
			
		||||
 | 
			
		||||
block content
 | 
			
		||||
  p #{fromName} sent you a message via the contact form on #[a(href=WEBSERVER.URL) #{WEBSERVER.HOST}]:
 | 
			
		||||
  blockquote(style='white-space: pre-wrap') #{body}
 | 
			
		||||
  p You can contact them at #[a(href=`mailto:${fromEmail}`) #{fromEmail}], or simply reply to this email to get in touch.
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue