FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Mailing List- Using a Reply-able email sending account
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Mailing List- Using a Reply-able email sending account [message #25291] Fri, 03 June 2005 20:01 Go to next message
jhogue is currently offline  jhogue   United States
Messages: 28
Registered: April 2005
Location: at the computer
Karma: 0
Junior Member
I have multiple forums and multiple mailing list rules. By default, all messages forwarded by fudforum to any forum subscibers are sent by forum(at)mysite(dot)com, what I call the broadcasting account.

If a user hits reply in their email client instead of in the body of the message, they accidentally reply to the broadcasting account, and no post occurs. I'm using auto-response to tell them of the boo-boo.

Ideally, the rule could be tweaked so that outbound broadcasts are sent from the inbound, post-to-forum email account, ie: list1(at)mysite(dot)com sends messages and receives messages posted to list1 forum. So if a user hits Reply in Thuderbird or Outlook, a message gets posted.

Can I get a pointer in the right direction? Any reason this can't work? I'll be happy to share my solution.

Jeff
Re: Mailing List- Using a Reply-able email sending account [message #25304 is a reply to message #25291] Sun, 05 June 2005 18:23 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You need to modify the notification sending code inside imsg_edt.inc.t

FUDforum Core Developer
could it be this easy? [message #25327 is a reply to message #25304] Mon, 06 June 2005 19:56 Go to previous messageGo to next message
jhogue is currently offline  jhogue   United States
Messages: 28
Registered: April 2005
Location: at the computer
Karma: 0
Junior Member
replace:

send_email($GLOBALS['NOTIFY_FROM'], $to, $subj, $body_email, $headers);
}
?>

with:

send_email($r[0], $to, $subj, $body_email, $headers);
}
?>

OR do I need to do this?

$variable_sender = db_saq('SELECT name FROM {SQL_TABLE_PREFIX}mlist WHERE id='.$mtf->mlist_id);
send_email($variable_sender, $to, $subj, $body_email, $headers);
}
?>
Re: could it be this easy? [message #25328 is a reply to message #25327] Mon, 06 June 2005 20:00 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The latter is what you want.

FUDforum Core Developer
Thanks [message #25329 is a reply to message #25328] Mon, 06 June 2005 20:11 Go to previous messageGo to next message
jhogue is currently offline  jhogue   United States
Messages: 28
Registered: April 2005
Location: at the computer
Karma: 0
Junior Member
Thanks Ilia!

should I be scared?

}

$variable_sender = db_saq('SELECT name FROM {SQL_TABLE_PREFIX}mlist WHERE id='.$mtf->mlist_id);
send_email($variable_sender, $to, $subj, $body_email, $headers);
}
?>

thanks for the quick reply.

Jeff
Re: Thanks [message #25331 is a reply to message #25329] Mon, 06 June 2005 22:08 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You are using the wrong function, you need q_singleval()

FUDforum Core Developer
icon9.gif  Meltdown [message #25427 is a reply to message #25331] Wed, 08 June 2005 14:21 Go to previous messageGo to next message
jhogue is currently offline  jhogue   United States
Messages: 28
Registered: April 2005
Location: at the computer
Karma: 0
Junior Member
I inserted the code below, and the site shut down. First I got an SQL error, then blank pages. Fortunately, all is back up.

I need help with this code. I would really appreciate some help.

All of our test users are hitting Reply in their email clients, and find it confusing to use the reply button IN the email body.

Jeff

}

$variable_sender = q_singleval('SELECT name FROM {SQL_TABLE_PREFIX}mlist WHERE id='.$mtf->mlist_id);
send_email($variable_sender, $to, $subj, $body_email, $headers);
}
?>


error:
(/var/www/html/fudforum/index.php:125
/var/www/html/fudforum/index.php:187
/var/www/html/fudforum/theme/default/post.php:2022
/var/www/html/fudforum/theme/default/post.php:1718
/var/www/html/fudforum/theme/default/post.php:3750
/var/www/html/fudforum/index.php:1182
) 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2
Query: SELECT name FROM fud26_mlist WHERE id=
_GET: t=post&
_POST: msg_subject=test again June 6&thr_ordertype=0&thr_orderexpiry=1000000000&fnt_size=&fnt_ color=&fnt_face=&msg_body=testing 6.42&tmp_f_val=1&msg_poster_notif=Y&S=934599b76633d468c6ac40066 efa2112&SQ=c3cc1ca30df10dbb7b9bdc7a6e2cc38a&submitted=1&reply_t o=0&th_id=&frm_id=1&start=0&msg_id=0&pl_id=0&old_su bject=&prev_loaded=1&btn_submit=1&
Server Version: 4.1.9-standard-log
[Referring Page] http://www.xxxxxxxxx.org/fudforum/index.php?t=post&frm_id=1&S=93459 9b76633d468c6ac40066efa2112

[Updated on: Wed, 08 June 2005 14:46]

Report message to a moderator

Re: Meltdown [message #25431 is a reply to message #25427] Wed, 08 June 2005 14:28 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Like I've said in my private message, the function name you want to use is q_singleval().

As far as a query failure, check the forum's SQL error log via the log viewer to see what and why did it fail.


FUDforum Core Developer
Re: Meltdown [message #25432 is a reply to message #25431] Wed, 08 June 2005 14:30 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Judging by the added error, it seems that the reply was made to a non-mlist related forum. So you only need to perform the address change if $mtf->mlist_id is not null.

FUDforum Core Developer
Re: Meltdown [message #25439 is a reply to message #25432] Wed, 08 June 2005 14:42 Go to previous messageGo to next message
jhogue is currently offline  jhogue   United States
Messages: 28
Registered: April 2005
Location: at the computer
Karma: 0
Junior Member
The forum in question did have a mailing list rule.
Maybe I misunderstand, but I think I ALWAYS need to replace the sending email account with the forum's related email address.

What I need to happen is:

Users can hit reply (in the email client app) to a notification and post to the list, so:

forum1 sends its notifications from forum1(at)xxx(dot)com
forum2 sends its notifications from forum2(at)xxx(dot)com

forum1(at)xxx(dot)com is also the incoming (posting) email address for forum 1, so when jdoe hits Reply, he sends a message to the correct forum.

Thanks again.

Jeff
Re: Meltdown [message #25444 is a reply to message #25439] Wed, 08 June 2005 14:53 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
If $mtf->mlist_id is NULL it means that the forum is not associated with any mailing list rule.

FUDforum Core Developer
icon14.gif  Solved [message #25489 is a reply to message #25444] Thu, 09 June 2005 14:50 Go to previous message
jhogue is currently offline  jhogue   United States
Messages: 28
Registered: April 2005
Location: at the computer
Karma: 0
Junior Member
I had to hire an expert, but it works!
Users can hit reply.
I instantly saw much greater use by my testers and happier users.
It looks a little ugly, because email clients are usually set to include the original message in the reply, and these posts get long and funky.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Make a field in the registration form required
Next Topic: fud_read table huge
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 05 22:28:36 GMT 2024

Total time taken to generate the page: 0.02241 seconds