prince1604 commited on
Commit
b042fc1
·
1 Parent(s): a9e6e1f

Improved email templates with conditional business vs career logic

Browse files
Files changed (1) hide show
  1. email_automation.py +37 -20
email_automation.py CHANGED
@@ -50,37 +50,55 @@ class EmailAutomation:
50
 
51
  def get_email_template(self, row):
52
  """
53
- Generate dynamic email content based on placeholders in attributes.
54
- This allows the script to be used for ANY purpose (Jobs, Marketing, etc.)
55
  """
56
- # Default templates (can be overridden by user)
57
- subject_template = f"Application for Cybersecurity Position - Prince Kothiya | BSc IT 2026"
58
 
59
- body_template = f"""Dear Hiring Manager,
 
 
60
 
61
- I am writing to express my strong interest in the Cybersecurity position at {{CompanyName}}. As a final-year BSc Information Technology student at Harivandana College with hands-on experience in penetration testing, secure web development, and Laravel application security, I am eager to contribute to your security team.
62
 
63
- KEY HIGHLIGHTS OF MY PROFILE:
64
- • Developed comprehensive Kali Linux-based security toolkit with 50+ integrated penetration testing tools
65
- • Created secure Laravel web applications implementing JWT authentication, input validation, and SQL injection prevention
66
- • Built automated OSINT tool for reconnaissance across 15+ data sources
67
- • Currently working as Junior Laravel Developer Intern at Eminent Coders, focusing on secure web development
68
- • Proficient in: Penetration Testing, Web Application Security, Python, PHP/Laravel, Bash Scripting, Kali Linux Tools
69
- • Completed practical cybersecurity simulations with Deloitte Australia and Tata
70
 
71
- I am particularly drawn to {{CompanyName}}'s work in cybersecurity. My combination of development experience and security testing skills positions me to contribute effectively to your security initiatives.
 
 
 
72
 
73
- I have attached my resume for your review and would welcome the opportunity to discuss how my background in security testing and secure application development can benefit {{CompanyName}}.
74
-
75
- Thank you for considering my application. I look forward to hearing from you.
76
 
77
  Best regards,
78
  Prince Kothiya
79
 
80
  [EMAIL_ADDRESS]
81
  LinkedIn: linkedin.com/in/prince-kothiya-331073287
82
- GitHub: github.com/prince1604
83
- Rajkot, Gujarat, India"""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
 
85
  # Perform Dynamic Replacement for ANY column found in the Excel
86
  subject = subject_template
@@ -89,7 +107,6 @@ Rajkot, Gujarat, India"""
89
  for col in self.df.columns:
90
  if pd.notna(row[col]):
91
  val = str(row[col])
92
- # Replace {ColumnName} with the actual value from the row
93
  placeholder = f"{{{col}}}"
94
  subject = subject.replace(placeholder, val)
95
  body = body.replace(placeholder, val)
 
50
 
51
  def get_email_template(self, row):
52
  """
53
+ Generate dynamic email content based on placeholders.
54
+ Now supports multiple 'Intent' types if specified in the Excel.
55
  """
56
+ # Determine the type of email (defaults to Job Application)
57
+ intent = str(row.get('Intent', 'Career')).lower()
58
 
59
+ if 'business' in intent or 'marketing' in intent:
60
+ subject_template = "Collaboration Opportunity: Security-First Web Solutions | Prince Kothiya"
61
+ body_template = """Hi {ContactPerson},
62
 
63
+ I hope you're having a productive week.
64
 
65
+ I'm reaching out to {CompanyName} because of your impressive portfolio in digital innovation. As a Laravel specialized developer with a heavy focus on Cybersecurity, I help businesses build applications that aren't just functional, but iron-clad against modern threats.
 
 
 
 
 
 
66
 
67
+ HOW I CAN HELP {CompanyName}:
68
+ • Secure Laravel Architecture: Implementing high-level JWT, OAuth2, and Middleware security.
69
+ • Vulnerability Assessment: Proactive penetration testing during the development phase.
70
+ • Automated Recon: Using custom-built OSINT tools to identify potential data leakages.
71
 
72
+ I've attached a brief overview of my security-first development approach. I'd love to jump on a 5-minute call to see if my security skillset can add value to your upcoming projects.
 
 
73
 
74
  Best regards,
75
  Prince Kothiya
76
 
77
  [EMAIL_ADDRESS]
78
  LinkedIn: linkedin.com/in/prince-kothiya-331073287
79
+ GitHub: github.com/prince1604"""
80
+
81
+ else:
82
+ # Default Professional Job Application Template
83
+ subject_template = "Inquiry: Cybersecurity & Secure Web Development | Prince Kothiya"
84
+ body_template = """Dear Hiring Team at {CompanyName},
85
+
86
+ I am writing to express my interest in joining your technical team. As a Final-Year BSc IT student and current Laravel Intern, I specialize in the intersection of High-Performance Web Development and Cybersecurity.
87
+
88
+ WHY MY SKILLSET ALIGNS WITH {CompanyName}:
89
+ • Security-Driven Development: Proficient in building Laravel apps with SQLi, XSS, and CSRF protection at the core.
90
+ • Practical Pentesting: Hands-on experience with Kali Linux toolkits and automated security auditing.
91
+ • Continuous Learning: Interning at Eminent Coders and completing security simulations with Deloitte and Tata.
92
+
93
+ I've attached my resume for your consideration. I am eager to bring my proactive security mindset to {CompanyName} and contribute to your team.
94
+
95
+ Thank you for your time and I look forward to your response.
96
+
97
+ Best regards,
98
+ Prince Kothiya
99
+ [EMAIL_ADDRESS]
100
+ LinkedIn: linkedin.com/in/prince-kothiya-331073287
101
+ GitHub: github.com/prince1604"""
102
 
103
  # Perform Dynamic Replacement for ANY column found in the Excel
104
  subject = subject_template
 
107
  for col in self.df.columns:
108
  if pd.notna(row[col]):
109
  val = str(row[col])
 
110
  placeholder = f"{{{col}}}"
111
  subject = subject.replace(placeholder, val)
112
  body = body.replace(placeholder, val)