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: Sending Email
Topic Summary:
Created On: 1-Mar-2006 22:21
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.
 1-Mar-2006 22:21
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Assuming I've got a valid Email address, how would I send an Email via DXL?

- Louie
Report this to a Moderator Report this to a Moderator
 2-Mar-2006 07:51
User is offline View Users Profile Print this message


Hubertus Grobbel

Posts: 58
Joined: 3-May-2005

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"
}
}
Report this to a Moderator Report this to a Moderator
 2-Mar-2006 09:42
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

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
Report this to a Moderator Report this to a Moderator
 6-Mar-2006 23:20
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 7-Mar-2006 09:17
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

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
Report this to a Moderator Report this to a Moderator
 8-Mar-2006 14:53
User is offline View Users Profile Print this message


Paul Ransley

Posts: 10
Joined: 20-Sep-2004

> 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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.