Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor neeraja.nokia's Avatar
    Join Date
    Sep 2008
    Posts
    103
    I required to implement MIDP application that sends mail,
    How to send a mail from MIDP application without servlet interaction?
    Is there any open source APIs available for that? Pls, guide me---

  2. #2
    Registered User javame_nokia's Avatar
    Join Date
    Nov 2008
    Location
    Ahmedabad
    Posts
    3
    http://www.java-tips.org/java-me-tip...e-devices.html

    Go to this url you will find a complete example of sending a mail. But as you have asked sending mails without servlet interaction, I dont think thats possible. Since for sending mails you need to have support for SMTP protocol which mobiles may not have. So you will be calling the servlet with http protocol and then servlet will send the mail.

    Hope this helps you out.

  3. #3
    Regular Contributor neeraja.nokia's Avatar
    Join Date
    Sep 2008
    Posts
    103
    Quote Originally Posted by javame_nokia View Post
    http://www.java-tips.org/java-me-tip...e-devices.html

    Go to this url you will find a complete example of sending a mail. But as you have asked sending mails without servlet interaction, I dont think thats possible. Since for sending mails you need to have support for SMTP protocol which mobiles may not have. So you will be calling the servlet with http protocol and then servlet will send the mail.

    Hope this helps you out.
    ok, thank u for ur reply.
    Isn't possible to send mail without http and other gateway utilities?
    I saw the code at the link (which was sent to me), but I have an error at the "Transport.send(m); in SendMail(-------)" function as server connection failed. Can u help me?

  4. #4
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Hi neeraja,

    for direct connection to an SMTP server, have a look at the SMTP Email MIDlet example here:

    http://developers.sun.com/mobility/m.../midp2network/

    Pit

  5. #5
    Regular Contributor neeraja.nokia's Avatar
    Join Date
    Sep 2008
    Posts
    103
    Quote Originally Posted by jappit View Post
    Hi neeraja,

    for direct connection to an SMTP server, have a look at the SMTP Email MIDlet example here:

    http://developers.sun.com/mobility/m.../midp2network/

    Pit
    Thank u very much for replying.
    I have to clear one thing, after server send mail, the MIDlet will get response tht server send(like,ur mail is successfully send). Is really server send the mail to the recepient address?, that is, Is it only works on real device not on emulator? Pls, give me the details---
    Last edited by neeraja.nokia; 2008-11-19 at 06:28.

  6. #6
    Regular Contributor sunil_bhambani123's Avatar
    Join Date
    Sep 2008
    Location
    Ahmedabad
    Posts
    254
    Hi,

    Go to the below link
    http://wiki.forum.nokia.com/index.ph...e_applications

    I have found this article in one book and you can refer that book for more details. I have mentioned the name of the book in the article.
    Sunil
    Mobile Application Developer

Similar Threads

  1. Unable to send a single byte from a midlet to a servlet
    By Futer in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2008-02-02, 23:48
  2. how can i send a mail to somebody?
    By weiyongqiang in forum Symbian C++
    Replies: 0
    Last Post: 2006-08-22, 08:29
  3. Send MMS from a MIDlet
    By regisdeau in forum General Messaging
    Replies: 2
    Last Post: 2004-08-11, 06:36
  4. Send SMS MIDlet installation problem
    By climberz in forum Mobile Java General
    Replies: 4
    Last Post: 2004-08-09, 06:27
  5. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved