Previous Thread
Next Thread
Print Thread
Rate Thread
#266195 01/06/2004 5:03 PM
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...

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
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
Offline
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
Offline
Joined: Sep 2003
Posts: 803
Where is subscriptions.php? I have been looking for about 10 min now

Sponsored Links
Duck #266200 01/06/2004 5:45 PM
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
Offline
Joined: Sep 2003
Posts: 803
lol, you laugh. Im a php newbie


thanks for the info.....

Duck #266203 01/06/2004 6:03 PM
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
Offline
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"

Sponsored Links
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=19916

Yea 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.

Daine #266207 01/06/2004 8:20 PM
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.

Daine #266209 01/06/2004 8:42 PM
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
Offline
Joined: Apr 2001
Posts: 3,266
Well posted in this thread was all 3 html and mail bugs I am aware of


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)