Changing mass email template.

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
BGodfrey
Registered User
Posts: 31
Joined: Fri Apr 10, 2009 11:37 pm

Changing mass email template.

Post by BGodfrey » Fri Jun 14, 2019 6:07 pm

The default mass email template looks like this:

Code: Select all

The following is an email sent to you by an administrator of "{SITENAME}". If this message is spam, contains abusive or other comments you find offensive please contact the webmaster of the board at the following address:

{CONTACT_EMAIL}

Include this full email (particularly the headers). 

Message sent to you follows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

{MESSAGE}

{EMAIL_SIG}
I tried to re-organize it to look like this:

Code: Select all

{MESSAGE}

{EMAIL_SIG}

This email was sent to you by an administrator of "{SITENAME}". If this message is spam, contains abusive or other comments you find offensive please contact the webmaster of the board at the following address:

{CONTACT_EMAIL}

Include this full email (particularly the headers). 
But that produces an error when I send a test email.
I obviously have no idea how the fields in this template are used. Can someone enlighten me?
Thank you.

User avatar
Lumpy Burgertushie
Registered User
Posts: 66229
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Changing mass email template.

Post by Lumpy Burgertushie » Fri Jun 14, 2019 6:19 pm

exactly how did you edit the file and exactly which file did you edit?
what editor did you use to edit the file?

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

BGodfrey
Registered User
Posts: 31
Joined: Fri Apr 10, 2009 11:37 pm

Re: Changing mass email template.

Post by BGodfrey » Fri Jun 14, 2019 6:53 pm

Sorry. The file is language/en/email/admin_send_email.txt. I'm pretty sure that's the right one because mass emailing worked before I changed it and was broken after I changed it. :)

I'm not sure what you mean by "exactly how did I edit the file". I used UE Studio (Ultra Edit) in text mode and made the changes that you see in my first posting.

I could possibly expand on the error if it might help. It looks like this in the log:
Email error
» EMAIL/PHP/mail()
/forum/adm/index.php
I confess that the recorded error is also meaningless to me.

User avatar
Lumpy Burgertushie
Registered User
Posts: 66229
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Changing mass email template.

Post by Lumpy Burgertushie » Fri Jun 14, 2019 7:07 pm

I just did the exact same edits and it worked just fine.

use your backup copy of the email and try again.

use a good plain text editor. not any type of wysiwyg editor even in text mode because they will often add bits of code to the file that you can't see.

use notepad++ or editpad lite etc.
not notepad and not word etc.


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

BGodfrey
Registered User
Posts: 31
Joined: Fri Apr 10, 2009 11:37 pm

Re: Changing mass email template.

Post by BGodfrey » Fri Jun 14, 2019 7:40 pm

Ultra Edit Studio in text mode is a text editor just like notepad. No idea how that could mess anything up and I find it hard to believe that the creators of PHPBB used notepad to generate these files. A large part of the programming universe uses Ultra Edit/Studio.

At the beginning of this I sent a test message to the group and it worked fine.
I copied down the file then renamed the one on the server to preserve it.
I made the edit as you saw in my first post.
I uploaded the edited file and sent another test message. That one failed, generating the error message I showed you.
After some screwing around I reverted to the original file, untouched by me.
I sent another test message using the original file and got the same error.
I purged the cache and it still gives the same error.

Any idea what has gone wrong?

User avatar
Lumpy Burgertushie
Registered User
Posts: 66229
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Changing mass email template.

Post by Lumpy Burgertushie » Fri Jun 14, 2019 9:32 pm

please post here ( copy paste ) the exact message you are trying to send. there may be something in the message that is crashing php or that mod security is stopping.
and I have no idea for sure what the developers here use but I do know that the majority of them recommend notepad++ ( notice that is not notepad , they absolutely do NOT recommend notepad )



robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

BGodfrey
Registered User
Posts: 31
Joined: Fri Apr 10, 2009 11:37 pm

Re: Changing mass email template.

Post by BGodfrey » Fri Jun 14, 2019 10:58 pm

I have created a TEMP directory and placed both the original (renamed, not edited at all) and the edited version of the file in it. Here are the links:
Original
Edited

Also some new information has appeared. If I try sending either of those versions I get the error. I've tried three or four times as I tried to figure this out. All of a sudden, all of the messages I sent using the original template came through at the same time. None of the edited ones. Then later I tried something else and sent a test message and they all came through again plus the new one. It's like they are somehow not getting marked as sent internally or something. And this burst seems to occur after quite a few minutes, not immediately. Other types of emails that have been sent out from the site come immediately. I don't know if this is useful information or just a red herring.

User avatar
Lumpy Burgertushie
Registered User
Posts: 66229
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Changing mass email template.

Post by Lumpy Burgertushie » Sat Jun 15, 2019 3:40 am

when you create a mass email there is a checkbox for send now.
otherwise I believe they are sent via a cron job when someone visits the site or something like that.

what is the contents of the email you are sending out? not the template, the content you are putting in the mass email form in the admin panel.

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

BGodfrey
Registered User
Posts: 31
Joined: Fri Apr 10, 2009 11:37 pm

Re: Changing mass email template.

Post by BGodfrey » Sat Jun 15, 2019 3:53 am

Lumpy Burgertushie wrote:
Sat Jun 15, 2019 3:40 am
when you create a mass email there is a checkbox for send now.
otherwise I believe they are sent via a cron job when someone visits the site or something like that.
"Send immediately" is checked by default and I leave it checked.
what is the contents of the email you are sending out? not the template, the content you are putting in the mass email form in the admin panel.
Just testing kind of messages. Subjects like "Test 1 mass email", etc. And contents like "ignore this" or "blah" or "delete this". (My wife is the only other one in the private group that I am testing with right now.)

Thanks for sticking with me on this. I know that it will end up being something silly or obvious - most problems are after you understand them. But I'm new to PHPBB and it's pretty complex.

Post Reply

Return to “[3.2.x] Support Forum”