[appengine-java] Re: cron jobs

2010-02-24 Thread lakshmi
Hi,

I am trying to send email for every hour.
i write the code of cron.xml like above.But now the admin console
shows status as follows.

Cron Job Schedule/Last Run/Last Status (All
times are UTC)

/emailing
repeated every one hour  every 1 hours (UTC)


 2010-02-24 12:28:02 on time Too many
continues


anybody help me,
Am i set sny extra setting in any fike.Please help me.

thanks
Lakshmi.

On Feb 23, 11:41 am, lakshmi sowji.ap...@gmail.com wrote:
 Thanks for your reply,

 ok i will try it.

 Thanks,
 Lakshmi.

 On Feb 22, 11:52 pm, bimbo jones bimbojone...@gmail.com wrote:



  Hi,

  If you want to receive the 'cron' word every 1 minute try logging the result
  instead of printing, or sending a email to you.

  2010/2/22 lakshmi sowji.ap...@gmail.com

   Hi,
   Thanks for your reply.

   The output for my present program is,the word a'cron' is printing only
   one time.

   But i want to print it for every  minute.

   Please help me to get that result.

   Thanks,

   Lakshmi.

   On Feb 18, 7:10 pm, bimbo jones bimbojone...@gmail.com wrote:
Hi,

if you want it to be printed on the browser you should use
pw.println(cron); pw.close(); instead of System.out.println(cron);

2010/2/18 Sowji sowji.ap...@gmail.com

 Hi,
 Please help me in cron jobs,in google app engine.
  My program main code is as follows.
 --
 import java.io.IOException;
 import java.io.PrintWriter;
 import java.text.SimpleDateFormat;
 import java.util.Calendar;
 import java.util.List;
 import java.util.Timer;
 import java.util.TimerTask;
 import javax.jdo.PersistenceManager;
 import javax.servlet.http.HttpServlet;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 public class RepeatedResults extends HttpServlet {

   public PersistenceManager
   pm=PMF.getInstance().getPersistenceManager();
   ListManager list;
  public void doGet(HttpServletRequest req, HttpServletResponse resp)
    throws IOException {
     resp.setContentType(text/plain);
     PrintWriter pw=resp.getWriter();
     System.out.println(cron);
  }
 }
  this code i wrote for printing a word like cron nuber of times.

 My cron.xml is as follows.
 --
 ?xml version=1.0 encoding=UTF-8?
  cronentries
   cron
     url/repeated/url
     descriptionrepeated every one minutes/description
     scheduleevery 1 minutes/schedule
   /cron
  /cronentries
 It was saved in war\WEB_INF
 My servlet for repeatedResults is as follws
 

 servlet
  servlet-nameRepeated/servlet-name
   servlet-classgoalsmanagement.RepeatedResults/servlet-class
  /servlet
  servlet-mapping
   servlet-nameRepeated/servlet-name
   url-pattern/repeated/url-pattern
  /servlet-mapping
 I access this url from a html file.
 but result is print only one time.not repeatedly.
 My cron job status in admin console is as follows

                     cron Job
    Schedule/Last
 Run/Last Status (All times are UTC)
                   /repeated
                    repeated every one minutes        every 1 minutes
   (UTC)

 2010-02-18 08:54:49 on time Success

 could you please help me what was my mistake.
 thanks,
 Lakshmi.

 --
 You received this message because you are subscribed to the Google
   Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2b­­unsubscr...@googlegroups.com
   google-appengine-java%2b­unsubscr...@googlegroups.com
 .
 For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.-Hide
   quoted text -

- Show quoted text -

   --
   You received this message because you are subscribed to the Google Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2b­­unsubscr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.-Hide quoted 
  text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit

[appengine-java] Re: cron jobs

2010-02-22 Thread lakshmi
Hi,
Thanks for your reply.

The output for my present program is,the word a'cron' is printing only
one time.

But i want to print it for every  minute.

Please help me to get that result.

Thanks,

Lakshmi.

