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 -> phpnuke 6.5
Author Message
MrAnderson
Hangin' Around



Joined: Nov 04, 2004
Posts: 34

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

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: 17088

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

Is your site hostsed by someone else? Is it a IIS or Apache?
 
View user's profile Send private message
MrAnderson







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

I host it myself its IIS
 
Raven







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

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! ]
 
MrAnderson







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

Is there anyway to do smtp authentication?
 
Raven







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

That is done through your email client, usually. Can you explain, in detail, what exactly you are trying to do?
 
MrAnderson







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

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.
 
Raven







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

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.
 
MrAnderson







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

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.
 
Raven







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

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! ]. 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! ], 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! ]. 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! ]. 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! ]
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?
 
MrAnderson







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

So thats how I set my ISP smtp relay for outgoing emails from my PHP Nuke Site?
 
Raven







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

Yes.
 
MrAnderson







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

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.
 
Raven







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

Give this a try [ Only registered users can see links on this board! Get registered or login! ]
 
MrAnderson







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

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?
 
Raven







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

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.
 
MrAnderson







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

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 
Raven







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

What is line 150?
 
Raven







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

Also, try these links [ Only registered users can see links on this board! Get registered or login! ] [ Only registered users can see links on this board! Get registered or login! ]
 
MrAnderson







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

$from = "$adminmail";
 
MrAnderson







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

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)
 
Raven







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

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");
 
MrAnderson







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

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
 
Raven







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

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! ]
 
MrAnderson







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

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.
 
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 -> phpnuke 6.5

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 ©