Skip to content

jerdog/ai-auto-emailer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ai-auto-emailer

Scope

This is an example helper email to send conference sponsorship emails to prospective sponsors for an event. This can be edited for your event easily with some changes around the HTML email and the "template email."

This is designed to help community driven events to ask for money from companies, this will save hours of work for community volunteers.

Configuration and setup

PreSteps

  1. Have ollama and python installed.

  2. Clone and set up the working space.

git clone https://github.com/jjasghar/ai-auto-emailer.git
cd ai-auto-emailer
python3.11 -m venv venv
pip install -r requirements.txt
  1. Copy the config.toml.example and edit the config.toml. NOTE: the EMAIL_TEMPLATE is the email that you want the LLM to take inspiration from.
cp config.toml.example config.toml
vim config.toml
  1. Edit the names.csv
vim names.csv # might I suggest just your name only to start out with.
  1. Run a test run. NOTE: use DEBUG=True before python main.py to get DEBUG output in the log/main_logging.log.
python main.py
SMTP password: super_secret_p@ssw0rd!
>>>> email sent to [email protected] <<<<<
>>>> email sent to [email protected] <<<<<
>>>> email sent to [email protected] <<<<<
This took 0:01:35.220344 to run
  1. Verify in your inbox
  2. If you like it, change the names.csv to the people you want to start emailing.

Using Gmail as your SMTP server

Set the following settings for Gmail to work.

SMTP_SERVER="smtp.gmail.com"
SMTP_PORT=465
SMTP_SENDER_EMAIL="[email protected]"

The password for SMTP_PASSWORD will need to be your Gmail password, but if you have "Application Password" you'll need to create a password for this application.

License & Authors

If you would like to see the detailed LICENSE click here.

Copyright:: 2025- IBM, Inc

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Leverage an LLM with ollama to write solicitation emails for conference sponsorships.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jinja 66.0%
  • Python 34.0%