Jump to content

Alma

Members
  • Posts

    1
  • Joined

  • Last visited

Alma's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Alma

    Perl Email

    I can't get perl to send out an email. Below is the code I was using. All messages print fine. No errors reported. Just don't get any email. Any ideas??? >#!/usr/bin/perl # Define Variables $mailprog = '/usr/sbin/sendmail'; print "Content-type: text/html\n\n"; print "<html><body>this is a 6 test</body></HTML>\n"; open (MAIL, "|$mailprog whatever@mrmail.com") || die "Can't open $mailprog!\n"; print MAIL "From: me@mail.com \n"; print MAIL "To: you@mail.com\n"; print MAIL "Subject: test 29\n\n"; print MAIL "THIS IS THE TEST\n"; close (MAIL);
×
×
  • Create New...