Humm. I just create the message this way: message = 'Serie:\t\t' + str(type) + str(series) + \ '\t\t\tUbicación:\t\t\t' + place + '\n' + \ 'Date&Time:\t' + date and send it with: message = header + message server = smtplib.SMTP('localhost') server.sendmail('email at email.com', email, message) server.quit()