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.
-
Have ollama and python installed.
-
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
- Copy the
config.toml.example
and edit theconfig.toml
. NOTE: theEMAIL_TEMPLATE
is the email that you want the LLM to take inspiration from.
cp config.toml.example config.toml
vim config.toml
- Edit the
names.csv
vim names.csv # might I suggest just your name only to start out with.
- Run a test run. NOTE: use
DEBUG=True
beforepython main.py
to get DEBUG output in thelog/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
- Verify in your inbox
- If you like it, change the
names.csv
to the people you want to start emailing.
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.
If you would like to see the detailed LICENSE click here.
- Author: JJ Asghar [email protected]
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.