English
EMAIL to SMS using Auth and SSL on SMTP PDF Print E-mail

Due to the number of requests, I have ported the new version (1.15b) of mailsend, a simple program to send mail via SMTP protocol (that's how all the emails are sent). You can read about mailsend on: http://www.muquit.com/muquit/software/mailsend/mailsend.html


You can download mailsend 1.15b porting for ETRAX 100 LX from here: mailsend.zip

To apply the patch, you simply have to replace the mailsend file inside your FoxBox with the one provided in the zip archive. Remember that mailsend binary is into /etc/mailsend folder.

$ mailsend -h
Version: @(#) mailsend v1.15b5

Copyright: GNU GPL. It is illegal to use this software for Spamming

(Compiled with OpenSSL 0.9.7l 28 Sep 2006)
usage: mailsend [options]
Where the options are:
-smtp hostname/IP* - of the SMTP server
-port SMTP port - SMTP port
-d domain - domain name for SMTP HELO/EHLO
-t to,to..* - email address/es of the reciepient/s
-cc cc,cc.. - Carbon copy address/es
+cc - don't ask for Carbon Copy
-bc bcc,bcc.. - Blind carbon copy address/es
+bc - don't ask for Blind carbon copy
+D - don't add Date header
-f address* - email address of the sender
-sub subject - subject
-l file - a file containing the email addresses
-attach file,mime_type,[i/a] (i=inline,a=attachment)
- attach this file as attachment or inline
-cs character set - for text/plain attachments (default is us-ascii)
-M "one line msg" - attach this one line text message
-name "Full Name" - add name in the From header
-v - verbose mode
-V - show version info
-w - wait for a CR after sending the mail
-rt email_address - add Reply-To header
-rrr email_address - request read receipts to this address
-starttls - Check for STARTTLS and if server supports, do it
-auth - Try CRAM-MD5,LOGIN,PLAIN in that order
-auth-cram-md5 - use AUTH CRAM-MD5 authentication
-auth-plain - use AUTH PLAIN authentication
-auth-login - use AUTH LOGIN authentication
-user username - username for ESMTP authentication
-pass password - password for ESMTP authentication
-example - show examples
-ehlo - force EHLO
-info - show SMTP server information
-help - shows this help
-q - quiet

The options with * must the specified

Example of authentication:
STARTTLS+AUTH PLAIN:
mailsend -f This e-mail address is being protected from spam bots, you need JavaScript enabled to view it -d example.com -smtp smtp.gmail.com
-sub test -from This e-mail address is being protected from spam bots, you need JavaScript enabled to view it +cc +bc -v -starttls -auth-plain
-user you -pass 'secert'

STARTTLS+AUTH CRAM-MD5:
mailsend -f This e-mail address is being protected from spam bots, you need JavaScript enabled to view it -d example.com -smtp 1.2.3.4
-sub test -from This e-mail address is being protected from spam bots, you need JavaScript enabled to view it +cc +bc -v -starttls -auth-cram-md5
-user you -pass 'secert'

STARTTLS+AUTH LOGIN:
mailsend -f This e-mail address is being protected from spam bots, you need JavaScript enabled to view it -d example.com -smtp 1.2.3.4
-sub test -from This e-mail address is being protected from spam bots, you need JavaScript enabled to view it +cc +bc -v -starttls -auth-login
-user you -pass 'secert'

mailsend -f This e-mail address is being protected from spam bots, you need JavaScript enabled to view it -d example.com -smtp 1.2.3.4
-sub test -from This e-mail address is being protected from spam bots, you need JavaScript enabled to view it +cc +bc -v -starttls -auth
-user you -pass 'secert'

Notice: CRAM-MD5 will be tried first, then Login and after that PLAIN.

(Password can be set by env var SMTP_USER_PASS instead of -pass)
Note: I suggest you always use STARTTLS if your server supports it, expecially if you are using AUTH PLAIN or LOGIN.

 

 
< Prev   Next >

buy foxbox
buy on FoxBox eShop



For further info contact us by mail This e-mail address is being protected from spam bots, you need JavaScript enabled to view it providing us the FoxBox model you need and your company details.

KDEV di Davide Cantaluppi, P.IVA 02984320131

http://www.kdev.it