Hi Monks!

My program sends out emails from a form response and the problem I am having is when some one gets an email the
<anonymous@host.myisp.com>
shows up, I don't want this anonymous to show, I wnat to get rid of it. I've tried -F, but no results, here is my code, if someone have any better ideas it would be very nice!

$mailto[0]="person1\@gmail.com"; $mailto[1]="person2\@hotmail.com"; $mailto[2]="person3\@yahoo.com"; foreach my $element (@mailto) { open MAIL, "| /usr/sbin/sendmail -t -F'$name'" or die "That sucks, I can't open a port on the mail server. I'm + going to take all my toys and go home now: $!"; print MAIL "To: $element\n"; print MAIL "Subject: New Form From $name\n"; print MAIL "You have received a new Form.\n"; print MAIL "Please click on the link to finalize process.\n"; print MAIL "New Form Entry is at:\n\n"; close MAIL or die "Error closing sendmail: $!"; }


Thanks for you Help!!!!

In reply to Sendmail Help! by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.