Mailing List- Using a Reply-able email sending account [message #25291] |
Fri, 03 June 2005 20:01 |
jhogue
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
|
|
|
|
could it be this easy? [message #25327 is a reply to message #25304] |
Mon, 06 June 2005 19:56 |
jhogue
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: Thanks [message #25331 is a reply to message #25329] |
Mon, 06 June 2005 22:08 |
Ilia
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
|
|
|
Meltdown [message #25427 is a reply to message #25331] |
Wed, 08 June 2005 14:21 |
jhogue
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 |
Ilia
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 |
Ilia
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 #25444 is a reply to message #25439] |
Wed, 08 June 2005 14:53 |
Ilia
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
|
|
|
|