Welcome, Guest. Please Login or Register.
April 28, 2025, 06:42:04 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Email notification on NT « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Email notification on NT  (Read 551 times)
silicate
Noobie
*
Posts: 8


29 + 32 = 420

WWW
Email notification on NT
« on: January 11, 2002, 07:42:14 PM »
Reply with quote

Is there any "trick" to setting up email notification with an NT server, I am having some issues, when i tried SMTP server i get a error in subs.php 274, any help?  ???
Logged

There is an old saying that if a million monkeys typed on a million keyboards for a million years, eventually all the works of Shakespeare would be produced. Now, thanks to Usenet, we know this is not true.
KnightTemplar
Noobie
*
Posts: 46


Gate Keeper

Re:Email notification on NT
« Reply #1 on: January 11, 2002, 10:33:21 PM »
Reply with quote

i have mine set to--->

2 - Net::SMTP

$smtp_server = "x.x.x.x";    


instead of mail add i.e.


smtp.mysite.com
Logged

Lions don't disriminat, everyone is fair game.
Savageman
Noobie
*
Posts: 35


Not a llama!

Re:Email notification on NT
« Reply #2 on: January 11, 2002, 10:58:45 PM »
Reply with quote

yes, very tricky!!

first, for windows you dont need a sendmail program, instead go to php.ini in c:\winnt and find [mail function] and change the smtp line to be your smtp server.

second, Check here for the code that i modified.

third, if you still have problems im or email me at [email protected]
Logged
silicate
Noobie
*
Posts: 8


29 + 32 = 420

WWW
Re:Email notification on NT
« Reply #3 on: January 11, 2002, 11:45:41 PM »
Reply with quote

Thanks, ill give it a whorl
Logged

There is an old saying that if a million monkeys typed on a million keyboards for a million years, eventually all the works of Shakespeare would be produced. Now, thanks to Usenet, we know this is not true.
silicate
Noobie
*
Posts: 8


29 + 32 = 420

WWW
Re:Email notification on NT
« Reply #4 on: January 12, 2002, 12:26:19 AM »
Reply with quote

i kinda figured out what you were trying todo after mesising with it for a few minutes, so i changed the $from to blah\@myemail.com

because your orignal suggestion yeilded an error, something like, Missing arg: sendmail() argument 4 or something

anyways.. i still got that damn Failed to Receive message, i am not sure you'll be able to understand this post much.. but any other suggestions?
Logged

There is an old saying that if a million monkeys typed on a million keyboards for a million years, eventually all the works of Shakespeare would be produced. Now, thanks to Usenet, we know this is not true.
KnightTemplar
Noobie
*
Posts: 46


Gate Keeper

Re:Email notification on NT
« Reply #5 on: January 12, 2002, 12:51:10 AM »
Reply with quote

leve $from to  [email protected]

But chang the SMTP to your mail servers IP x.x.x.x
Logged

Lions don't disriminat, everyone is fair game.
silicate
Noobie
*
Posts: 8


29 + 32 = 420

WWW
Re:Email notification on NT
« Reply #6 on: January 12, 2002, 01:30:27 AM »
Reply with quote

ya, hmm... i already tried that *shrug*  ???
Logged

There is an old saying that if a million monkeys typed on a million keyboards for a million years, eventually all the works of Shakespeare would be produced. Now, thanks to Usenet, we know this is not true.
KnightTemplar
Noobie
*
Posts: 46


Gate Keeper

Re:Email notification on NT
« Reply #7 on: January 12, 2002, 02:58:56 AM »
Reply with quote

$mailprog = mail.mysite.com";                                     Location of your sendmail program

$smtp_server = "x.x.x.x";  
# SMTP-Server

$webmaster_email = q^[email protected]^;Your e-mail address.


$mailtype = 2;  
Net::SMTP



And that should work. That is how my NT is set and works.

I went to the dam server and copied it verbatim.
                           
Logged

