I'm stupid.
I have stupid ideas.
But sometimes, even though they're stupid simple, they're just like, "uh? why didn't I think of that before..?!"
In this case, I just received a notification e-mail (after subscribing to the stuff), and noticed that it had <URL> in it. Woops... Okay, I should be careful about sending notification data by e-mail, replacing <URL> manually instead of through the output buffer handler, because it's never called on these...
And then it struck me.
What prevents us from adding this at the beginning of the sendmail() function..? Uh?
Code: [Select]
Duh.
Then it just... gets converted like a normal web page would. We could even automatically convert things to entities on the fly, too. Every time a mail is sent, it's passed through sendmail(). Then why bother doing 'special e-mail handling' inside $txt in this situation...?
There's probably a reason... But I can't find any. I told you -- I'm stupid.
I have stupid ideas.
But sometimes, even though they're stupid simple, they're just like, "uh? why didn't I think of that before..?!"
In this case, I just received a notification e-mail (after subscribing to the stuff), and noticed that it had <URL> in it. Woops... Okay, I should be careful about sending notification data by e-mail, replacing <URL> manually instead of through the output buffer handler, because it's never called on these...
And then it struck me.
What prevents us from adding this at the beginning of the sendmail() function..? Uh?
$message = ob_sessrewrite($message);Duh.
Then it just... gets converted like a normal web page would. We could even automatically convert things to entities on the fly, too. Every time a mail is sent, it's passed through sendmail(). Then why bother doing 'special e-mail handling' inside $txt in this situation...?
There's probably a reason... But I can't find any. I told you -- I'm stupid.


