Welcome, Guest. Please Login or Register.
August 28, 2025, 08:09:47 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  |  Return-Path « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Return-Path  (Read 412 times)
cvek
Noobie
*
Posts: 30


I'm a llama!

Return-Path
« on: April 02, 2002, 01:28:08 PM »
Reply with quote

Hi!

i don't know if this is a bug, but is there a way to set Return-Path in sendmail when sending out members mail ..

tahnx
Logged
alexrolko
Guest
Re:Return-Path
« Reply #1 on: April 03, 2002, 12:52:14 AM »
Reply with quote

could you explain that more?
Logged
cvek
Noobie
*
Posts: 30


I'm a llama!

Re:Return-Path
« Reply #2 on: April 03, 2002, 06:28:54 AM »
Reply with quote

yep ....

i have 400 members, and i send them weekly emails via admin center. Now, after few weeks half of their mails are not valid anymore, so my ISP receive them, while there is no Return-Path configured in YABBSE. My current header in email looks like this

Return-Path: <[email protected]>
Received: from mail (axe.kelt.si [195.246.8.55])
   by mail.netsi.net (Postfix) with SMTP id A43A114A54A
   for <[email protected]>; Sat, 23 Mar 2002 20:54:21 +0100 (CET)
Received: (qmail 23113 invoked by uid 99); 23 Mar 2002 19:54:12 -0000
Date: 23 Mar 2002 19:54:12 -0000
Message-ID: <[email protected]>
To: [email protected]
Subject: Glasbeni &#268;vek: Nov Naslov
From: [email protected]

in old YABB SP1 i could enter return path in subs.pl so it looked like this

if ($mailtype==0) { open(MAIL,"| $mailprog -t"); }

   print MAIL "Return-Path: $webmaster_email\n";
   print MAIL "To: $to\n";
   print MAIL "From: $webmaster_email\n";
   print MAIL "X-Mailer: YaBB Perl-Powered Socket Mailer\n";
   print MAIL "Subject: $subject\n\n";
   print MAIL "$message";
   print MAIL "\n.\n";
   if ($mailtype==1) {

with this code (return Path) all mails would come back to me not to ISP. He is not very happy about receiving 200 mails every week instead of me .. and after all i cannot see whos mail is not valid.

In new YABBSE (which is numero 1) i cannot find where to add Return Path

btw. this is code from notification from this forum .. it has return path .. any idea?

Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: (qmail 23322 invoked from network); 3 Apr 2002 00:52:46 -0000
Received: from thepalantir.com (HELO lewismedia.com) (64.239.51.149)
  by axe.kelt.si with SMTP; 3 Apr 2002 00:52:46 -0000
Received: (from nobody@localhost)
   by lewismedia.com (8.9.3/8.9.3) id TAA08761;
   Tue, 2 Apr 2002 19:52:14 -0500
Date: Tue, 2 Apr 2002 19:52:14 -0500
Message-Id: <[email protected]>
To: [email protected]
Subject: Topic reply: Re:Return-Path
From: [email protected]

thanx for help

Gregor
Slovenia
Logged
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Return-Path
« Reply #3 on: April 03, 2002, 12:23:58 PM »
Reply with quote

you could add it to the headers in the sendmail function in Subs.php

You'd have to add them to the last argument.
Logged

cvek
Noobie
*
Posts: 30


I'm a llama!

Re:Return-Path
« Reply #4 on: April 03, 2002, 12:31:29 PM »
Reply with quote

yes but in SP1 it was so obvoius where to add it  :) but here in php i'm lost  :(
Logged
cvek
Noobie
*
Posts: 30


I'm a llama!

Re:Return-Path
« Reply #5 on: April 03, 2002, 12:54:16 PM »
Reply with quote

here is part of subs.php

function sendmail($to,$subject,$message,$from = null) {

    global $mailtype,$webmaster_email;
   if ($from==null){ $from=$webmaster_email; }
    $subject = stripslashes($subject);
    //Messy crap - perhaps someone can alter this later
            $subject = str_replace ("&quot;", "\"", $subject);
            $subject = str_replace ("&#039;", "'", $subject);
            $subject = str_replace ("&amp;", "&", $subject);
            $subject = str_replace ("&lt;", "<", $subject);
            $subject = str_replace ("&gt;", ">", $subject);
    $message = stripslashes($message);
   $mail_result = mail ($to,$subject,$message,"From: $from\r\n");
    return $mail_result;
}

but ....  ???  ???
Logged
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Return-Path
« Reply #6 on: April 03, 2002, 02:06:29 PM »
Reply with quote

I'll post the modified code in a minute....let me make it..
Logged

cvek
Noobie
*
Posts: 30


I'm a llama!

Re:Return-Path
« Reply #7 on: April 03, 2002, 02:10:04 PM »
Reply with quote

thanx .. i'm here  ;)
Logged
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Return-Path
« Reply #8 on: April 03, 2002, 02:10:27 PM »
Reply with quote

replace

$mail_result = mail ($to,$subject,$message,"From: $from\r\n");
with

   $mail_result = mail ($to,$subject,$message,
      "From: $from\r\n".
      "Return-Path: $webmaster_email");
Logged

Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Return-Path
« Reply #9 on: April 03, 2002, 02:14:05 PM »
Reply with quote

and before anyone asks, it will be included in jeff's bug fix zip ; )
Logged

cvek
Noobie
*
Posts: 30


I'm a llama!

Re:Return-Path
« Reply #10 on: April 03, 2002, 02:14:52 PM »
Reply with quote

Thank you very much .. it works ... tested :)

thanx again
bye

gregor
Slovenia
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Return-Path « 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.012 seconds with 21 queries.