send_email.py

Script description: the script sends e-mail using AT#SEMAIL custom command.

User inputs: edit these values in the script

 

-

GPRS_APN = 'xxx.xxxxxxx.xx'

 

# APN, ask your network provider

 

                            

 

         the correct value

-

GPRS_USER = “”   

 

# GPRS username

-

GPRS_PASSW =””           

 

# GPRS password

-

SMTP_SERVER   = "xxx.xxx.xxx"

 

# SMTP server

-

SMTP_USERID   = "xxxx@xxx.xxx"

 

# SMTP username

-

SMTP_PASSW    = "xxxxx" 

 

# SMTP password

 FROM_EMAIL_ADDR = " xxxx@xxx.xxx "          # SMTP From

TO_EMAIL_ADDR = " xxxx@xxx.xxx "      # SMTP To

SUBJECT = "xxxxxxxxxxxx"                   # email subject

BODY = "testing 123"                                    # email text body

Availability: any Telit product supporting Python

We recommend that you use email accounts that use SSL ciphering to maintain security.