[redhat-ccm-list] how to ensure that email goes through

Thomas, Mary Mary.Thomas at starwoodhotels.com
Mon May 3 20:33:10 UTC 2004


It is inconsistent.
The workflow emails goes through.
Just created new message/notification so that errors could go to tech users.
That is when it not going thorough.

 private static void sendTechMessage(User sender, User recipient, 
	
String subject, String body, Throwable t) {
	

	
	Message msg = new Message(sender, subject, body);
	msg.save();
	//System.out.println("came here in message 1");
	if (t != null) {
	StringWriter writer = new StringWriter();
	t.printStackTrace(new PrintWriter(writer));
	System.err.println("the lenght is
attach"+writer.toString().length());
	msg.attach(writer.toString(), "stack_trace.txt");
	System.err.println("the sender is
"+sender.getPrimaryEmail().getEmailAddress());
	}
          System.err.println(" came in send tech message");
         Notification not = new Notification(recipient, msg);
//not.setIsPermanent(Boolean.FALSE);
//not.setMessageDelete(Boolean.FALSE);//not.setMessageDele
not.save();
				
		
		
		
			}

-----Original Message-----
From: Vadim Nasardinov [mailto:vadimn at redhat.com]
Sent: Monday, May 03, 2004 3:59 PM
To: Thomas, Mary; 'redhat-ccm-list at redhat.com'
Subject: Re: [redhat-ccm-list] how to ensure that email goes through


On Monday 03 May 2004 14:52, Thomas, Mary wrote:
> Created Message.
> Wrapped it  in under notification and then saved the notification.
>
> Still not seeing the expected email.
> What could be the problem??

One possible source of difficulties could be that your SMTP server
is unreachable or requires authentication or some such.  You could
try something like this:

$ telnet mail.starwoodhotels.com 25
Trying 209.160.76.3...
Connected to mail.starwoodhotels.com.
Escape character is '^]'.
220 mail.starwoodhotels.com ESMTP Sendmail 8.12.8/8.12.8; Mon, 3 May 2004
15:54:24 -0400
QUIT


(Substitute your correct SMTP server name instead of
mail.starwoodhotels.com.)

This electronic message transmission contains information from the Company that may be proprietary, confidential and/or privileged.
The information is intended only for the use of the individual(s) or entity named above.  If you are not the intended recipient, be
aware that any disclosure, copying or distribution or use of the contents of this information is prohibited.  If you have received
this electronic transmission in error, please notify the sender immediately by replying to the address listed in the "From:" field.





More information about the Redhat-ccm-list mailing list