EasyManua.ls Logo

STW TC1 - 10.1.9 E-Mail

STW TC1
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
10 Application Notes
User Manual 325/374
10.1.9 E-Mail
The TC1 is equipped with an e-mail client. The name of the client is 'mailx'. With that client it is possible to send
an e-mail from the TC1.
The account settings have to be added to a configuration file.
/root/.mailrc - file
The configuration of the e-mail account is handled in the file .mailrc in the /root directory.
The following settings are for the google mail account: example@gmail.com with the password: 123456.
account gmail_account {
set folder=imaps://example@imap.gmail.com/INBOX
set password-example@imap.gmail.com="123456"
set imap-use-starttls
set from="TC3G <example@gmail.com>"
set replyto="example@gmail.com"
set sender="example@gmail.com"
set smtp-use-starttls
set ssl-verify=ignore
set smtp="smtp://smtp.gmail.com:587"
set smtp-auth="login"
set smtp-auth-user=example@gmail.com
set smtp-auth-password="123456"
}
# address book
alias developer1 developer.number1@test.de
Sending an E-Mail
After the account is configured, it is possible to send an e-mail considering the following syntax:
mailx [-s subject] [-a attachment ] [-c cc-addr] [-b bcc-addr] [-A account] to-addr . . .
Example
echo "Please find the apn-settings in the attachment." | mailx -A gmail_account -s "apn-
settings of the TC1" -a /tmp/apn.setting developer1

Table of Contents