Test emails should have TEST: prepended to Subject

Use this forum to suggest new features, language support, documentation, etc. for OpenEMM's roadmap

Moderator: moderator

tgilbert328
Posts: 20
Joined: Wed Jun 13, 2007 4:20 pm

Test emails should have TEST: prepended to Subject

Post by tgilbert328 »

One of the problems that i have now is that when I sent out test emails to my testers (18 in all), there is nothing in the email to make it clear this is a TEST rather than the actual mailing.

When I sent a Mailing to Test Recipients, the word "TEST: " should be added to the beginning of the subject line making it obvious that this is a test.

Currently I am manually doing this to prevent confusion about whether an email distribution actually occurred. I am worried one day I am going to forget to remove "TEST: " and send that to my subscribers.

Tim
ud
Posts: 154
Joined: Thu Aug 17, 2006 9:56 am
Location: Munich, Germany
Contact:

Post by ud »

On Admin-/Testmails the To: contains the string Adminmail or Testmail, otherwise you can only find the address here. The decision against adding this text to the Subject:: This line is considered part of the content and this should be the same as in the real mailing.

-- ud
tgilbert328
Posts: 20
Joined: Wed Jun 13, 2007 4:20 pm

Exchange is overidding the envelope

Post by tgilbert328 »

Interesting. When I read your note, I checked the message envelope and sure enough, the envelope says "Testmail", see here:

To: Testmail <tim.gilbert@XXXXX.XXX>
Subject: TEST: Test Email

However, using Outlook and MS Exchange, the TO: does not say Testmail rather it has converted my smtp name to my local domain name [TGILBERT]. Perhaps that is why other vendors use the subject line.

To save me time, could you point me in the right direction for making the change myself?

Tim
tgilbert328
Posts: 20
Joined: Wed Jun 13, 2007 4:20 pm

Post by tgilbert328 »

Well, I found the file, its MailWriterMeta.java, and I believe the change needs to be made when it creates the XML file, something like whats below in the method

public void startBlock () throws Exception {
..
..
..
..

buf.append (" </description>\n\n");
buf.append (" <general>\n");
if (data.isTestMailing())
{
buf.append(" <subject>TEST: " + xmlStr(data.subject) + "</subject>\n");
}
else
{
buf.append(" <subject>" + xmlStr(data.subject) + "</subject>\n");
}

buf.append(
" <from_email>" + xmlStr (data.from_email == null ? null : data.from_email.full) + "</from_email>\n" +

..
..
..

The only problem is that I am completely useless in Java (C/C++/C# background). I installed 'ant' an tried to setup the build.xml and EMM*properties file, but I couldn't find how to get the resin support files.

Can anyone help me compile this?

Tim
ud
Posts: 154
Joined: Thu Aug 17, 2006 9:56 am
Location: Munich, Germany
Contact:

Post by ud »

You're at the wrong place, sorry. You should modify the method addSubject in BlockCollection.java with something like:

Code: Select all

return data.isTestMailing() ? "TEST: " : "";
-- ud
tgilbert328
Posts: 20
Joined: Wed Jun 13, 2007 4:20 pm

Post by tgilbert328 »

Ok. Thanks!

Tim
Post Reply