Linked Questions

1 vote
1 answer
15k views

I have the below Python code for sending an e-mail to my ID from the contents of file filename. I am trying to send the email with the text color-formatted. Any ideas please advise. def ps_Mail(): ...
user avatar
0 votes
1 answer
4k views

I have a code which uses win32com to open Outlook and send mail. I am trying to send a table which is in myexample.html file to a recipient. However when I use msg.body=open('myexample.html').read(...
Abul's user avatar
  • 195
0 votes
0 answers
281 views

I'm working on an app that sends out emails. I would like to be able to embed a custom generated table into the email body. However, it is rendered as text instead of parsed as html and displayed ...
Irtza.QC's user avatar
  • 1,146
-1 votes
1 answer
254 views

I'm fairly new to Python, trying to help automate a few things at work. I'm trying to use it to send out a message to a list of customers who have purchased with us in the past three months in an ...
davros18181's user avatar
154 votes
16 answers
427k views

I'm using the following method to send mail from Python using SMTP. Is it the right method to use or are there gotchas I'm missing ? from smtplib import SMTP import datetime debuglevel = 0 smtp = ...
Eli Bendersky's user avatar
39 votes
12 answers
93k views

I am writing a Bash shell script for Mac that sends an email notification by opening an automator application that sends email out with the default mail account in Mail.app. The automator application ...
ridogi's user avatar
  • 451
10 votes
2 answers
32k views

I want to send a pandas dataframe data as an HTML e-mail. Based on this post I could create an html with the dataframe. Code import pandas as pd import numpy as np HEADER = ''' <html> <...
Nilani Algiriyage's user avatar
6 votes
3 answers
25k views

I'm using information found on this post Sending Email Using Python So far the instructions were perfect. I have two additional things I'd like to do: Call a variable inside the body Add an ...
DDI Guy's user avatar
  • 105
2 votes
2 answers
9k views

I modified the example from the python docs, to test unicode in the email module. #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, division, unicode_literals, ...
guettli's user avatar
  • 27.6k
6 votes
1 answer
11k views

I have been reading a lot on the Internet to know how I can use Python to send emails using mailchimp API. It seems that the website is so complected and doesn't have any example. Please, could you ...
Marco Dinatsoli's user avatar
6 votes
1 answer
32k views

I have a script that runs at evening, it writes to a log file as it runs, and once the task completes, the text it writes is also emailed to me. Sometimes the task can fail, what I want to happen is ...
MapMan's user avatar
  • 668
7 votes
2 answers
18k views

def call_panda(): filename = 'C:\\file.csv' cols_to_use = ['col1', 'col2', 'col3', 'col4'] df = pd.read_csv(filename, nrows= 5,usecols=cols_to_use,index_col='col1') # ...
user3613102's user avatar
9 votes
2 answers
4k views

I am trying to write a python script to send an email that uses html formatting and involves a lot of non-breaking spaces. However, when I run it, some of the &nbsp strings are interrupted by ...
Program man's user avatar
7 votes
3 answers
1k views

I have a Python code that creates a report for a data frame from Reddit, and converts it to simple HTML and then email's it out. Below is the code: #Clean all the Dataframes test_clean = clean(...
Piyush Patil's user avatar
  • 14.6k
1 vote
3 answers
13k views

I am pretty new to Python and to the Jupyter Notebook. So any help will be appreciated. I was able to color specific cells of my DataFrame following this question. Now suppose that I have that table ...
user11861242's user avatar

15 30 50 per page