+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: Outgoing Server Error

  1. #1
    Join Date
    Jan 2004
    Posts
    3

    Default

    Warning: mail(): SMTP server response: 551 Bad Recipient in e:\domains\b\benlebson.com\user\htdocs\formmail.php on line 704
    I keep getting this message when I try to submit the form... I looked through the script and couldnt find anywhere to put in a SMPT server and password... on line 704 i have the following...
    return (mail($to,$subject,$mesg,$headers));
    Im new to PHP and all scripts other than HTML in general, If you could help i would be truly greatful.

    Thanks,
    -Ben


  2. #2
    Join Date
    Dec 2003
    Posts
    3,907

    Default

    Hi Ben,

    The error message seems garbled, but it looks like the email recipient you've specified isn't valid.

    What value do you have in the "email" field in your form?

    *
    You don't need to specify the SMTP server - that's done by your system administrator when setting up PHP on your server.

  3. #3
    Join Date
    Jan 2004
    Posts
    3

    Default

    under the e-mail field for the form is says

    <input type="hidden" name="recipients" value="l2ic3pi10f@netscape.net">
    I think this is what you are asking for :?.

    I dont quite understand this whole php deal :P

  4. #4
    Join Date
    Dec 2003
    Posts
    3,907

    Default

    Hi Ben,

    I think this is what you are asking for
    Yes, that's what I wanted.* Now, l2ic3pi10f@netscape.net looks like a valid email address (it has the right syntax).*

    So, the next question is: is it the right email address - is there actually a valid email address of "l2ic3pi10f" at the server "netscape.net"?

    If not, then your web server is probably checking for a valid email address when it tries to send (it actually asks netscape.net) and fails if the answer is "no".

    Try with a simple email address, such as your own.* It's really easy to make typographical errors with complex*strings like l2ic3pi10f@netscape.net.

    *

  5. #5
    Join Date
    Jan 2004
    Posts
    3

    Default

    that is my own, but i gues i could try one with only letters and no numbers (its really leet text :P)...

    *

    Test Results:
    Warning: mail(): SMTP server response: 551 Bad Recipient in e:\domains\b\benlebson.com\user\htdocs\formmail.php on line 704
    Im thinking it would work better if i made the e-mail on my site (www.benlebson.com) the only problem is that my hosting company has failed to get the account straightened out (doesnt like outlook i guess). Would it be easier if i just made it create a log file, and if so, how would i go about doing that? Thanks for the help,
    -Ben


  6. #6
    Join Date
    Dec 2003
    Posts
    3,907

    Default

    Hi Ben,

    The file output is quite easy to setup (see the recent topics on CSV files).

    The log file just says that something happened, but doesn't contain details.* So, you'll want to use the CSV feature instead.

    *

  7. #7
    Join Date
    Nov 2004
    Posts
    10

    Unhappy Re: Outgoing Server Error

    Hi, i'm having a slightly similar error.

    Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:\websites\free\tedsbear\www\formmail.php on line 2712

    Warning: Cannot modify header information - headers already sent by (output started at c:\websites\free\tedsbear\www\formmail.php:2712) in c:\websites\free\tedsbear\www\formmail.php on line 2625

    I tried using int_set("SMTP","MY_OWN_SMTP_SERVER.com"), but my server needs user authentication... What should I do? And what additional code do I have to insert into the FormMail.php script?
    Last edited by tedsbear; 19-Nov-2004 at 01:57 PM.

  8. #8
    Join Date
    Dec 2003
    Posts
    3,907

    Default Re: Outgoing Server Error

    Hi,

    For windows, the SMTP setup is done in "php.ini".

    If it's your computer you can do this easily.

    If not, you'll have to contact your hosting company to get them to fix the PHP installation.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  9. #9
    Join Date
    Nov 2004
    Posts
    10

    Smile Re: Outgoing Server Error

    Is there any alternative? What ini_set() command can I use to bypass the server settings?? And include SMTP authentication.

  10. #10
    Join Date
    Dec 2003
    Posts
    3,907

    Default Re: Outgoing Server Error

    Hi,

    In theory you can use ini_set to set "SMTP" (the server name) and "smtp_port" (the port number - if other than 25), and "sendmail_from".

    However, I don't know whether that acutally works. And there doesn't seem to be a setting for password.

    Do you have PEAR availble on your PHP installation? That might be an alternative that FormMail could use.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. ACK please help getting Server Error or Not Working
    By jmrothermel in forum Community Support
    Replies: 8
    Last Post: 05-Jul-2006, 01:05 PM
  2. Error Message - Abuse of Server
    By Eadams in forum Community Support
    Replies: 2
    Last Post: 05-May-2006, 06:39 PM
  3. server error...?
    By kroggy in forum FormMail Subscription Support
    Replies: 1
    Last Post: 17-Nov-2005, 01:54 AM
  4. New Server
    By sectioni in forum FormMail Subscription Support
    Replies: 9
    Last Post: 21-Mar-2005, 03:07 AM
  5. "Internal Server Error": What'd I do wrong?
    By sgodun in forum FormMail Subscription Support
    Replies: 4
    Last Post: 16-May-2004, 01:01 AM

Bookmarks

Posting Permissions

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