Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Emails with Custom msg
Topic Summary:
Created On: 16-Dec-2007 07:19
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 16-Dec-2007 07:19
User is offline View Users Profile Print this message


cv p

Posts: 12
Joined: 13-Dec-2007

Hi
I'm trying to send email from DOORS to specific User Groups to inform them about certain things ahppening in DOORS, like for example, an attribute date which is approaching.
Is it possible to use a message in the email? For eg: Email says: "Expiry Date of Module M is due on 01/01/2008". Here'M' is name of the module and '01/01/2008' is the value of attribute Expiry Date. Something like this...
How do we achieve this?
Another query is to send emails to multiple users. Am using:
User user
for user in userList do {
string uName = user.name
string email = user.email
string uSys = user.systemLoginName

if !null uSys && !null email then {
string eSubject = "Doors Email Test "
string message = "This email is a test for future Doors Maintenance Warning\n
In the future this message will have DATE, TIME and a Brief Description.\nAs always Thanks\n Doors Administrator\n"

bool Sent = sendEMailNotification("DOORS",email,eSubject,message)
print Sent "\n"
}
}

But this doesn't seem to send emails to users for some reason.
Any help would be great.
Regards
cvp
Report this to a Moderator Report this to a Moderator
 16-Dec-2007 07:27
User is offline View Users Profile Print this message


cv p

Posts: 12
Joined: 13-Dec-2007

Hi
A small correction to my own question posted here. The above code does send emails, however, send to all Users in the DOORS Database. How do we specify to send emails to certain User Groups only?

Regards
cvp
Report this to a Moderator Report this to a Moderator
 17-Dec-2007 09:20
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

There is a for user in group loop that you can use to do this.

User u
Group g = find(GROUP_NAME)

for u in g do
{
// check user and send email
}

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 17-Dec-2007 12:01
User is offline View Users Profile Print this message


cv p

Posts: 12
Joined: 13-Dec-2007

Dear Tony

Thanks.
Is it possible to use a message in the email? For eg: Email says: "Expiry Date of Module M is due on 01/01/2008". Here'M' is name of the module and '01/01/2008' is the value of attribute Expiry Date. Something like this...
How do we achieve this?

Regards
cvp
Report this to a Moderator Report this to a Moderator
 17-Dec-2007 13:08
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Unless I misunderstand, you have already answered your own question.
The last parameter of the call to sendEmailNotofocation contains the message?

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 17-Dec-2007 14:08
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

You can also build a Skip list with the email addresses of those you wish to email with the same message.

The key of the skip list doesn't matter. The value contains the email address. I typically use the username as the key.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 19-Dec-2007 23:17
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

If you're asking what I think you are about customizing the message with module name, etc.: Just concatenate the name of the module into your custom message somewhere.

For example:
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.