I Can't send a message with JavaMail

I can't send mail with JavaMail. I Try send a e-mail, for example, to: [email protected], from: [email protected], my smtp: smtp.alunos.ufu.br, but when i try it, i received a message the e-mail [email protected] not in server smtp.alunos.ufu.br.
I don't anderstend what happen. I need the alunos.ufu.br send my message to [email protected]
Somebody can help me ?????

I think the problem is that your smtp server smtp.alunos.ufu.br is not relaying to addresses not local to itself. Please post the exact stack trace. There is some 500 level error being returned by the server that will tell you exactly what is happening.

Similar Messages

  • How to send a message with javamail api

    Hi, anybody can tell me how i do to send a message with javamail?
    Thanks.
    Daniele.

    [rossifumi80],
    Here's a simple JavaMail application SendMessage.java that will connect a SMTP host and send a mail message out:
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class SendMessage {
      public static void main (String args[]) throws Exception {
        String host = args[0];
        String from = args[1];
        String to = args[2];
        // Get system properties
        Properties props = System.getProperties();
        // Setup mail server
        props.put("mail.smtp.host", host);
        // Get session
        Session session = Session.getDefaultInstance(props, null);
        // Define message
        MimeMessage message = new MimeMessage(session);
        // Set the from address
        message.setFrom(new InternetAddress(from));
        // Set the to address
        message.addRecipient(Message.RecipientType.TO,
          new InternetAddress(to));
        // Set the subject
        message.setSubject("Hello JavaMail");
        // Set the content
        message.setText("Welcome to JavaMail");
        // Send message
        Transport.send(message);
    }HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • HT5622 Why can I send a message with an attached photo to one contact on phone or email and can't to another contact. I can sent message on iPhone still I was using messages on iPad

    Why can I send message on iPad messages to one contact and not send same message with same photo to another contact. I can sent message on iPhone to same contact

    I would guess that the problem contact does not have iMessage turned on. The iPad can only send iMessages not SMS messages (phone text). You can send a message to this contact with your iPhone because your iPhone can send SMS text messages.

  • Can't send text messages with PC Suite

    when I go to the message option in pc suite it says "operation could not be completed". All other options eg. synchronization and music are working fine it is just with the messages option that i can't do anything eg. cant send mesages can't create or delete messages; I can read saves messages from inbox and draft though.I have tried reinstalling pc suite many times but it does not help. I am using windows XP-sp2 and latest version of pc suite available on nokia website.
    can anyone please help me with this problem???

    What is your phone?
    What is your PC Suite version?
    How many messages you have in phone's message folders?
    Anyway, if you have some messages what you do not need anymore, delete those. And check if that help?

  • Can't send sms messages with jabber, how to fix that?

    I've never really used ichat before and apparently sms messages can't be sent using jabber. Is there anything i can use or change on my ichat so that i'm able to send sms messages ?

    Hi,
    As you have somewhat found out it can only be AIM Buddies (Or rather US Phones via the AIM service).
    The Computer has to be set to "be In" the United States (See th Language and Text pane in Lion or International in earlier OS versions.
    The Phone then has to be on a Carrier that also takes the AIM SMS forwarding service.
    Search the App store for SMS apps and Utilities
    11:23 PM      Friday; February 3, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How do I revert to iOS 5? I can't send picture messages with iOS 6!

    I'm unable to send picture messages anymore, ever since I updated my iPhones system. What do I do to revert back to iOS 5?

    There is no legit way at all to go back.

  • I can't send a message with a PDF attachment using Earthlink with Firefox It works with IE and Earthlink

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/937363]]</blockquote>
    I can send JPEG and .doc files, but cannot send PDF files. It has just happened again. it is a random occurrence.
    If I open Earthlink e-mail in IE, all is OK. If I use hotmail with Mozilla, I can send PDF files. It is apparently a problem only between Mozilla and Earthlink

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • Why can't i send text messages with my iPad

    Wh can't I text messages with my ipad?

    You can send iMessages with your iPad, not regular SMS/MMS.
    http://support.apple.com/kb/TS2755

  • TS2755 Does anyone know why: when using Messages on my iPad, a cannot send a message with only text on it? Strange though, I can send a message with text AND a photo??

    Does anyone know why, when using Messages on my iPad, a cannot send a message with only text on it? Strange though, I can send a message with text AND a photo??

    Hi Cass,
    If you are having issues with Messages on your iPad, you may find the following article helpful:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Regards,
    - Brenden

  • How can I send a message from database to a J2EE application?

    How can I send a message from database to a J2EE application?
    If I have a codetable in database that has new or modified values I have to refresh the codetable in my J2EE application.
    Most effective way would be send a message to initiate a table reload from J2EE app, but I don't know how to do this.
    Now I have a background thread that regular reads the table and looks for changes.

    http://www.oracle.com/technology/products/integration/bam/10.1.3/TechNotes/TechNote_BAM_AQ_Configuration.pdf
    This document details how to create triggers on a table that send out JMS messages.
    In this example, the messages are going to Oracle BAM.. your message could go to your J2EE application listening to its own topic/queue.
    an alternative idea.
    you could also just cache your lookup table with something like Oracle Coherence and than try to ensure that all changes to the lookup go through Coherence, so that you won't need to do notification from the db up to the application. the application and the lookup data management tool would be using the data grid for management of the lookup table data, and the data grid (coherence) would persist the lookup data changes back to the db.

  • When I send an email with Mail, I often confuse the account which I'm using. The result is that I send a message with the wrong account! Is there a way to avoid this (for example a reminder before the email is sent)?

    When I send an email with Mail, I often confuse the account which I'm using. The result is that I send a message with the wrong account! Is there a way to avoid this (for example a reminder before the email is sent)?

    Hi, thanks for the answer, I did that already. Unfortunatly this doesn't help me at all, as I often forget to check the menu. For me composing the message is writing the text, the subject, the person to who is addressed and than press "send".
    I often forget to check the "from", and this is a problem because the software select itself one of the accounts.
    Isn't there a way at least to put as a default a blank field instead of one of the accounts? or an account which doesn't work so if I forget to specify the "from" I will be rnotofied that the message can't be sent.
    I guess this could be a rather common problem for many people!
    Thanks
    Sergio

  • I can not send a message to someone from my iPad mini unless they have an I phone how do I change this

    I can not send a message to any one of my contacts unless they have an iPhone or I pad how can I sync my contacts to get and receive messages on this I lad mini

    iMessage only works between other Apple iOS devices.
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Set Up Alert Sounds
    http://www.quepublishing.com/articles/article.aspx?p=1873027&seqNum=3
    Extra FaceTime IDs
    http://tinyurl.com/k683gr4
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Fix Can’t Sign Into FaceTime or iMessage iOS 7
    http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    iOS 7 allows you to block phone numbers or e-mail addresses from contacting you via the Phone, FaceTime, or Messages
    http://howto.cnet.com/8301-11310_39-57602643-285/you-can-block-people-from-conta cting-you-on-ios-7/
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457#19087457
    How to watch FaceTime calls on the big screen with Apple TV
    http://www.imore.com/daily-tip-ios-5-airplay-mirroring-facetime
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    How to Receive SMS Messages on an iPad
    http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
    Apps for Texting http://appadvice.com/appguides/show/apps-for-texting
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • You can't send a message on behalf of this user unless you have permission to do so

    Hi,
    We are on Exchange 2010 SP2 with multiple domain name. All works ok. We need to be able to use other domains while sending email. For example, i have a default reply address set for [email protected] along with other addresses i.e [email protected] etc on
    policy. I am receiving emails and can reply only using [email protected] I get the following error if i try to send email from [email protected]
    [email protected]
    You can't send a message on behalf of this user unless you have permission to do so. Please make sure you're sending on behalf of the correct sender, or request the necessary permission. If the
    problem continues, please contact your helpdesk.
    Users should have the ability to choose an address as they need rather that fixing to a single 'set as reply address'. I am sure it is possible. Can some provide some help/direction?
    Thanks in advance.

    Hi Byron,
    Looked like a workable solution but could not get it to work. I am getting NDR with permission issue. I have created the distribution group with email address. Added the user in it. Given the user Full access and SEND AS permission. 
    Hi, I'm not sure what issue you are running into, but you can definitely give a user Send As permission for a group and then send as the group. I just verified in my test environment.
    To assign the Send As permission, the easy way it in AD User and Computers.
    Enable Advanced Features from the View menu first. This allows you to see the
    Security tab.
    In ADUC, find the group and open the Properties.
    On the Security tab, Add the user.
    With the user selected in the list, Allow the Send as
    permission.
    There may be a bit of lag time before that begins to work as Exchange may have cached some AD permissions, but it definitely works.
    Byron Wright (http://byronwright.blogspot.com)

  • Since i instaled ios 6 , i send a message with my iphone and i receive in my ipad. what is happening?

    since i instaled ios 6 , i send a message with my iphone and i receive in my ipad. what is happening?

    Sounds like it is using your Apple ID / Associated Emails to receive the iMessage. This means that the person who is replying is making it go to your email address. Make sure that the person you are sending the iMessage to has an iPhone as well. I don't remember if other iOS devices can send iMessages to a mobile phone number.

  • How can I send whatsapp messages using Siri ?

    Hi,
    How can I send whatsapp messages using Siri ? or how can I ask Siri to read my whatsapp messages ?
    thanks for help!

    kladrian wrote:
    this is not the case in particular
    Yes it is.  If it wasn't the case, then why are you asking the question to begin with?
    why everytime I have a question about a simple activity present in Android system I get in response ... "you can't sorry" !?
    1.  Because iOS is not Android
    2.  Because it's the truth, whether you like it or not

Maybe you are looking for

  • How do I have Numbers recognise comma delimited information in a .csv file?

    I have a .csv file with column information delimited by commas, but Numbers does not seem to have a way to automatically recognise and format. 

  • Filter problem

    Hi, I hava a table with on the selection facet a af:SelectOneChoice to apply filters. This is working fine, but when there are now rows in the table then af:SelectOneChoice is not rendered. How Can I set that it must always be rendered? I first thoug

  • Connection problem Aust - Ireland

    Hi, I've been trying to connect with my Dad in Ireland with little success. We have both been able to connect to other users, and can use the chat function, but if we try audio or video we get various messages such as 'failed to respond', 'insufficie

  • Dynamic Logon Screen and Dashboards

    Is there a way to dynamically display a different style on the logon screen and dashboards based on a condition in the warehouse? For example, if our load is running long, can we change the logon screen to display a graphic and text that states the l

  • Ilustrator dejo de funcionar

    Hola, Tengo un problema con Ilustrator desde la ultima actualziación a CC 2014. Utilizo Win 8.1 Al ejecutar la aplicación durante el proceso de carga sale un mensaje "Windows está buscando una solución a su problema" y después una pantalla que dice "