Page 1 of 1
Test emails should have TEST: prepended to Subject
Posted: Wed Jul 11, 2007 6:57 pm
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
Posted: Thu Jul 12, 2007 8:44 am
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
Exchange is overidding the envelope
Posted: Fri Jul 13, 2007 8:51 pm
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
Posted: Wed Jul 18, 2007 9:17 pm
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
Posted: Thu Jul 26, 2007 3:16 pm
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
Posted: Mon Jul 30, 2007 3:48 pm
by tgilbert328
Ok. Thanks!
Tim