On Feb 18, 7:10 pm, bimbo jones bimbojone...@gmail.com wrote:
 Hi,

 if you want it to be printed on the browser you should use
 pw.println(cron); pw.close(); instead of System.out.println(cron);

 2010/2/18 Sowji sowji.ap...@gmail.com



  Hi,
  Please help me in cron jobs,in google app engine.
   My program main code is as follows.
  --
  import java.io.IOException;
  import java.io.PrintWriter;
  import java.text.SimpleDateFormat;
  import java.util.Calendar;
  import java.util.List;
  import java.util.Timer;
  import java.util.TimerTask;
  import javax.jdo.PersistenceManager;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  public class RepeatedResults extends HttpServlet {

    public PersistenceManager pm=PMF.getInstance().getPersistenceManager();
    ListManager list;
   public void doGet(HttpServletRequest req, HttpServletResponse resp)
     throws IOException {
      resp.setContentType(text/plain);
      PrintWriter pw=resp.getWriter();
      System.out.println(cron);
   }
  }
   this code i wrote for printing a word like cron nuber of times.

  My cron.xml is as follows.
  --
  ?xml version=1.0 encoding=UTF-8?
   cronentries
    cron
      url/repeated/url
      descriptionrepeated every one minutes/description
      scheduleevery 1 minutes/schedule
    /cron
   /cronentries
  It was saved in war\WEB_INF
  My servlet for repeatedResults is as follws
  

  servlet
   servlet-nameRepeated/servlet-name
    servlet-classgoalsmanagement.RepeatedResults/servlet-class
   /servlet
   servlet-mapping
    servlet-nameRepeated/servlet-name
    url-pattern/repeated/url-pattern
   /servlet-mapping
  I access this url from a html file.
  but result is print only one time.not repeatedly.
  My cron job status in admin console is as follows

                      cron Job                                  Schedule/Last
  Run/Last Status (All times are UTC)
                    /repeated
                     repeated every one minutes        every 1 minutes (UTC)

  2010-02-18 08:54:49 on time Success

  could you please help me what was my mistake.
  thanks,
  Lakshmi.

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2b­unsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.- Hide quoted 
 text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: cron jobs

2010-02-22 Thread lakshmi
Thanks for your reply,

ok i will try it.

Thanks,
Lakshmi.

On Feb 22, 11:52 pm, bimbo jones bimbojone...@gmail.com wrote:
 Hi,

 If you want to receive the 'cron' word every 1 minute try logging the result
 instead of printing, or sending a email to you.

 2010/2/22 lakshmi sowji.ap...@gmail.com



  Hi,
  Thanks for your reply.

  The output for my present program is,the word a'cron' is printing only
  one time.

  But i want to print it for every  minute.

  Please help me to get that result.

  Thanks,

  Lakshmi.

  On Feb 18, 7:10 pm, bimbo jones bimbojone...@gmail.com wrote:
   Hi,

   if you want it to be printed on the browser you should use
   pw.println(cron); pw.close(); instead of System.out.println(cron);

   2010/2/18 Sowji sowji.ap...@gmail.com

Hi,
Please help me in cron jobs,in google app engine.
 My program main code is as follows.
--
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import javax.jdo.PersistenceManager;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class RepeatedResults extends HttpServlet {

  public PersistenceManager
  pm=PMF.getInstance().getPersistenceManager();
  ListManager list;
 public void doGet(HttpServletRequest req, HttpServletResponse resp)
   throws IOException {
    resp.setContentType(text/plain);
    PrintWriter pw=resp.getWriter();
    System.out.println(cron);
 }
}
 this code i wrote for printing a word like cron nuber of times.

My cron.xml is as follows.
--
?xml version=1.0 encoding=UTF-8?
 cronentries
  cron
    url/repeated/url
    descriptionrepeated every one minutes/description
    scheduleevery 1 minutes/schedule
  /cron
 /cronentries
It was saved in war\WEB_INF
My servlet for repeatedResults is as follws


servlet
 servlet-nameRepeated/servlet-name
  servlet-classgoalsmanagement.RepeatedResults/servlet-class
 /servlet
 servlet-mapping
  servlet-nameRepeated/servlet-name
  url-pattern/repeated/url-pattern
 /servlet-mapping
I access this url from a html file.
but result is print only one time.not repeatedly.
My cron job status in admin console is as follows

                    cron Job
   Schedule/Last
Run/Last Status (All times are UTC)
                  /repeated
                   repeated every one minutes        every 1 minutes
  (UTC)

2010-02-18 08:54:49 on time Success

could you please help me what was my mistake.
thanks,
Lakshmi.

--
You received this message because you are subscribed to the Google
  Groups
Google App Engine for Java group.
To post to this group, send email to
google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2b­unsubscr...@googlegroups.com
  google-appengine-java%2b­unsubscr...@googlegroups.com
.
For more options, visit this group at
   http://groups.google.com/group/google-appengine-java?hl=en.-Hide
  quoted text -

   - Show quoted text -

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2b­unsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.- Hide quoted 
 text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: sending mail in google app engine in java

2010-02-19 Thread lakshmi
hi,

My special thanks to Alex,Conor,Sreekanth,Henning and Ikai.

