PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
MrAnderson
Hangin' Around


Joined: Nov 04, 2004
Posts: 34

PostPosted: Fri Nov 05, 2004 5:07 pm Reply with quote Back to top

This must be a very "noob" question, but I have no idea how to configure smtp for my website. Please help. Thank you
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Fri Nov 05, 2004 10:26 pm Reply with quote Back to top

Is your site hostsed by someone else? Is it a IIS or Apache?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
MrAnderson
Hangin' Around


Joined: Nov 04, 2004
Posts: 34

PostPosted: Sat Nov 06, 2004 1:14 am Reply with quote Back to top

I host it myself its IIS
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Sat Nov 06, 2004 8:19 am Reply with quote Back to top

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 =
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
MrAnderson
Hangin' Around


Joined: Nov 04, 2004
Posts: 34

PostPosted: Sat Nov 06, 2004 3:02 pm Reply with quote Back to top

Is there anyway to do smtp authentication?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Sat Nov 06, 2004 4:33 pm Reply with quote Back to top

That is done through your email client, usually. Can you explain, in detail, what exactly you are trying to do?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
MrAnderson
Hangin' Around


Joined: Nov 04, 2004
Posts: 34

PostPosted: Sat Nov 06, 2004 10:38 pm Reply with quote Back to top

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.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Sat Nov 06, 2004 11:44 pm Reply with quote Back to top

So does mine Smile. 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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
MrAnderson
Hangin' Around


Joined: Nov 04, 2004
Posts: 34

PostPosted: Sun Nov 07, 2004 12:56 am Reply with quote Back to top

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.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Sun Nov 07, 2004 3:33 am Reply with quote Back to top

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
Only registered users can see links on this board!
Get registered or login to the forums!
. In Outlook Express you will have an email account set up as
Only registered users can see links on this board!
Get registered or login to the forums!
, correct? Now if you select Tools->Accounts->Mail in Outlook Express you will have an entry of
Only registered users can see links on this board!
Get registered or login to the forums!
. 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
Only registered users can see links on this board!
Get registered or login to the forums!
. 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:
Only registered users can see links on this board!
Get registered or login to the forums!

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?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
MrAnderson
Hangin' Around


Joined: Nov 04, 2004
Posts: 34

PostPosted: Sun Nov 07, 2004 6:10 am Reply with quote Back to top

So thats how I set my ISP smtp relay for outgoing emails from my PHP Nuke Site?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Sun Nov 07, 2004 8:58 am Reply with quote Back to top

Yes.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
MrAnderson
Hangin' Around


Joined: Nov 04, 2004
Posts: 34

PostPosted: Sun Nov 07, 2004 11:24 pm Reply with quote Back to top

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.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Sun Nov 07, 2004 11:42 pm Reply with quote Back to top

Give this a try
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
MrAnderson
Hangin' Around


Joined: Nov 04, 2004
Posts: 34

PostPosted: Mon Nov 08, 2004 12:17 am Reply with quote Back to top

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?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Mon Nov 08, 2004 12:22 am Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
MrAnderson
Hangin' Around


Joined: Nov 04, 2004
Posts: 34

PostPosted: Mon Nov 08, 2004 12:25 am Reply with quote Back to top

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
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Mon Nov 08, 2004 12:26 am Reply with quote Back to top

What is line 150?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Mon Nov 08, 2004 12:28 am Reply with quote Back to top

Also, try these links
Only registered users can see links on this board!
Get registered or login to the forums!
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
MrAnderson
Hangin' Around


Joined: Nov 04, 2004
Posts: 34

PostPosted: Mon Nov 08, 2004 12:36 am Reply with quote Back to top

$from = "$adminmail";
View user's profile Send private message
MrAnderson
Hangin' Around


Joined: Nov 04, 2004
Posts: 34

PostPosted: Mon Nov 08, 2004 12:43 am Reply with quote Back to top

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)
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Mon Nov 08, 2004 9:48 am Reply with quote Back to top

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");
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
MrAnderson
Hangin' Around


Joined: Nov 04, 2004
Posts: 34

PostPosted: Mon Nov 08, 2004 2:13 pm Reply with quote Back to top

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
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Mon Nov 08, 2004 2:28 pm Reply with quote Back to top

That looks like an issue for your ISP because the syntax is correct. You might want to go here and install your own mail server and just bypass your ISP altogether
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
MrAnderson
Hangin' Around


Joined: Nov 04, 2004
Posts: 34

PostPosted: Mon Nov 08, 2004 5:54 pm Reply with quote Back to top

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.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum