Re: can't attach text with mail using Google App engine? please help me
You can print the exceptions to view details 2011/9/13 John gan.tan...@gmail.com I don't know what mistake i did in the server side code of google app engine, I send my code segment to you. Thanks for advance . //server side code public class MailServlet extends HttpServlet { private static final long serialVersionUID = 1L; public void doPost(HttpServletRequest req, HttpServletResponse resp) { Properties properties = new Properties(); Session session = Session.getDefaultInstance(properties, null); String message = Welcome to www.datastoregwt.com; String attachement = attachementString for testing ; try { Message msg = new MimeMessage(session); Multipart mp = new MimeMultipart(); MimeBodyPart bodyPart = new MimeBodyPart(); bodyPart.setContent(attachement, text/plain); mp.addBodyPart(bodyPart); msg.setFrom(new InternetAddress(rajaganapathiv...@gmail.com)); msg.addRecipient(Message.RecipientType.TO, new InternetAddress(gan.tan...@gmail.com)); msg.setSubject(Invitation from www.datastoregwt.com); msg.setText(message); msg.setContent(mp); Transport.send(msg); } catch (AddressException e1) { } catch (MessagingException e2) { } catch (UnsupportedEncodingException e) { e.printStackTrace(); } } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Centering text in a Label
Try this: height:24px; line-height:24px; 2011/9/8 István Szoboszlai mrsz...@gmail.com This is a quiet big problem. It is very hard to center things verically in a browser independent way. You should try googling for it. There are a few not very straight forward solutions. This issue is not related to GWT. Üdvözlettel / Best Regards - István Szoboszlai istvan.szobosz...@inepex.com | inepex.com On Thu, Sep 8, 2011 at 12:33 PM, ph09 ph.hei...@googlemail.com wrote: Hello, I try to centering text in a Label with following CSS: .gwt-Label-1 { border: 1px solid; font-size: 13px; vertical-align: middle; text-align: center; background-color: lavender; } It works all except of vertical-align: middle. The text is always at the top of the Label. Does anyone know why? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.