How to connect to a smtp server

Is there any way to connect to a smtp server? I'm using the following code and receiving the following error:
connection = ( StreamConnection ) Connector.open( "socket://" + host + ":" + port );
error:
javax.microedition.io.ConnectionNotFoundException: The requested protocol does not exist socket://smtp_ip:25
Thanks in advance.

[nsrussell],
Under the MIDP profile specification, it is mandatory for all kVM implementations to support the HTTP protocol i.e. it is mandatory to provide the support for the HttpConnection interface in the javax.microedition.io package. Support for the other connection protocols are optional, which means that this will depend on the person/organisation who provided the KVM implementation.
Looking at the exception that you received, looks like the kVM that you have used to run the code does not support the StreamConnection interface.
HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/

Similar Messages

  • I have set up a new email account however it is unable to connect to the smtp server as it seems to be offline - how do i take the smtp server online?

    I have set up a new email account however it is unable to connect to the smtp server as it seems to be offline - how do i take the smtp server online?

    the smtp server is the property of the mail provider and running in their server room
    talk to them
    and make sure the ports required by the mail providers smtp server are not blocked by your firewall or by your router or by your isp

  • How to implement SMTP Email ping / Telnet connection to a SMTP Server?

    Dear all,
    i want to implement an advanced email address check where a connection to target smtp server is performed and the reply from the server is read back.
    This program should check if the user exists and is accepted by the smtp server.
    An alternative/part of the solution could be to perform a TELNET connection to the smtp host and get the output without sending an email.
    Has anybody done this before?
    Thanks a lot in advance.
    Regards,
    Adam

    Adam,
    Check this program.
    Cheers,
    Thomas.
    REPORT ZTMG_TEST LINE-SIZE 132.
    * Test SAP FTP functions
    DATA: BEGIN OF MTAB_DATA OCCURS 0,
    LINE(132) TYPE C,
    END OF MTAB_DATA.
    DATA: MC_PASSWORD(20) TYPE C,
    MI_KEY TYPE I VALUE 26101957,
    MI_PWD_LEN TYPE I,
    MI_HANDLE TYPE I.
    START-OF-SELECTION.
    MC_PASSWORD = 'password'.
    DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.
    *-- FTP_CONNECT requires an encrypted password to work
    CALL 'AB_RFC_X_SCRAMBLE_STRING'
    ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
    ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
    ID 'DSTLEN' FIELD MI_PWD_LEN.
    CALL FUNCTION 'FTP_CONNECT'
    EXPORTING
    USER = 'userid'
    PASSWORD = MC_PASSWORD
    HOST = 'servername'
    RFC_DESTINATION = 'SAPFTP'
    IMPORTING
    HANDLE = MI_HANDLE
    EXCEPTIONS
    NOT_CONNECTED = 1
    OTHERS = 2.
    CHECK SY-SUBRC = 0.
    CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
    HANDLE = MI_HANDLE
    COMMAND = 'dir'
    TABLES
    DATA = MTAB_DATA
    EXCEPTIONS
    TCPIP_ERROR = 1
    COMMAND_ERROR = 2
    DATA_ERROR = 3
    OTHERS = 4.
    IF SY-SUBRC = 0.
    LOOP AT MTAB_DATA.
    WRITE: / MTAB_DATA.
    ENDLOOP.
    ELSE.
    * do some error checking.
    ENDIF.
    CALL FUNCTION 'FTP_DISCONNECT'
    EXPORTING
    HANDLE = MI_HANDLE
    EXCEPTIONS
    OTHERS = 1.

  • TS3276 Hi there I am having trouble with my outlook express this is the first time it has happened it keeps telling me can't connect to the SMTP server and every password I have tried is incorrect this is for 'iCloud' very frustrating as all our phones ar

    Hi there I am having trouble with my outlook express this is the first time it has happened it keeps telling me can't connect to the SMTP server and every password I have tried is incorrect this is for 'iCloud' very frustrating as all our phones are ok

    Well I am feeling a bit silly now because that was all I had to do. In the past Workgroup Manager had always opened right up to the list of my users, I never even thought to click on that but apparently that was all that was needed.
    I still am not sure how the iChat Server preferences changed themselves on me, but it is not the first time I have had weird "settings" issues with our Snow Leopard Server.
    Thanks!

  • How to connect to a Sql server from Oracle using db link

    Hi All,
    Does anybody have any idea about how to connect to a sql server from oracle database using db link to syncronize the data? I need to pull the data from Sql server table to Oracle tables and relay messages back to the sql server.
    Thank you,
    Praveen.

    we have 2 products - DG4MSQL and DG4ODBC.
    DG4ODBC is for free and requires a 3rd party ODBC driver and it can connect to any 3rd party database as long as you use a suitable ODBC driver
    DG4MSQL is more powerfull as it is designed for MS SQL Server databases and it supports many functions it can directly map to SQL Server equivalents - it can also call remote procedures or participtae in distributed transactions. Please be aware DG4MSQL requires a license - it is not for free.
    Check out Metalink and you'll find notes how to configure both products.
    For a generic overview:
    Note.233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases
    And the setup notes:
    DG4ODBC
    Note.561033.1 How to Setup DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX) :
    Note.466225.1 How to Setup DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit RDBMS.HS-3-2 :
    Note.109730.1 How to setup generic connectivity (HSODBC) for 32 bit Windows (Windows NT, Windows 2000, Windows XP, Windows 2003) V817:
    Note.466228.1 How to Setup DG4ODBC on Linux x86 32bit
    DG4MSQL
    Note.466267.1 How to Setup DG4MSQL (Database Gateway for MS SQL Server) on Windows 32bit
    Note.562509.1 How to Setup DG4MSQL (Oracle Database Gateway for MS SQL Server) 64bit Unix OS (Linux, Solaris, AIX,HP-UX)
    Note.437374.1 How to Setup DG4MSQL (Oracle Database Gateway for MS SQL Server) Release 11 on Linux

  • How to connect client database to server database

    please provide me the steps that how to connect client database to server database in oracle 10g i am getting error ORA-12560 TNS:Protocol adapter error.

    Why don't you search in this forum ???? There are many link which would help
    ORA-12560 adapter error, connecting to remote database
    ORA-12560: TNS:protocol adapter error
    How to solve ORA-12560:TNS:protocol adapter error?
    ORA-12560: TNS: protocol adapter error

  • How to connect LIVE CYCLE Policy server from ADOBE ACROBAT

    Hi All,
    I want to know how to connect to Livecycle Policy Server from Adobe Acrobat.
    I had generated mykeystore and changed the server.xml.
    https://localhost:443/ is working on server m/c
    but when i configure Acrobat security setting and add new server with server name as the IP Address of Server(10.224.72.38)
    then it gives error : "Enable to connect to the service at https://10.224.72.38:443.
    Please tell me how to connect to the server.
    Thanks in Advance

    Hi All,
    I want to know how to connect to Livecycle Policy Server from Adobe Acrobat.
    I had generated mykeystore and changed the server.xml.
    https://localhost:443/ is working on server m/c
    but when i configure Acrobat security setting and add new server with server name as the IP Address of Server(10.224.72.38)
    then it gives error : "Enable to connect to the service at https://10.224.72.38:443.
    Please tell me how to connect to the server.
    Thanks in Advance

  • How to connect j2me to sip server

    Hi friends ...
    I am new to this topic and i just want to know how to connect a real sip server with the j2me application .
    I tried using the GoSIP demo given in wtk2.5 . its working fine with local SIP proxy and registrar given in that .
    But i want to connect to a real SIP Server. Even i have a registered sip number.
    Can any one please help me how to sort out this problem as i am very new to this topic. Is there any source given for this ??? If so please tell me ...
    Thanks in advance ......

    is it possible to make
    voice calls from the GoSIP example given in the
    wtk2.5 demo examples ?
    Probably not. Have you tried?
    I have a sip account and i just want to know how to
    register my sip account with the sip server using a
    j2me application .
    Change the SipHeader and / or SipAddress
    What are the changes to be made in the GoSIP example
    to connect to a real sip server and not to the sip
    proxy server
    See above
    and what are the syntax to be changed
    in it ????
    Syntax is a property of the programming language, not the application.
    And one question mark is enough to pose a question, 4 is overkill and perceived as rudeness.
    Please help me in solving out this problem ....
    What have you done to help yourself?
    Read the javadoc for jsr-180
    http://www.forum.nokia.com/document/Java_ME_Developers_Library_v2/GUID-2508C2ED-C0BE-4512-9302-6805AB7ACB0E/index.html
    Introduction to the SIP API for Java ME
    http://dev2dev.bea.com/lpt/a/565
    A presentation on the architecture and capabilites of SIP
    http://phoenix.labri.fr/documentation/sip/Documentation/Papers/Programming_SIP/Presentation/Jain/SIP_for_J2ME.pdf
    Thanks in advance ....
    If you're looking to solve a need by cut-n-paste programming sans understanding, you're unlikely to get it here.
    Increase your level of understanding, experiment with your codes and post back when you have a specific issue.
    Good luck, Darryl

  • How to connect to ms sql server analysis server

    I am interested to learn how to use the sql server olap technology
    --can any one help?
    and also i need how to connect to the analysis server and get data from the cubes.
    is there a demo available...possibly a demo application as well?
    or site that shows or uses OLAP technology using java.
    thanx in advance
    ashok

    I was thinking about how to achieve that. But I have not found any opensource JDBC driver or package that provides the feature you are looking for.
    However there is still a change of building some kind of bridge through web services. You could implement a web service with the .NET framework, exposing whichever you need of MS Analysis service to a Java WS client.
    Good luck

  • "Could not connect to this SMTP server" error box.

    I suspect this is common, but what do I do? I get an error box when I attempt to send outgoing mail from Mail. Connection Doctor tells me under smtp.mac.com:budsteetle "Could not connect to this SMTP server. Check your network connection and that you entered the correct information in the Account preferences." I have made not changes in my account, so this appears to be an Apple problem. I can send mail OK through MobileMe on my old .Mac account. Ideas? Usually, the Outbox empties eventually, so far it has been 1/2 a day.
    thank you...

    Hi Bud, and a warm welcome to the forums!
    I saw this earlier, but hoped a Mail expert would drop by, or at least somebody that liked the dot mc service!
    Might see this thread...
    http://discussions.apple.com/thread.jspa?threadID=1359604
    And if you can interpolate, this Leopard doc...
    http://support.apple.com/kb/TS1307?viewlocale=en_US

  • Could not connect to this SMTP server

    Could not connect to this SMTP server. Check your network connection and that you
    entered the correct information in the Account preferences.
    Mail can connect to the internet. My server is Verizon DHL. I restarted my Modem and I still can send mail. I also checked the outgoing mail settings and everything was OK. I still can't send mail but can receive. Is this a mail problem or a Verizon problem?
    Thanks,
    Rich

    Change your port for the SMTP-server (not POP3 or IMAP!) from 25 to 587 (or vice versa, if it's already on 587). If SSL is enabled, try disabling it temporary for testing.

  • How do I connect to an SMTP server that requires a username and password?

    Hi,
    I am currently working on a project for university which requires me to send and receive email. I was until this week able to send mail no problem, but now the SMTP server has been upgraded so that each time a mail is sent it requires the username and password.
    Ideally the connection should be made using TLS/SSL, and not use the Authenticator method. I want to pass the username and password directly if possible.
    I've been trying to use the following but have been getting handshake, and other exceptions:
    SMTPSSLTransport smtpSSLtransport = new SMTPSSLTransport(session,
                        new URLName("smtp", smtpHost, port, null-File,
                        "USERNAME", "PASSWORD"));
            smtpSSLtransport.setStartTLS(true);
            smtpSSLtransport.connect(new Socket(smtpHost, port));
            smtpSSLtransport.sendMessage(smtpMessage,                                                     message.getAllRecipients());
            smtpSSLtransport.close();Can anyone correct this piece of code for me or point me in the right direction of what classes and methods I should be using?
    Many thanks in advance,
    Gordon

    I always wonder what misleads people to do things this way.
    Was there some example you saw that suggested that instantiating
    an SMTPSSLTransport was the correct approach? I hope not.
    See the smtpsend.java demo program for how to use SMTP
    authentication. If you need to use SSL, see the SSLNOTES.txt
    file for hints on using the "smtps" protocol. smtpsend.java also
    illustrates use of SSL, but you'll need to fix a bug in it to use the
    correct property names ("mail.smtps.auth", etc.).

  • Unable to connect to Cox SMTP server via home wifi

    Two weeks ago my wife's iPad became unable to send email via her Cox email account after a year of working perfectly.  Shortly thereafter, my iPhone Cox mail account started acting the same way when it was connected to my home network.  When the iPhone is connected via 4G, the Cox mail account works fine.  My Yahoo account on my iPhone works perfectly.  My wife has a Yahoo account on her iPad that also works flawlessly.
    I have a 5th Generation Airport Extreme running 7.6.3.  The ISP for this location is Charter.
    I can ping the Cox SMTP server from my Macbook Pro connected to this network.  My connection to the Cox account via Apple Mail on the MBP also works, although it has sporadically also exhibited the same problem. 
    I have tried to set up a new Cox account on my wife's iPad, my iPhone, and my iPad.  Once I enter the credentials, the account setup gets hung at the Verifying step and fails. 
    For some reason, the iOS devices are unable to communicate through my Airport Extreme to the Cox SMTP server.
    At the time the problem started, there were no relevant software or firmware updates applied.
    And don't tell me this is a Mail problem.  If this were a Mail problem, how come it works fine when connected to the cellular network?

    Yahoo settings for both POP and IMAP are in the linked article.
    Yahoo POP Mail Settings

  • How to connect to IMAP mail server using java ?

    Hello Friends,
    I need to include a mailing facility in my application. Now its not the smtp server instead I have to connect to the IMAP server.
    Pls provide your valuable suggestions as to how do I go about this ?
    What API will I need to download ?? As javamail API does not have IMAP package.
    Thank you for your attention.
    Regards

    What API will I need to download ?? As javamail API does not have IMAP package.What gave you that idea? JavaMail does support IMAP.

  • HT4519 How do I use one smtp server for multiple accounts?

    I have 5 email accounts on my iPhone.Though they are different providers, I've been using the same smtp server. To simplify my life, I'd like to delete 4 servers. However, each is considered a Primary server and is undeletable. How do I get around this?

    Direct your downloads to Users-Shared

Maybe you are looking for

  • JBO error deploying under Tomcat 3.2.2

    I've created the JSP BC4J application and deployed under Tomcat. I've followed Chris Schalk's tips on adding the jar file in the CLASSPATH( for Tomcat.bat). But, I still get folowing errors: Error: 500 Location: /BugEnter_html/ReportView_Insert.jsp I

  • Yosemite Shuts Down

    IMac (24" Early 2009) Processor 3.06 GHz Intel COre 2 Duo Memory 6 GB Graphic NVIDIA GeForce GT 130 512 MB OSX Yosemite Version 10.10 After the computer starts up I can work in it from a few minutes to almost ten minutes before suddenly it will shut

  • Using BT Mail With Mac

    I now use a Macbook and Mac Mail which connects to my BT e mail account.  I see the e mails on my Macbook but thought that this downloaded them from my on line account.  However, when i look at the on line account i have hundreds of e mails in there

  • Problems using Enhanced JavaBean Support

    I'm extremely new to extending Forms using JavaBeans, and clearly am doing something wrong. I've created a fairly simple class that exposes a single method. The class performs as expected, when run from my IDE, but I've had no luck extending a form w

  • Partner Id & Name display in Web UI - CRM 2007

    Dear Friends, I am using CRM 2007 BBPCRM 600 SP5, CRMUIF 600 SP5. I have doubt in service order. In Webclient UI, Sold to party & Ship to party fields displayed only name ie. Company & partner name at header level. [Component: BT116H_SRVO View: BT116