Finally i solved my problem.

I send emails from my application.

-
Here is the process.

My code is correct and don't send mails from that application.

create another application.redirect from that application to the first
application with full address as follows.

---

 resp.sendRedirect(http://yourapp-id.appspot.com/your target
file like html or servlet);

---

It will work surely.If it is not working correctly,try and try you
will get success..

All the best,

Lakshmi.

On Feb 18, 6:03 pm, lakshmi sowji.ap...@gmail.com wrote:
 Hi Alex,

    Let me say sowjanya1,and sowjanya2 are two apps in GAE.How can i
 test my mails in sowjanay2,where i send them from sowjanya1.Tell me
 clearly

 Thanks,
 Lakshmi.

 On Feb 18, 5:03 pm, Alexander Arendar alexander.aren...@gmail.com
 wrote:



  You don't need any third party server.
  Just reserve one of your deployed apps as your test server and test all your
  mail-sending stuff there.
  As Conor already explained you can't send mails testing locally.

  On Thu, Feb 18, 2010 at 2:00 PM, lakshmi sowji.ap...@gmail.com wrote:
   Thanks cowper,
   really you did a great help to me.Nearly i am searching for this
   clarity for two weeks.Thank you very much.
   But what can i do for sending emails from google app engine.
   Is there any need with third party server.can you mention those
   details also please.

   Thanks,
   Lakshmi.
   On Feb 18, 3:48 pm, Conor Power iamco...@gmail.com wrote:
The admin is an email address for some configured as an application
developer from the application console.

If you're testing from local SDK the email does not get sent so that
   could
be the issue. However for me I see log statements to the effect that the
email is being sent so you should be seeing the same unless you have
   logging
configured to output very little.

cowper

On Thu, Feb 18, 2010 at 8:14 AM, lakshmi sowji.ap...@gmail.com wrote:
 Hi Sreekanth,

 Thanks for your reply.Admin address means with which we enter in to
 admin console.Isn't it.
 That is my e-mail address, right.Even  that too not working.can you
 tell me clearly,please.

 On Feb 18, 12:12 pm, Sreekanth Raju sraj...@gmail.com wrote:
  in order to send mail in app engine, from address should be either
   admin
 or
  developer email id

 --
 You received this message because you are subscribed to the Google
   Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2b­­unsubscr...@googlegroups.com
   google-appengine-java%2b­unsubscr...@googlegroups.com
 .
 For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.-Hide
   quoted text -

- Show quoted text -

   --
   You received this message because you are subscribed to the Google Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2b­­unsubscr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.-Hide quoted 
  text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: sending mail in google app engine in java

2010-02-18 Thread lakshmi
Hi Sreekanth,

Thanks for your reply.Admin address means with which we enter in to
admin console.Isn't it.
That is my e-mail address, right.Even  that too not working.can you
tell me clearly,please.

On Feb 18, 12:12 pm, Sreekanth Raju sraj...@gmail.com wrote:
 in order to send mail in app engine, from address should be either admin or
 developer email id

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: sending mail in google app engine in java

2010-02-18 Thread lakshmi
Thanks cowper,
really you did a great help to me.Nearly i am searching for this
clarity for two weeks.Thank you very much.
But what can i do for sending emails from google app engine.
Is there any need with third party server.can you mention those
details also please.



Thanks,
Lakshmi.
On Feb 18, 3:48 pm, Conor Power iamco...@gmail.com wrote:
 The admin is an email address for some configured as an application
 developer from the application console.

 If you're testing from local SDK the email does not get sent so that could
 be the issue. However for me I see log statements to the effect that the
 email is being sent so you should be seeing the same unless you have logging
 configured to output very little.

 cowper



 On Thu, Feb 18, 2010 at 8:14 AM, lakshmi sowji.ap...@gmail.com wrote:
  Hi Sreekanth,

  Thanks for your reply.Admin address means with which we enter in to
  admin console.Isn't it.
  That is my e-mail address, right.Even  that too not working.can you
  tell me clearly,please.

  On Feb 18, 12:12 pm, Sreekanth Raju sraj...@gmail.com wrote:
   in order to send mail in app engine, from address should be either admin
  or
   developer email id

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2b­unsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.- Hide quoted 
 text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: sending mail in google app engine in java

2010-02-18 Thread lakshmi
Thanks for your reply.
let me try it.


On Feb 18, 5:03 pm, Alexander Arendar alexander.aren...@gmail.com
wrote:
 You don't need any third party server.
 Just reserve one of your deployed apps as your test server and test all your
 mail-sending stuff there.
 As Conor already explained you can't send mails testing locally.



 On Thu, Feb 18, 2010 at 2:00 PM, lakshmi sowji.ap...@gmail.com wrote:
  Thanks cowper,
  really you did a great help to me.Nearly i am searching for this
  clarity for two weeks.Thank you very much.
  But what can i do for sending emails from google app engine.
  Is there any need with third party server.can you mention those
  details also please.

  Thanks,
  Lakshmi.
  On Feb 18, 3:48 pm, Conor Power iamco...@gmail.com wrote:
   The admin is an email address for some configured as an application
   developer from the application console.

   If you're testing from local SDK the email does not get sent so that
  could
   be the issue. However for me I see log statements to the effect that the
   email is being sent so you should be seeing the same unless you have
  logging
   configured to output very little.

   cowper

   On Thu, Feb 18, 2010 at 8:14 AM, lakshmi sowji.ap...@gmail.com wrote:
Hi Sreekanth,

Thanks for your reply.Admin address means with which we enter in to
admin console.Isn't it.
That is my e-mail address, right.Even  that too not working.can you
tell me clearly,please.

On Feb 18, 12:12 pm, Sreekanth Raju sraj...@gmail.com wrote:
 in order to send mail in app engine, from address should be either
  admin
or
 developer email id

--
You received this message because you are subscribed to the Google
  Groups
Google App Engine for Java group.
To post to this group, send email to
google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2b­unsubscr...@googlegroups.com
  google-appengine-java%2b­unsubscr...@googlegroups.com
.
For more options, visit this group at
   http://groups.google.com/group/google-appengine-java?hl=en.-Hide
  quoted text -

   - Show quoted text -

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2b­unsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.- Hide quoted 
 text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: sending mail in google app engine in java

2010-02-17 Thread lakshmi
Hello Henning,

Thanks for your reply.

here is my full code with which i am trying to send  email from Google
app engine.

import java.io.IOException;
import java.io.PrintWriter;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class TestMail extends HttpServlet {

 private static final String emailMsgTxt = My first java
mail;

private static final String emailSubjectTxt = A test from gmail;

   //Here sowjanya is my appid and my email address is
sowji.ap...@gmail.com

private static final String emailFromAddress =
sowji.ap...@sowjanya.appspot.com;

private static final String[] sendTo ={ sowji.ap...@gmail.com };

private static final long serialVersionUID = 1L;

public void doGet(HttpServletRequest req, HttpServletResponse resp)
 throws IOException {

PrintWriter pw=resp.getWriter();

   resp.setContentType(text/plain);

   try{

boolean debug = true;

 Properties props = new Properties();

 Session
session=Session.getDefaultInstance(props,null);

session.setDebug(debug);

Message msg = new
MimeMessage(session);

InternetAddress addressFrom = new
InternetAddress(emailFromAddress);

 msg.setFrom(addressFrom);

 InternetAddress[] addressTo = new
InternetAddress[sendTo.length];

 for (int i = 0; i  sendTo.length; i+
+) {

  addressTo[i] = new
InternetAddress(sendTo[i]);

  }
 
msg.addRecipients(Message.RecipientType.TO, addressTo);

 msg.setSubject(emailSubjectTxt );

 msg.setContent( emailMsgTxt , text/
plain);

 Transport.send(msg);

  pw.println(sent successfully);
  }
catch(AddressException ae){

System.out.println(ae.getMessage());
}
catch(MessagingException me){

System.out.println(me.getMessage());
}
  catch(Exception e){

System.out.print(e.getMessage());

  }
}
}


With this code i can't get any errors or emails.

Is this topic need any setups in any file.please tell me clearly.

My doubt is that,how can google app engine send mails with out any
authentication checking for from address.


