sendmail subject problem but with a twist

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default sendmail subject problem but with a twist

    I have to use sendmail to send a file via command line. I use sendmail
    because the user account that sends it must be a registered user on
    the company's email system. My test box has different usernames
    (ptv1100 is the username on the test box and I must enter using that
    ID) and company policy is that I use [email]joeblow@thiscompany.com[/email] to send
    mail (ie spoof an address). Anything else is rejected by the mail
    server. Adding joeblow to the test server is not an option either. I
    can send the file in question by doing the following:
    /usr/sbin/sendmail [email]-fjoeblow@thiscompany.com[/email]
    [email]anotherperson@thiscompany.com[/email] < filename.xml

    but I can't get a subject entered on the line. Anybody else solve
    this?
    Chris
    Chris Moore Guest

  2. Similar Questions and Discussions

    1. Subject: Problem Extending ObjectDataSource and ObjectDataSourceVi
      I have an extended version for both those classes. MyObjectDataSource overrides the GetView(string) method to return the custum view. The problem...
    2. Subject: Smart Navigation problem with mulitline TextBox
      I have a problem using a mulitline TextBox in .NET 1.1 with SmartNavigation. The text wrapping doesn't work correctly. If I click into the textarea...
    3. Problem with Email address Hyper subject-
      Hello In my website , I created an email address hyperlink- First thing it ask is the mailto in wich i place my email address. Than it ask for the...
    4. php <-> sendmail problem
      In article <Xns93C38982CD719MrSaintgmxde@62.153.159.134>, MrSaint <MrSaint@gmx.de> wrote: Have you checked php.ini?
    5. rpm -i sendmail problem
      Hello, I did a simple upgading of sendmail, but weirdly enough, it seems the pkg has not been replace successfully? # rpm -ivh...
  3. #2

    Default Re: sendmail subject problem but with a twist

    In article <9e60fb9e.0406161449.4f1e316d@posting.google.com >,
    [email]cmoore@linuxmail.org[/email] (Chris Moore) wrote:
    > I have to use sendmail to send a file via command line. I use sendmail
    > because the user account that sends it must be a registered user on
    > the company's email system. My test box has different usernames
    > (ptv1100 is the username on the test box and I must enter using that
    > ID) and company policy is that I use [email]joeblow@thiscompany.com[/email] to send
    > mail (ie spoof an address). Anything else is rejected by the mail
    > server. Adding joeblow to the test server is not an option either. I
    > can send the file in question by doing the following:
    > /usr/sbin/sendmail [email]-fjoeblow@thiscompany.com[/email]
    > [email]anotherperson@thiscompany.com[/email] < filename.xml
    >
    > but I can't get a subject entered on the line. Anybody else solve
    > this?
    > Chris
    Sendmail expects the message header to be included in the standard
    input. if you want a subject line, you have to feed it:

    cat - filename.xml <<EOS | sendmail -t
    From: [email]joeblow@thiscompany.com[/email]
    To: [email]anotherperson@thiscompany.com[/email]
    Subject: This is the subject

    EOS

    --
    Barry Margolin, [email]barmar@alum.mit.edu[/email]
    Arlington, MA
    *** PLEASE post questions in newsgroups, not directly to me ***
    Barry Margolin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139