|
Joined: Apr 2003
Posts: 359
Enthusiast
|
Enthusiast
Joined: Apr 2003
Posts: 359 |
UBB.Threads v6.4 Server: Linux ---------------- I'd like to fix the body in the emails that are sent out to members when other members reply to the posts they enable "Add this thread to my favorites". I am getting emails in this exact format with HTML: -------------------------------------------------- Gonzo replied in a thread you have selected as one of your favorites at the site: http://www.f-bodyhideout.com/ubbthreads/showthreaded.php?Cat=0&Number=19908 </font><blockquote><font class="small">Quote:</font><hr /> <b><i>Chuck said:</i></b> <img src="/ubbthreads/images/graemlins/worshippy.gif" alt="" /> <hr /></blockquote><font class="post"> Hey Chuck...did you catch the tail end of the video? <img src="/ubbthreads/images/graemlins/cool.gif" alt="" /> ------------------------------------------- How can I fix this to where the user either gets all just text without HTML or where the user gets their emails sent correctly with HTML? Or is this something that a user has to deal with in his or her email software? Thank you...
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
This fixed my html email to users. See if this helps
Find this in ubbt-inc.php
if ($htmlmail == "HTML") {
Replace it with this:
if (strtolower($htmlmail) == "html") {
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
Also in subscriptions.php another bug fix is this
In Line 164 of subscriptions.php
$mailer->send_mail("","$from","$to","$subject","$mailmessage");
change it to this
$mailer->send_mail("$emailformat","$from","$to","$subject","$mailmessage");
|
|
|
|
Joined: Apr 2003
Posts: 359
Enthusiast
|
Enthusiast
Joined: Apr 2003
Posts: 359 |
Making the changes now Chuck...
Hmmm....in my subscriptions.php file on line 164 I found an error I believe. It reads:
$mailer->send_mail("",[:"red"]"$from,[/]"$to","$subject","$mailmessage");
Appears to be missing a quote after "$from
At any rate, I'm remarking it out anyways....
|
|
|
|
Joined: Sep 2003
Posts: 803
Coder
|
Coder
Joined: Sep 2003
Posts: 803 |
Where is subscriptions.php? I have been looking for about 10 min now
|
|
|
|
Joined: Apr 2003
Posts: 359
Enthusiast
|
Enthusiast
Joined: Apr 2003
Posts: 359 |
Hahaha....it's in the cron/php directory as a subdirectory under your threads.
|
|
|
|
Joined: Apr 2003
Posts: 359
Enthusiast
|
Enthusiast
Joined: Apr 2003
Posts: 359 |
Mmm....I've made the two changes to the files and I'm still getting: ------------------ Gonzo replied in a thread you have selected as one of your favorites at the site: http://www.f-bodyhideout.com/ubbthreads/showthreaded.php?Cat=0&Number=19916 Yea baby! <img src="/ubbthreads/images/graemlins/laugh.gif" alt="" /> <img src="/ubbthreads/images/graemlins/shh.gif" alt="" /> -------------------
|
|
|
|
Joined: Sep 2003
Posts: 803
Coder
|
Coder
Joined: Sep 2003
Posts: 803 |
lol, you laugh. Im a php newbie thanks for the info.....
|
|
|
|
Joined: Apr 2003
Posts: 359
Enthusiast
|
Enthusiast
Joined: Apr 2003
Posts: 359 |
[] DrChaos said: lol, you laugh. Im a php newbie thanks for the info..... [/] I laugh because I've been playing with this stuff for about a year now and it always seems like I'm lost...sure, just ask Josh and Omegatron. I still can't figure out how they've put up with me this long....
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
Actually Gonzo
That was a second bug in subscriptions.php that Josh reported as well. "$From should be "$From"
|
|
|
|
Joined: Apr 2003
Posts: 359
Enthusiast
|
Enthusiast
Joined: Apr 2003
Posts: 359 |
Don't know if you got a chance to read my above response: Mmm....I've made the two changes to the files and I'm still getting: ------------------ Gonzo replied in a thread you have selected as one of your favorites at the site: http://www.f-bodyhideout.com/ubbthreads/showthreaded.php?Cat=0&Number=19916Yea baby! <img src="/ubbthreads/images/graemlins/laugh.gif" alt="" /> <img src="/ubbthreads/images/graemlins/shh.gif" alt="" /> -------------------
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
What do you have in your config file for:
$config['imageurl'] = "";
It should be the full URL ie. http:// as relative URLs wont' work from people's local machine.
I think that'll fix it.
|
|
|
|
Joined: Apr 2003
Posts: 359
Enthusiast
|
Enthusiast
Joined: Apr 2003
Posts: 359 |
[]JoshPet said: What do you have in your config file for:
$config['imageurl'] = "";
It should be the full URL ie. http:// as relative URLs wont' work from people's local machine.
I think that'll fix it. [/]
Here's what I got:
[:"red"]$config['imageurl'] = "http://www.f-bodyhideout.com/ubbthreads/images";[/]
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Hrm.. that should do it, unless that another mailer/bug issue.
|
|
|
|
Joined: Apr 2003
Posts: 359
Enthusiast
|
Enthusiast
Joined: Apr 2003
Posts: 359 |
Yea....it's got me on this one, then again...it doesn't take much to stump this hombre.
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
Well posted in this thread was all 3 html and mail bugs I am aware of
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|