Please, help me.
Thanks,
Lakshmi.
On Feb 17, 11:34 pm, Henning henning2...@hotmail.de wrote:
 Hello,

 I have the same problem, but it is not about the favicon.
 It is about getting app engine to send through smtp.googlemail.com an
 email.
 Is this possible ?

 Are these props ever considered by Transport.send ??

          props.put(mail.smtp.host,smtp.gmail.com);

          props.put(mail.smtp.username,sowji.apr10);

          props.put(mail.smtp.PASSWORD,smtp.gmail.com);

 My app only sends emails if I use setFrom(*) inserting an app admin,
 developer or a some...@myapp.appspot.com  address.

 Best regards,
 Henning

 On Feb 11, 1:32 pm, Sowji sowji.ap...@gmail.com wrote:



  Hi, i am trying to send a mail with google app engine wuth java.

  My code is,

        Properties props =*new* Properties();

          props.put(mail.smtp.host,smtp.gmail.com);

          props.put(mail.smtp.username,sowji.apr10);

          props.put(mail.smtp.PASSWORD,smtp.gmail.com);

            Session session = Session.*getDefaultInstance*(props, *null*);

          String msgBody = Hai this is my first mail through java
  programming;

  *        try* {

                      Message msg=*new* MimeMessage(session);

                      msg.setText(hai...+msgBody);

                      msg.setSubject(First Message from java);

                      msg.setFrom(*new* InternetAddress(my...@gmail.com));

  msg.setRecipient(Message.RecipientType.*TO*,*new*InternetAddress(
  my...@gmail.com));

                      Transport.*send*(msg);

                      PrintWriter pw=resp.getWriter();

                      pw.println(html/bodymail is
  seding.../body/html);

              }

  *        catch*(AddressException adde){

                      //   System.*out*.print(error in address

[appengine-java] Re: sending mail in google app engine in java

2010-02-16 Thread lakshmi
Hi,
Thanks for your reply.But i can not get any error or mail ,even i set
that favicon.

please,help me.

On Feb 12, 12:12 am, Ikai L (Google) ika...@google.com wrote:
 That's just your browser trying to get a favicon from your site:

 http://en.wikipedia.org/wiki/Favicon

 http://en.wikipedia.org/wiki/FaviconCreate one and put it in your app
 where it is accessible athttp://yourappid.appspot.com/favicon.ico





 On Thu, Feb 11, 2010 at 4:32 AM, Sowji sowji.ap...@gmail.com wrote:
  Hi, i am trying to send a mail with google app engine wuth java.

  My code is,

        Properties props =
  *new* Properties();

          props.put(
  mail.smtp.host,smtp.gmail.com);

          props.put(
  mail.smtp.username,sowji.apr10);

          props.put(
  mail.smtp.PASSWORD,smtp.gmail.com);

            Session session = Session.*getDefaultInstance*(props,
  *null*);

          String msgBody =
  Hai this is my first mail through java programming;

  *        try* {

                      Message msg=
  *new* MimeMessage(session);

                      msg.setText(
  hai...+msgBody);

                      msg.setSubject(
  First Message from java);

                      msg.setFrom(
  *new* InternetAddress(myown my...@gmail.com@gmail.com));

                      msg.setRecipient(Message.RecipientType.
  *TO*,*new* InternetAddress(my...@gmail.com));

                      Transport.*send*(msg);

                      PrintWriter pw=resp.getWriter();

                      pw.println(
  html/bodymail is seding.../body/html);

              }

  *        catch*(AddressException adde){

                      //   System.
  *out*.print(error in address);

                  }

  *        catch*(MessagingException mse){

                         // System.
  *out*.print(error in messaging);

                  }
    For this code i did not get any mail or any errors  as reply.

   My console print warning like this,

  The server is running athttp://localhost:3624/

  Feb 11, 2010 12:22:58 PM
  com.google.appengine.tools.development.LocalResourceFileServlet doGet

  WARNING: No file found for: /favicon.ico

  Feb 11, 2010 12:23:00 PM
  com.google.appengine.tools.development.LocalResourceFileServlet doGet

  WARNING: No file found for: /favicon.ico

   Please help me to solve this problem.

  Thanks,

  Lakshmi.

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2b­unsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

 --
 Ikai Lan
 Developer Programs Engineer, Google App 
 Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine- Hide 
 quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Running a cron job within a time span of work days

2010-02-11 Thread lakshmi
Hi,Imran.


  I am doing the same code in my program.but it is not working.could
you please tell me, is it need any another settings.

On Feb 10, 1:48 pm, Imran M Yousuf imyou...@gmail.com wrote:
 Hi,

 I want to configure a cron job for running every 2 minutes from (e.g.)
 1000 to 1600 hours.

 Firstly, can I use something as follows? Secondly, how can I specify
 how long the cron job will run?

   cron
     url/update/url
     descriptionRepopulate data every 2 minutes from 10:00 AM/description
     scheduleevery 2 minutes sun,mon,tue,wed,thu 10:00/schedule
     timezoneAsia/Dhaka/timezone
   /cron

 Thank you in advance,

 --
 Imran M Yousuf
 Entrepreneur  Software Engineer
 Smart IT Engineering
 Dhaka, Bangladesh
 Email: im...@smartitengineering.com
 Blog:http://imyousuf-tech.blogs.smartitengineering.com/
 Mobile: +880-1711402557

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.