try something like the following (UNTESTED) code:
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
from email.Message import Message
def attch_send(self):
msg = MIMEMultipart()
#msg.add_header("From", sender)
#msg.add_header("To", recv)
Hi Python Gurus,
I am trying to mail a txt file, then with another client I
get the email and extract the text file.
The email I send however, does not seem to turn out correctly.
The content dispositon header is there, but it seems to be in the wrong
place and my email
client the text file just