Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro
Author Message
runswithscissors
Hangin' Around



Joined: Aug 16, 2006
Posts: 40

PostPosted: Mon Oct 23, 2006 3:58 pm Reply with quote

Ok I have lost a lot of hair today.

where can I specify smtp server iformation?I keep getting :

Warning: mail(): SMTP server response: 501 Your domain does not seem to be valid. Could not find MX record for your domain. in C:\Inetpub\vhosts\aramcobratmedia.com\httpdocs\html\modules\Your_Account\index.php on line 163

whenever I try to register a new user.

I know smtp is on the server and that it is configured I can manage mail boxes on the server and I can use outlook express to check them.

please help me I'm soooo frustrated.


thanx in advance,
JB
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Mon Oct 23, 2006 4:04 pm Reply with quote

did you touched any mail settings on your site?
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Oct 23, 2006 4:24 pm Reply with quote

You must have PHP configured properly to send email [ Only registered users can see links on this board! Get registered or login! ]

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
hitwalker







PostPosted: Mon Oct 23, 2006 4:26 pm Reply with quote

wauw your fast evaders...
he didnt replied yet... Wink
 
runswithscissors







PostPosted: Mon Oct 23, 2006 6:36 pm Reply with quote

I talk to our host on the phone and he says the server I'm on hosts many different sites. I need to be able to specify a server and account rof SMTP.
 
evaders99







PostPosted: Mon Oct 23, 2006 10:35 pm Reply with quote

I don't run a windows server. There are some comments about Windows IIS server in that thread.

Why does Windows have to make it so complicated? Smile
 
hitwalker







PostPosted: Tue Oct 24, 2006 6:21 am Reply with quote

this is a copy of what i could find :


Quote:
Spent hours searching the web trying to figure out why I was getting a "WARNING: mail(): SMTP server response: 501 5.5.4 Invalid Address " every time I was using the mail() function on my server (Win2K3,IIS 6.0,PHP4.4.1).
I knew everything was setup properly for SMTP based on other non IIS 6.0 configurations.


Turns out that the IIS 6.0 SMTP service does not like formatting of the "From" field in mail headers.

For instance:

<?PHP
//This line DOES NOT send mail message correctly
$headers .= "From: \"".$fromname."\" <".$fromaddress.">\n";
?>
However this works:
<?PHP
//This line sends mail message correctly
$headers .= "From: \"".$fromaddress."\"\n";
?>


Quote:
The fix is in Microsoft Article ID 291828 ( [ Only registered users can see links on this board! Get registered or login! ] ).
Even though the "bug" workaround is for IIS 6.0 on Exchange 2003 communicating with a UNIX server, THIS SOLVES THE PROBLEM.
Just skip down to the last section for Exchange 2003 and follow the instructions to modify the IIS 6 MetaBase with the MetaBase Explorer found in the IIS 6 Resource Kit.
 
runswithscissors







PostPosted: Tue Oct 24, 2006 9:39 am Reply with quote

I don't think it is running MS SMTP though

Not sure He moved us to this new server and it is windows and my life has been a nightmare ever since. I only see the management side wich is Plesk 7.5.6 for windows. and I think it is 2003 server. I know there is some webmail client called mail enable.

when I talked to him last night he says that the problem is that the problem is that the smtp server is locked down when it has to authenticate.

also is ther some way I can change the max length for the email address in the from fields. the email address I need to use is to long I can't fit the com at the end

I found this in /includes/smtp.php

Code:



        // Do we want to use AUTH?, send RFC2554 EHLO, else send RFC821 HELO
        // This improved as provided by SirSir to accomodate
        if( !empty($board_config['smtp_username']) && !empty($board_config['smtp_password']) )
        {
                fputs($socket, "EHLO " . $board_config['smtp_host'] . "\r\n");
                server_parse($socket, "250", __LINE__);

                fputs($socket, "AUTH LOGIN\r\n");
                server_parse($socket, "334", __LINE__);

                fputs($socket, base64_encode($board_config['smtp_username']) . "\r\n");
                server_parse($socket, "334", __LINE__);

                fputs($socket, base64_encode($board_config['smtp_password']) . "\r\n");
                server_parse($socket, "235", __LINE__);
        }
        else
        {
                fputs($socket, "HELO " . $board_config['smtp_host'] . "\r\n");
                server_parse($socket, "250", __LINE__);
        }

        // From this point onward most server response codes should be 250
        // Specify who the mail is from....
        fputs($socket, "MAIL FROM: <" . $board_config['board_email'] . ">\r\n");
        server_parse($socket, "250", __LINE__);



It looks like the ability to authenticate is here how do I use account info to set these?
 
evaders99







PostPosted: Tue Oct 24, 2006 12:03 pm Reply with quote

There was a thread on here how to use SMTP for standard phpNuke mails.
 
runswithscissors







PostPosted: Tue Oct 24, 2006 3:56 pm Reply with quote

so is the problem that I'm on a NT server? or is it that the smtp is locked down?
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©