3 ms·
super compatible even old python: #!/usr/bin/python from email.MIMEText import MIMEText from subprocess import Popen, PIPE to_txt='5551231111@mms.att.
by m463 6y ago
super compatible even old python:
#!/usr/bin/python
from email.MIMEText import MIMEText
from subprocess import Popen, PIPE
to_txt='5551231111@mms.att.net'
fr_txt='me@example.com'
m = MIMEText("hello world")
m['To'] = to_txt
m['From'] = fr_txt
p = Popen(["/usr/sbin/sendmail", "-t", "-oi", "-f",fr_txt], stdin=PIPE)
p.communicate(m.as_string())
when I send a text this way, the text messages get grouped on my phone by the sender me@example.com