Python
Python vous permet d'envoyer simplement des emails en SMTP grâce à une librairie native : smtplib
Voici un exemple de code que vous pouvez adapter
/*
* File Name : send.py
* Task : send email through Tipimail
*/
#!/usr/bin/python
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
msg = MIMEMultipart('mixed')
msg['Subject'] = 'subject'
msg['From'] = 'from@mail.tipimail.com'
msg['To'] = 'to@mail.tpimail.com'
html = 'message au format html'
text = 'message au format texte'
part1 = MIMEText(text, 'plain')
part2 = MIMEText(html, 'html')
username = 'username'
password = 'password'
msg.attach(part1)
msg.attach(part2)
s = smtplib.SMTP('smtp.tipimail.com', 587)
s.starttls()
s.login(username, password)
try:
s.sendmail(msg['From'], msg['To'], msg.as_string())
finally:
s.quit()
Il ne vous reste plus qu'à appeler votre script
python send.py