Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Okay, I see several possible problems here. First, though, some protocol issues:

1) protocol, not protocall
2) Perl, not PERL
3) a lot, not 'alot'. (You wouldn't write 'alittle', would you?)
4) You did include an awful lot of stuff from the script, but no information about the system, nor about where you got the script. Those would have been helpful. You also didn't say what the script is doing. I assume it isn't working, but are there any error messages? Does it send mail, but it's empty? What exactly is the problem?

We really need the answer to 4) before we can help you. What happens when the form is submitted? Also, if you log on to the Web server via command line, what happens if you do:

perl -wc ./AlphaMail.pl

Lastly, let's confirm a few things for you:

1) /usr/sbin/sendmail is correct for $MailProgram.

2) As long as you used only WordPad or Notepad to edit the file, your mailer should not have done anything strange with it. If you're worried about newlines, log on to the Web server via SSH (or - egad! - Telnet) and run pico -w AlphaMail.pl or, if they don't have pico, try nano -w AlphaMail.pl. Once you have the file open, press Ctrl-O, Enter, Ctrl-X. If you had any newline/carriage return weirdness, it'll be gone.

3) All of the other variables in the 'configurable' part of the script are just strings used to construct the messages, so it doesn't really matter if they're correct or not.

So the only thing that comes to mind is, if you log on to the Web server and run /usr/sbin/sendmail -t, what does it do? If nothing appears to happen, but you don't get your prompt back, that's probably good. (Press Ctrl-C to abort sendmail.) If not, what happens instead?

Also, what did you use to FTP the file up to the server? Windows' command-line FTP util? Did you remember to use binary mode (type 'bin')? If not, you should send the file again (just overwrite the previous copy), making sure to use binary mode.

--J

Update: Added suggestion re: binary mode FTP.


In reply to Re: Setup problem by Rhys
in thread Setup problem by dvdj

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, 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, 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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others meditating upon the Monastery: (6)
    As of 2021-01-22 22:40 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Notices?