Author |
Message |
MrAnderson
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Nov 04, 2004
Posts: 34
|
Posted:
Fri Nov 05, 2004 5:07 pm |
|
This must be a very "noob" question, but I have no idea how to configure smtp for my website. Please help. Thank you |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Fri Nov 05, 2004 10:26 pm |
|
Is your site hostsed by someone else? Is it a IIS or Apache? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
MrAnderson
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Nov 06, 2004 1:14 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Nov 06, 2004 8:19 am |
|
In your php.ini find this code, uncomment it, and modify it for your ISP mail settings
[mail function]
; For Win32 only.
SMTP = domain.net
smtp_port = 25
; For Win32 only.
sendmail_from = you@domain.net |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
MrAnderson
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Nov 06, 2004 3:02 pm |
|
Is there anyway to do smtp authentication? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Nov 06, 2004 4:33 pm |
|
That is done through your email client, usually. Can you explain, in detail, what exactly you are trying to do? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
MrAnderson
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Nov 06, 2004 10:38 pm |
|
I want you use my ISP's smtp server. but it requires login information (username and password) is there a way to enter this info? Thanks again for any help. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Nov 06, 2004 11:44 pm |
|
So does mine . If you use Outlook Express, try this. In Your settings for the account your are using to relay, under the server tab
Incoming mail (Pop 3) mail.domain.com <== Your web hosting account domain
Outgoing Mail (SMTP) mail.ISP.net <== Your ISP
Then the username/pass is used from Outlook. Note that this requires that your ISP allows email relaying. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
MrAnderson
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Nov 07, 2004 12:56 am |
|
Ok, Im sorry... im pretty lost. (blonde moments.) Where do I enter this information? All I can find for entering it is in the php.ini and preferences on the admin page. php.ini doesn't have those fields (from what I see) and preferences doesn't have them just pop3 server and single account name. If you wanna get me out of your hair and talk on AIM (if you have it) just IM me at liltrip1129 so I dont keep wasting your time. Either way, sorry for wasting your time. I appreciate your help. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Nov 07, 2004 3:33 am |
|
You don't enter it in php.ini. You are trying to use your ISP to relay your email. Most do, some don't. So, let's say your ISP uses mail.isp_name.net as their mail server and you have an email address of mranderson@isp_name.net. In Outlook Express you will have an email account set up as mranderson@isp_name.net, correct? Now if you select Tools->Accounts->Mail in Outlook Express you will have an entry of mranderson@isp_name.net. Select Properties and then select the Server tab. You will see, amongst other things
Incoming Mail (POP3): mail.isp_name.net
Outgoing Mail (SMTP): mail.isp_name.net
Incoming Mail Server ---------------------------
Account Name: mranderson
Password: ********
Outgoing Mail Server ---------------------------
My server requires authentication (checked)
Now, everything so far is probably working, but you now have a new email address for your hosting account like mranderson@domain_name.com. So, you need to create a new mail account that looks like ths:
Incoming Mail (POP3): mail.domain_name.com
Outgoing Mail (SMTP): mail.isp_name.net
Incoming Mail Server ---------------------------
Account Name: mranderson@domain_name.com
Password: ********
Outgoing Mail Server ---------------------------
My server requires authentication (checked)
Now the password for the new account with domain_name.com has to be the password for your domain name mail account. Does that help? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
MrAnderson
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Nov 07, 2004 6:10 am |
|
So thats how I set my ISP smtp relay for outgoing emails from my PHP Nuke Site? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Nov 07, 2004 8:58 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
MrAnderson
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Nov 07, 2004 11:24 pm |
|
It doesn't work still. From what you said, it looks like Im having outlook express check for new emails on domain_name.com and sending emails through my_isp.net. As if it were me personally sending the emails. Which is nothing near what I need. I need to set my PHP Nuke site to use my_isp.net to relay new account activation emails. Although I am probably wrong. Im very confused and desprate. Thank you for helping me Raven, I owe you. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Nov 07, 2004 11:42 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
MrAnderson
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 08, 2004 12:17 am |
|
I went on there, still no luck. The lines displayed on there are nothing like my current one. I also noticed that the smtp.php file they were talking about had the path "net/smtp.php" and my smtp.php file is "includes/smtp.ini" on the PHP Nuke base directory. It looked like they were talking about Pear on that site. I looked at the code in my smtp.php and their smtp.php and saw nothing alike. Is there no place to enter smtp info on PHP Nuke? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 08, 2004 12:22 am |
|
Your php.ini file is the only place and you can't do user authentication. PEAR is a supplemental package that ships with PHP. That is the answer to your issue. You have to tweak phpNuke to use it instead of the default. If there is another anwer, I do not know it. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
MrAnderson
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 08, 2004 12:25 am |
|
Actually, I just realized PHP.INI was set to "display_errors = off" so I switched to on and I found this error; "Warning: mail(): SMTP server response: 501 syntax: Cannot contain a :, unless g_rcpt_colon true in C:\Network\Websites\united-clansonline\modules\Your_Account\index.php on line 150"
Any ideas? Thanks again Raven |
Last edited by MrAnderson on Mon Nov 08, 2004 12:27 am; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 08, 2004 12:26 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 08, 2004 12:28 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
MrAnderson
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 08, 2004 12:36 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
MrAnderson
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 08, 2004 12:43 am |
|
oops sorry wrong line... its:
mail($user_email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
Would it be ok for me to contact you via Yahoo Messenger? (I saw your yahoo link on your post) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 08, 2004 9:48 am |
|
The line is almost valid. If they are after strict rfc compliance, try this
mail($user_email, $subject, $message, "From: $from\r\nX-Mailer: PHP" . phpversion()."\r\n"); |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
MrAnderson
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 08, 2004 2:13 pm |
|
Still returns error:
Warning: mail(): SMTP server response: 501 syntax: Cannot contain a :, unless g_rcpt_colon true in C:\Network\Websites\united-clansonline\modules\Your_Account\index.php on line 150 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 08, 2004 2:28 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
MrAnderson
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 08, 2004 5:54 pm |
|
I FIXED IT!!! I run a desknow mail server. After you said that my ISP was the problem I decided to set up my mail server for smtp relay. However it also requires authentication. So I contacted the maker of desknow and asked how to get it to relay smtp. They told me, I set it up... ITS WORKING. lol. Thank you for all your help and patience. Its greatly appreciated. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|