Welcome, Guest. Please Login or Register.
April 28, 2025, 10:54:52 AM
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 problems « previous next »
Pages: 1 [2] Reply Ignore Print
Author Topic: Email problems  (Read 847 times)
CorsaCat
Noobie
*
Posts: 36


*upps*

Re:Email problems
« Reply #15 on: January 08, 2002, 10:17:06 PM »
Reply with quote

@savageman:

would be great, but did you change this also on a win-system?

cya
CorsaCat
Logged
Savageman
Noobie
*
Posts: 35


Not a llama!

Re:Email problems
« Reply #16 on: January 08, 2002, 10:23:25 PM »
Reply with quote

ok, maybe i was overzelous,

if ($from==null){ $from=$webmaster_email; }

leave that in cause "E-Mail Members" dosent put a $from feild
Logged
Savageman
Noobie
*
Posts: 35


Not a llama!

Re:Email problems
« Reply #17 on: January 08, 2002, 10:24:09 PM »
Reply with quote

yeah, win2k
Logged
CorsaCat
Noobie
*
Posts: 36


*upps*

Re:Email problems
« Reply #18 on: January 08, 2002, 10:25:05 PM »
Reply with quote

sorry,

I just changed it, but there is no other behaviour of the mails :(
still no mails sent

cya
CorsaCat
Logged
Savageman
Noobie
*
Posts: 35


Not a llama!

Re:Email problems
« Reply #19 on: January 08, 2002, 10:28:40 PM »
Reply with quote

yeah, it was not FULLY tested, but it does fix the password email, just not the mailinglist one, still workin on it!
Logged
CorsaCat
Noobie
*
Posts: 36


*upps*

Re:Email problems
« Reply #20 on: January 08, 2002, 10:30:38 PM »
Reply with quote

I tested it with the passwort-email :(
I put my hope in you ;)


cya
CorsaCat
Logged
Savageman
Noobie
*
Posts: 35


Not a llama!

Re:Email problems
« Reply #21 on: January 08, 2002, 10:50:29 PM »
Reply with quote

ok, in admin.php under the fxn 'ml', i added $webmaster_email to the end of the arguments, i have a little programming expierence, and thought if there is not a fourth argument it wouldnt know to call the sendmail fxn, cause the signiture wouldnt match(im basing this off overloading in java).

so to recap,
1) modify subs.php and change the code to be
function sendmail($to,$subject,$message,$from) {

    global $mailtype,$webmaster_email;
   if ($from==null){ $from=$webmaster_email; }
    mail($to,$subject,$message,"From: $from\r\n");
}
2) edit admin.php, under the ml function to say
if ($curmem != '')
     sendmail($curmem, "$mbname: $subject", "$message\n\n$txt[130]\n\n$scripturl", $webmaster_email);
and that should work, it does for me!
Logged
Pages: 1 [2] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Email problems « 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.050 seconds with 17 queries.