Lions don't disriminat, everyone is fair game.
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Email notification on NT
« Reply #8 on: January 12, 2002, 03:14:43 AM »
Reply with quote

Do you actually get notifications Templar?
Logged

KnightTemplar
Noobie
*
Posts: 46


Gate Keeper

Re:Email notification on NT
« Reply #9 on: January 12, 2002, 03:26:54 AM »
Reply with quote

ooops,,,,,, this is SE isn't it, works for sp-1, I need to get a life and stay off thease boards, I cant remember ware I am.
Logged

Lions don't disriminat, everyone is fair game.
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Email notification on NT
« Reply #10 on: January 12, 2002, 03:32:34 AM »
Reply with quote

Hehe I thought I remembered leaving SMTP out for now ;)  Just didn't have time to release it ;)
Logged

silicate
Noobie
*
Posts: 8


29 + 32 = 420

WWW
Re:Email notification on NT
« Reply #11 on: January 12, 2002, 04:46:57 AM »
Reply with quote

is that a "negative" on the email notification on NT sir?

roger copy
Logged

There is an old saying that if a million monkeys typed on a million keyboards for a million years, eventually all the works of Shakespeare would be produced. Now, thanks to Usenet, we know this is not true.
Savageman
Noobie
*
Posts: 35


Not a llama!

Re:Email notification on NT
« Reply #12 on: January 12, 2002, 09:26:03 AM »
Reply with quote

ok, hmm well first did you edit the php.ini file?

second, just to be clear:
in subs.php replace:
function sendmail($to,$subject,$message,$from = null) {

    global $mailtype,$webmaster_email;
   if ($from==null){ $from=$webmaster_email; }
   $mail_result = mail ($to,$subject,$message,"From: $from\r\n");
    return $mail_result;
}

with this:
function sendmail($to,$subject,$message,$from) {

    global $mailtype,$webmaster_email;
   if ($from==null){ $from=$webmaster_email; }
    mail($to,$subject,$message,"From: $from\r\n");
}

then in admin.php (under: function ml()):
if ($curmem != '')
   sendmail( $curmem, "$mbname: $subject", "$message\n\n$txt[130]\n\n$scripturl");

with:
if ($curmem != '')
   sendmail($curmem, "$mbname: $subject", "$message\n\n$txt[130]\n\n$scripturl", $webmaster_email);

These are the only changes i made.  Maybe i made it more clear or maybe it still dosent work!  i hope it works, because mine works and so should yours( btw, youre smtp server works right?)

Logged
silicate
Noobie
*
Posts: 8


29 + 32 = 420

WWW
Re:Email notification on NT
« Reply #13 on: January 12, 2002, 06:06:39 PM »
Reply with quote

Followed your instructions word for word, character for character, with no mistakes, copy and paste...

2: Missing argument 4 for sendmail()
(c:\servers\apache\htdocs\forum\Sources\Subs.php ln 270)


Subs.php:
function sendmail($to,$subject,$message,$from) {
   global $mailtype,$webmaster_email;
   if ($from==null){ $from=$webmaster_email; }
    mail($to,$subject,$message,"From: $from\r\n");
}

Admin.php
if ($curmem != '')
   sendmail($curmem, "$mbname: $subject", "$message\n\n$txt[130]\n\n$scripturl", $webmaster_email);
   }
??? ???
« Last Edit: January 12, 2002, 06:11:29 PM by silicate » Logged

There is an old saying that if a million monkeys typed on a million keyboards for a million years, eventually all the works of Shakespeare would be produced. Now, thanks to Usenet, we know this is not true.
Savageman
Noobie
*
Posts: 35


Not a llama!

Re:Email notification on NT
« Reply #14 on: January 13, 2002, 01:37:39 AM »
Reply with quote

hmm....  weird becaust i coped it word for word into the post.  and it works for me.  very strange
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Email notification on NT « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.053 seconds with 19 queries.