Can't send to emails that are out of the domain.

I know this has been discussed in depth already. I have tried all the code examples that I have been able to find in this forum that say you should be able to send messages to email addresses that are outside the domain (Company) even if exchange server doesn't have message relaying turned on.
None of the examples I have tried have worked. Is this just not possible? If it is, please send code examples.
Below you will find my code.
Properties properties = new Properties() ;
properties.put("mail.smtp.host", hostName) ;
properties.put("mail.smtp.auth", "true");
// this authenticator authenticates using my username and password
javax.mail.Authenticator auth = new PopupAuthenticator() ;
Session session = Session.getDefaultInstance(properties, auth) ;
MimeMessage message = new MimeMessage(session) ;
try {
message.setFrom(new InternetAddress(fromemail, fromname)) ;
message.setRecipient(Message.RecipientType.TO, new InternetAddress(to, toName)) ;
message.setSubject(subject) ;
message.setText(messageText) ;
message.setSentDate(new Date());
Transport.send(message);
} catch (UnsupportedEncodingException e) { insertLog(e.toString()) ;  }

I have the same problem if you have a solution please send me to [email protected], thanks.

Similar Messages

  • TS3899 My ipad does not communicate with iphone on one of my email accounts and will not remove deleted emails that are done on the iphone and vice versa, what setting should be changed?

    My ipad does not communicate with my iphone on one of my email accounts and will not remove deleted emails that are done on the iphone and vice versa, what setting needs to be changed?

    It's my understanding that an iPhone can only sync with one computer. You need to choose one computer. Sounds like it syncs at work, but not at home. If you want to just sync it at home, then you have to make sure the home computer has all the info that you want on it, like music etc. Then you have to deauthorize the work computer for it to sync at home. When you connect it will ask if you want to set up as a new iPhone or restore from backup. If you don't have a backup on the home computer then either way you will be wiped clean. So any photos, contacts, notes etc you have will be erased. You would need to backup or copy your photos from your iPhone. When you connect it to your home computer, it will give you that popup message to open your iPhone files. Then you can copy those photos and save them onto your computer and sync them back in through iTunes.
    For your contacts, do you use any type of address book? If so you'll want to back that up and then transfer to your home computer. For notes, you can just email those to yourself and then save that email. I use MobileMe so the contacts issue is easily resolved.

  • When I copy a CD onto my macbook pro I sometimes get several songs that are "out" of the album.  How do I get them all together in one album?  Any help will be much appreciated!

    When I copy a CD onto my macbook pro I sometimes get several songs that are "out" of the album.  How do I get them all together in one album?  Any help will be much appreciated as I cannot seem to find the solution to this problem in the troubleshooting section of iTunes.

    Generally all you need do is give tracks from the same album a common Album Artist. See Grouping tracks into albums. The images need an update but the basic info. still holds.
    tt2

  • I am using an Macbook pro in conjunction with a Time Capsule. I back up all my aperture librarys on it, but how can i view these images that are stored on the capsule please ??

    I am using an Macbook pro in conjunction with a Time Capsule. I back up all my aperture librarys on it, but how can i view these images that are stored on the capsule please ??

    If you want to see what is in a file that is backed up by time machine then you have to restore the entire file. Having said that I have had good experience with Time Machine and individual files... if the file is there then all of it's components are almost for sure there. A way to get around this in Aperture would be to use referenced images. The images then still exist as individual files and can be backed up and restored individually. You would have to do so on a file by file basis though and your album information would still only be saved within the Aperture library.

  • How can I send HTML emails that display in Mail?

    Hi,
    I have an email newsletter that I recently have begun experimenting with in HTML. The problem is, when I try to use HTML, the message displays properly in things like Yahoo! webmail, but in Mail for OSX, it displays like a regular text message, images and formatting are not used. I'm sending the messages from PHPList. Is there something I need to add to my code to get it to display correctly?
    Thanks much.
    -Jonas

    Well, I did check the layout in Safari, and it looked fine. Since I'm not sending the messages from Mail (since it's for a rather large mailing list handled by PHPList), selecting "Mail the Contents of this Page" wouldn't really do very much for me.
    If I do try to send the page using that technique, it does work. But I have to use PHPList to compose and mail the message. I just need to know if there's any other code I need to add to make it display in Mail. I can receive other HTML emails no problem, but mine just shows up as text, disregarding images and other elements. I just don't know what's going on here.

  • Can I restore imap emails that are on my iphone but not on gmail?

    Boy did I goof!
    I was in gmail and I thought all of the e-mails in the All Mail folder were old/deleted emails. I checked the first hundred and they were all old. So I deleted them and that moved them to the Trash. Then I deleted the Trash. Apparently ALL of my e-mails were in the All Mail folder...makes sense, but that's not what it appeared when I looked in the All Mail folder to make sure that wasn't the case.
    I use IMAP with my gmail account. They are gone when I log into gmail. They are gone in Thunderbird. But I have not updated my mail on my iPhone...any chance I can recover them from there? My guess is no, but thought I'd ask.
    Thanks!

    I don't believe there's any way to do that, no. As soon as the mail client connects with the server for any reason, it will sync with the server, deleting them from the phone as well.

  • LG Cosmos phone  can not send/receive texts that are typed

    Hi,
    My family  has 3 of the LG Cosmos phones and we cannot word text either the phones do not receive them even though our phones says we sent them.  They even sometimes do not go through to our other phone which is an iphone.
    We have reset, we have cleared memory, we have tried everything.
    Funny thing is we can send picture texts without a problem and we can send the voice text messages and they all go through.  They don't miss one.  However, if we type the text message (as in normal text) only maybe 1 in every 8 goes through. This has been happening for 2 days now.  Any suggestions? It does not matter if we are out or at home.

        Hi mewith3,
    I know how important it is for your text messages to be received. We want to get to the bottom of this situation to get your messages to be delivered. Other than the messages being typed out, have you noticed any other similarities? Do you have any message signatures set? When the messages aren't delivered, are they going to other Verizon users or all providers? To those Verizon users, are the messages on your phone showing delivered? Please provide us a few more details so we can check what may causing the trouble.
    Thank you,
    MariaC_VZW
    Please follow us on Twitter @VZWSupport

  • When I try to update my apps the Email that pops out in the box is not mine. How can I change it, delete it please help?

    When I try to update the apps the email address is not correct n it's not my apple I.D I don't know how it got there in the first place. I want to delete it and have mine on there hoe can I solve this problem?

    It's because the app was purchased under a different Apple ID and is being updated using a different ID. Try using the same Apple ID which was used to download the app and retry. If not, delete the app completely and re-download using YOUR Apple ID.

  • How do I make it so my gmail account on my computer and online shows the same emails that are showing in the inbox of the mail app?

    Every time I look online at my gmail account the inbox there is compleatly different than when I look on the Iphone mail app under my gmail account. I have tried syncing the account multiple times and have had no result. I can't seem to get the messages that are really in my gmail inbox to appear on my iphone gmail account.

    I have a gmail account as well as an email account with my ISP Ozemail.  The mail setup on the iPhone is such that when I check mail using the iPhone mail app I see all of the mail that was sent to both accounts.  Likewise when I look at gmail on my computer I have gmail set up there so that any mail sent to the Ozemail account appears in the gmail inbox.  When I send mail from my phone it appears in the outbox on the phone as well as the outbox in gmail on my computer.  On the computer I made sure that in gmail settings I have engaged the checking of mail from other accounts using Pop3.

  • Emails that go out without the attachment

    i consistently have one client that never receives attachments and/or photos in emails that i send from my iphone. not sure why this happens, and don't want to screw up my settings by messing around.

    If it is only happening with one person, or people at one company it is likely an issue with their email server. It is not uncommon for company's to strip email attachments, or not allow embedded images for security reasons.

  • Can not delete an email that has nothing in the body. The email app exits.

    Unable to delete a mail item that has nothing in the body. Delete, move or edit delete causes mail to exit. When re-entering mail, it is still there

    someone else had this problem and a way to get around it.
    if you swipe the item when it is not sellected, a "delete" button will appear on the item and allow you to delete it.  I have found that you need to also go to the delete file and delete all items there and then exit mail to insure that they are not brought back to the in box from the deleted box the next time you enter mail.

  • I want to back up an IMAP account via POP3 in Thunderbird but it will not download old emails that are still on the server. How can I do this?

    I wand to use Thunderbird to back up and purge old emails from an account via POP3. This account is accessed by other users using IMAP on their computers and phones.
    I want to archive and purge old messages from the server using Thunderbird. But, it will not download messages that apparently are marked as read on the server via IMAP.

    Pop mail accounts must be set up to 'leave messages on the server'.
    check this before using.
    * Tools > Account Settings > Server Settings for the mail account
    or
    * menu icon > Options > Account Settings > Server Settings for the mail account
    select: 'leave messages on the server'
    optional: select: 'for at most xx days' this will delete anything older than specified number of days select 'Until I delete them' when you delete an email it will be deleted off the server.
    click on Ok to save settings.
    Pop mail accounts only look at Inbox and download whatever has not been previously downloaded regardless of whether it has been read or not. They cannot access nor download from any other folder on the server.
    If you wanted to download emails in other fodlers, you would have to move emails into the Inbox in order to download them and this may not be very practical in your situation.
    What you can do is synchronize your IMAP folders to get a copy downloaded to your IMAP mail account.
    Then go into 'offline' mode to stop any further synchronizing as synchronized folders do get updated.
    MozBackup tool could now be used to backup the Profile as synchronising created mbox files which contain emails.
    You can also do the following to get a copy outside of the IMAP mail account:
    Create the same folders in 'Local Folders'.
    Then right click on email and 'copy to' and select Local Folders and the folder you require.
    Putting a copy in Local Folders means these emails are also on your computer and they are not influenced by anything you do in the IMAP folders.
    You would need to backup emails in these folders.
    See info:
    * http://kb.mozillazine.org/IMAP_backup
    MozBackup:
    * http://mozbackup.jasnapaka.com/
    ImportExporttool:
    * https://addons.mozilla.org/en-US/thunderbird/addon/importexporttools/

  • How can I send  PDFby email that is larger than 20 MB even after compression of file?

    I have adobe acabat X Pro.

    Each email service has its own limits, but that's way too big anyway. But there are many services for sending huge files. Here's one https://www.acrobat.com/sendnow/en/home.html

  • How can I delete flagged emails that are not visible in my account boxes?

    Currently I show 43 flagged emails but not in any of my accounts is there a flag.  I am not sure if I deleted them early in learning to use my iphone 4s or what.  Certainly I had flagged email messages in the past.  Any suggestions?  I have tired going into my various email accounts on the iphone and checking all of the deleted emails for each account.  I only found seven flagged messages. 
    Much appreciation for any suggestions.
    Thanks!

    Hey OldCT!
    I have a link here for you that may help you find your flagged messages a little more easily:
    See important messages - iPhone
    http://help.apple.com/iphone/7/#/iph3caefa61
    Flag a message so you can find it later. Tap while reading the message. You can change the appearance of the flagged message indicator in Settings > Mail, Contacts, Calendars > Flag Style. To see the Flagged mailbox, tap Edit while viewing the Mailboxes list, then tap Flagged.
    Thanks for being a part of the Apple Support Communities!
    Cheers,
    Braden

  • Can't reply to emails that are recieved

    Every time I try and reply to an email it doesn't send and it keeps saying that the sender address was invalid. I've gone over the email setup numerous times and everything is correct. I am using a Google Apps email account right now.

    This is a Gmail account being accessed with the iPhone's Mail application?
    If so, this indicates there is a problem with the outgoing mail server or SMTP server settings.
    How was the account created with the iPhone's Mail application? Did you use the Gmail account preset, which creates the account as an IMAP account, or did you select "Other" when creating the account selecting IMAP or POP as the account type?
    Either way, try deleting and recreating the account with the iPhone's Mail application.

Maybe you are looking for

  • Can't use Waves GTR3 on Snow Leopard

    Hi everybody, I used the Waves GTR 3 component to get some guitar sounds on Logic or on stage, but since I set up Snow Leopard on my MacBook Pro, GTR3 refuses to lunch because it doesn't recognize my Presonus Firestudio Project audio hardware, and te

  • Inserting time in motion 1

    Hi, I'm working in motion 1 and need to lengthen a section. I can insert time, but all regions after the inserting are then moved into new layers that are suffixed with '1'. If I do this several times, my project will be a complete mess. The insert t

  • Can I limit the number of rows returned on a Select?

    Can I limit the number of rows returned on a Select statement? I would be using JDBC in a Java program.

  • How to set different bgcolors for rows int HtmlDatatable?

    I have JSF HtmlDataTable on my page. I need to fill rows in table by different colors, according to row's data, but I can't find any method for it...... Should I use JavaScript in this case?

  • LMS 4.2 deployment issue

    Hi As We are new in deploying LMS, I was wondering if someone could to share some information with us.We aim to implemet LMS 4.2 in our network which is contained about 10000 devices. We have read the data shit as well as deploymnet guied but we are