dcsimg
www.webdeveloper.com
Results 1 to 8 of 8

Thread: Sendmail troubles on server

  1. #1
    Join Date
    Dec 2002
    Posts
    11

    Sendmail troubles on server

    I have used the following code in all of my scripts which have worked fine on the others servers I have tried. But when a form is submitted with this script in the action, the resulting page that my script creates has "Recipients must be specified Recipients must be specified".

    Please note that this isn't the entire script, but the rest of it generate a thank you html page.

    ######### CODE##########

    open (MAIL,"|/usr/sbin/sendmail");
    print MAIL "To: $email\n";
    print MAIL "From: $mail\n";
    print MAIL "Subject: Thank you for contacting us\n";
    print MAIL "Thank you $name for contacting us.\n\n";
    print MAIL "Here was the message you sent us: $message\n\n";
    print MAIL "Your message has been received and we'll get back to you as soon as we can\n";
    print MAIL "\n\n";
    print MAIL "Sincerely,\n";
    print MAIL "The President\n";
    print MAIL "www.mydomain.com\n";
    close (MAIL);

    ########################

    The scalars $email and $mail are set by the script. $mail is the address for the admin which is taken from the admin settings. $email is the address that the user enters on the previous form that sent the info to the script.

    This has worked on every other server I have tried, but not on this one.

    My host will not give me satisfactory help.

    Thank you.

  2. #2
    Join Date
    Nov 2002
    Location
    NY, USA
    Posts
    731
    "Recipients must be specified Recipients must be specified"

    Is this the server returning this or is this a custom error message within your script somewhere?

    If you're running this on a new server you should check if the path to the mail program is the same. You probably also need an extra newline on the subject line to separate the mail header from the message.

  3. #3
    Join Date
    Dec 2002
    Posts
    11
    This message is printed there by the server. I actually have to newlines after the subject line, but seemed to have removed one when I moved things around. Pasting my code made it indent half of the textarea so I had to mess with it and apparenlty lost a /n in there somewhere.

  4. #4
    Join Date
    Dec 2002
    Location
    Rolla, Mo.
    Posts
    33
    Sounds like your on free.hostdepartment.com, I am having the exact same problem with them. My fix after 10 days was to get another web host.

  5. #5
    Join Date
    Dec 2002
    Posts
    11
    Nope.
    I am a paid member of aplus.net which is what irrirates me the most. I am paying a good deal of money for their service and while everything else works perfectly, I can't use their sendmail.

  6. #6
    Join Date
    Nov 2002
    Location
    NY, USA
    Posts
    731
    Have you tried just sending test messages? Not comprised of any variables whos value might be in question. Just a simple message sent to yourself. If that doesn't go through then you should contact your host and get them to get fix it.

  7. #7
    Join Date
    Dec 2002
    Posts
    11
    The first thing I did after it gave me the error was to remove all scalars and put specific info in there and it still gave me the same error. I have contacted them many times in every way that they offer.

  8. #8
    Join Date
    Nov 2002
    Location
    NY, USA
    Posts
    731
    Bad service and bad customer support. Sounds like a poor host to me. I'd look into getting a different one.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles