Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • send multiple lines of text in body using -mail-

    Dear Forum Users,

    I am using a MAC: I just discovered the user-written command -mail- which only works on MAC as far as I understand.

    The command allows to send lines of text extracted from a using file. I do manage to include the first text line of the using file to the body of the mail that is sent out - but I would like to include the first four lines actually. I.e. I am wondering if and how it is possible to include multiple lines of text in the mail body using -mail-.

    My syntax looks as follows:
    mail From: [email protected]; To: [email protected]; Subject: test;dear other using example.txt

    where example.txt is a text file with 8 lines of text. What am I doing wrong?

    Thanks for your support.

    Darjusch

  • #2
    Where did you get the user-written command? Which version is it? What error message did you get? Can you provide an example of the text file so other users could test it as well?

    Comment


    • #3
      I did install it from the ssc archieve (ssc install mail, version 0.2 23april2007), .
      The textfile (example.txt) is attached.
      I use the following command line:
      mail From: [email protected]; To: [email protected]; Subject: subjectline;"dear user" using example.txt ,lines(50)

      I do not get a error message. However, the email that is send looks as follows:

      dear user
      ---file snippet below---
      line1



      ....while I would expect to get...

      dear user
      ---file snippet below---
      line1

      line3
      line4
      line5
      line6
      line7
      line8





      Attached Files

      Comment

      Working...
      X