![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Emails with Custom msg Topic Summary: Created On: 16-Dec-2007 07:19 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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: |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Emails with Custom msg
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.