Author |
Message |
runswithscissors
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Aug 16, 2006
Posts: 40
|
Posted:
Mon Oct 23, 2006 3:58 pm |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
Sells PC To Pay For Divorce
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined:
Posts: 5661
|
Posted:
Mon Oct 23, 2006 4:04 pm |
|
did you touched any mail settings on your site? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Mon Oct 23, 2006 4:24 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 23, 2006 4:26 pm |
|
wauw your fast evaders...
he didnt replied yet... ![Wink](modules/Forums/images/smiles/icon_wink.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
runswithscissors
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 23, 2006 6:36 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 23, 2006 10:35 pm |
|
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](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 24, 2006 6:21 am |
|
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 ( http://support.microsoft.com/?id=291828 ).
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. |
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
runswithscissors
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 24, 2006 9:39 am |
|
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? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 24, 2006 12:03 pm |
|
There was a thread on here how to use SMTP for standard phpNuke mails. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
runswithscissors
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 24, 2006 3:56 pm |
|
so is the problem that I'm on a NT server? or is it that the smtp is locked down? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|