title: how to send tab separated file though attachment with file name as abc.txt
body: <pre><code>from email.mime.text import MIMEText
  from email.mime.multipart import MIMEMultipart
  from email.mime.application import MIMEApplication
  import boto3
  
  msg = MIMEMultipart()
  new_body = &quot; &quot;
  text_part = MIMEText(new_body, _subtype=&quot;html&quot;)
  msg.attach(text_part)
  ACCESS_KEY =dbutils.secrets.get('XXX','XXXX')
  SECRET_KEY = dbutils.secrets.get('XXXXX','XXXXX') 
  
  filename15 =&quot;file.txt&quot;
  
  list_of_emails_to =['xxxx@xxxx.com']
  msg['To'] = ', '.join(list_of_emails_to)
  msg[&quot;From&quot;] = 'xxx@xxx.com'
  msg[&quot;Subject&quot;] = &quot;TEST new &quot;
  key15=&quot;S3_dir/xxxxx.txt&quot; 
  s3_object1 = boto3.client('s3', 'us-east-1')
  object15 = s3_object1.get_object(Bucket= bucket_name, Key=key15)
  body15 = object15['Body'].read()#.decode(&quot;utf-8&quot;)
  bodypart15 = MIMEApplication(body15, filename15)
  bodypart15.add_header(&quot;Content-Disposition&quot;, 'attachment', filename=filename15)
  msg.attach(bodypart15)
  ses_aws_client = boto3.client('ses', 'us-east-1',aws_access_key_id=ACCESS_KEY,aws_secret_access_key=SECRET_KEY)
  ses_aws_client.send_raw_email(Source=msg[&quot;From&quot;],Destinations=list_of_emails,RawMessage={&quot;Data&quot; : msg.as_string()})
  </code></pre>
  <p>There is no error but I don't receive the mail.
  when I try to convert the same tab separated text file into csv file it can send the email</p>