-TEXT or -BODY or -MSG or -MESSAGE switch allows to specify the very text of the email message, which is the most essential informative part. Since textual part of email messages seldom contains only one line, it is likely that -MSG switch will be often supplemented by -USEFILE switch that provides possibility to use plain text file as message text.
febootimail -MSG automate email with dos mailerfebootimail -BODY -USEFILE "mail dos.txt"febootimail -TEXT Hello! -TEXT -USEFILE message.txt -TEXT Best regards!febootimail -MESSAGE schedule email batch from DOS
When using -USEFILE switch, message text may be preformatted in your favorite text editor application, saved as plain text file and then sent through command line email without loosing the formatting (i.e. line feeds, tab stops etc.).
-MSG switch can be used many times, each adding sequentially its own text to message. Example given below shows how to send dos e-mail combining header and footer with message text itself, so that there is no need to rewrite header and footer information each time.
C:\>febootimail -SERVER smtp.server.com -FROM jack@sender.com -TO john@recipients.com -TEXT -USEFILE header.txt -MSG mail sent from DOS email -MSG -USEFILE footer.txt If -HTMLFILE parameter is used, -TEXT specifies alternate text.
Please do not hesitate to contact our support department with any possible further questions or to solve practical issues connected with Command line email.