![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Sending Email Topic Summary: Created On: 1-Mar-2006 22:21 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Assuming I've got a valid Email address, how would I send an Email via DXL?
- Louie |
|
![]() |
|
![]() |
|
Hi Louie,
attached you find a piece of code. Regards Hubertus void sendWarningEmail(string userName, string subject, string body) { if (existsUser(userName)) { User userData=find(userName) ensureUserRecordLoaded(userData) string userEmail = userData.email sendEMailNotification("from DOORS", userEmail, subject, body) } else { print "email could not be sent (user may be administrator)\n" } } |
|
![]() |
|
![]() |
|
Hi Louie,
please have a look into my posting in another thread about this topic. I think this should be almost all about sending eMails from DOORs ![]() send eMail Notifications But you shoud assure that the configuration of eMail server in your database settings is correct, otherwise you won't be able to send any eMails. Greetings Reik Schröder ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Thanks. Got it to work on my Sandbox database by setting the Email notification settings on the General Tab of the database properties (info retrived from Outlook accounts properties). Getting DB properties changes around here is a nightmare. I don't suppose there's a way to do it without changing the properties, is there? I was figuring maybe it could go out from my client rather than being sent out from the server.
- Louie |
|
![]() |
|
![]() |
|
Hi Louie,
please have a look in this thread DOORS API - tool integration examples? Tony Goodman has posted there an example of using lokal installation of Outlook to send a mail. You have only to add the "Send" method and insert the recipient to really send the mail. But the problem of this posebility of sending mails is a security risc in Outlook - of couse it will ask you befaore sending a mail via VBA! So you have to lower the security settings or press evereytime a button to really send the mail?! I would suggest to you to set the DB server properties one time to the correct settings and the mails wil be sent correctly from there. Another great advantage of using DOORs server to send the mails is the possebilty of chnaging the sender's address and of couse you are able to send the mails from every DOORs client independently from it's mail client. I hope this will help you, ![]() Greetings Reik Schröder ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
> could go out from my client rather than being sent out from the server
& > DOORs server to send the mails Just to clarify ... I've always understood the DOORS client actually sends out the email (using data from the server e.g. mail server name + any account details, and email addresses if needed). I've just checked again, now I could be wrong here if my client firewall log and mail server log are'nt telling me the truth), and the mail server log shows the connection was from the client PC, the firewall log on the client shows a connection to the mail server, and the mail server firewall does not show any connections to the mail server during the transaction time. Thats what I expected. Same results when using DXL to send email as well as CPS and failed logins as-built in functions. If you can not set the mailserver name in database properties then seems the only way round it is to use OLE automation to get the local mail client to do it, which assumes all users mail client supports OLE, but does'nt seem a good use of resource and if they wont setup mail server name in properties then might not like using mail clients in that way. I've had this trouble with several clients IT departments until we sat down and talked it though, often what they didnt like was the thought DOORS was actually an email server, rather than just a client. ------------------------- Paul Ransley<BR><BR>Beaver Computer Consultants Limited Edited: 8-Mar-2006 at 14:55 by Paul Ransley |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Sending Email
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.