fix: connect EmailService to contact form handler
The contact form was logging submissions but never actually sending emails. This commit: - Adds EmailService field to CVHandler - Initializes EmailService in main.go with SMTP config - Calls SendContactForm in HandleContact handler - Updates all test files to pass nil for emailService parameter
This commit is contained in:
@@ -30,7 +30,7 @@ func TestPlainText(t *testing.T) {
|
||||
t.Fatalf("Failed to create template manager: %v", err)
|
||||
}
|
||||
|
||||
handler := NewCVHandler(tmplManager, "localhost:8080")
|
||||
handler := NewCVHandler(tmplManager, "localhost:8080", nil)
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
@@ -152,7 +152,7 @@ func TestPlainTextDownloadFilename(t *testing.T) {
|
||||
t.Fatalf("Failed to create template manager: %v", err)
|
||||
}
|
||||
|
||||
handler := NewCVHandler(tmplManager, "localhost:8080")
|
||||
handler := NewCVHandler(tmplManager, "localhost:8080", nil)
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
|
||||
Reference in New Issue
Block a user