How do i specify the port form where i want to send the mails

i have smtp server which by default has proxy at port 25.So i want to send the mails through some other port.So how can i specify the exact port in the bean(i am using a bean to send email) so that all the mails through that port.my machine is having public ip.so what i do is Properties prop = new Properties();
prop.put("mail.smtp.host",hostname);but how do i specify the port name coz this sends the mail at port 25 by default.

prop.put("mail.smtp.port",portnumber)

Similar Messages

  • How can I specify the path in Form Builder 9.0

    Hi, everyone,
    could anybody tell me how can I specify the path in Form Buidler 9.0? there is problems when I want to attach library in form builder. thanks to Kuldeep RAwat and Natalia Vidal, I know I should specify the path, but I still don't know how to specify, how can I do?
    besides, when I run a form, sometime there will be a warnig:
    Please acknowledge message
    what's that meaning?
    thank you very much for your great help

    Shay Shmeltzer thank you very much for your so quickly response. I have modified the file and my form can run now!
    but, when I open my form, it always suggest me:
    FRM-10102: Cannot attach PL/SQL library TalbotStandard. This library attachment will be lost if the module is saved.
    so everytime I open my form, I must attach the library manully. I don't know the reason. do you know that or anybody else knows that? thank you very much!
    have a good weekend :-)

  • How can we specify the Mailbox for Notes?

    In Mail.app, how can we specify the Mailbox for Notes (where the new notes will be resided)? It is now 'On My Mac'. I wish to change to my IMAP Mailbox so it sync with my iPhone by just checking email (not by syncing on iTunes).
    Thanks in advance.
    Message was edited by: Ekapon

    You could use the DecimalFormat or NumberFormat to do the job.
    double number 1234.567;
    DecimalForamt df = new DecimalFormat("###.##");
    String s = df.format(number);or
    double number 1234.567;
    NumberFormat nf = NumberFormat.getNumberInstance();
    nf.setMaximumFractionDigits(2);
    /* if needed.
       nf.setMaximumIntegerDigits(value);
       nf.setMinimumFractionDigits(value);
       nf.setMinimumIntegerDigits(value); */
    String s = nf.format(number);I didn't test the codes but they should work. For more information, please consult the documentations.

  • How can I specify the default tab in a CHM Output?

    My company uses CHM-based help for some of its products. We build the CHM files from RoboHelp 9, and while these CHM files don't really have a full Index attached to them, the Index tab shows up in the output anyway. Unfortunately, we are suddenly seeing that when the CHM file is launched from our program, the Index tab is displayed by default. We'd rather have the Contents tab be the default look, especially considering that the Index does not exist.
    I have poked around into how you can specify a default tab for a CHM file, and the only information I have found suggests that using a CHM file creates a file (HH.dat) that specifies which tab should be displayed on a user-by-user basis, and that the last tab displayed when you close the CHM should be the first one displayed when you re-open it. While this is true if you open the CHM independent from the product, when you launch it from our program, it's all Index, all the time.
    So, my question is: How can I specify the default tab for a CHM file? Or, failing that, how can I excise the Index tab from my CHM output.

    Hi there
    This will be something up to your application developer to resolve. When s/he issues the call to open the CHM, there are parameters that may be used to always open with the desired tab "in front".
    Point your developer to the link below and advise that s/he is most likely interested in the section titled: Programming Tips.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How do I specify the JRE i wish to use to Run an Application.

    Hi Everyone;
    Please bear with me if you read this before.
    I have installed java 1.3.1 and java 1.4.1 in that order.
    The JRE used by default is java 1.4.1
    How do I specify the JRE I wish to use to Run an Application from a command prompt.
    Example:
    Java -something org.jboss.Main
    help ??
    Stephen

    I was a lil embarrassed. I told my supervisor that the installation of java overwrites the JRE and that's that.
    My supervisor took 10 minutes and went through it and found java.exe in the System32 file.
    The java.exe file is found in guess where "C:/WINNT/System32/" folder how nice. C:/WINNT/System32/ is in the path. Not only that it's the first entry in the path. So when I execute java it is not using java.exe any one of the java files that I got from the java website.
    So I don't have any control over the version.
    Oh well;
    That's life. That's 1 for my supervisor.
    Stephen

  • How can I specify the attribute AU_SIZE in OUI

    Hello,
    How can I specify the AU_SIZE when i create the disk group for OCR and Voting disk when i install the GI home.
    Basically i want to create the Disk group with AU_SIZE as 4MB when i create it Via OUI.I know I can edit the attributes when i do using ASMCA.But not sure about OUI.
    Please can someone guide me ?
    Regards
    Joe

    Hi Joe,
    Did you mean that i will need to move the OCR/voting **** to another diskgroup -> drop the one created during installtion -> recrerate the diskgroup with AU_SIZE as desired Yes.. you must move OCR, VOTING and ASM SPFILE to another diskgroup and recreate the diskgroup.
    Doc said : Oracle recommends that the allocation unit (AU) size for a disk group be set to 4 megabytes (MB).
    I do not see benefits to configure the AU SIZE 4MBytes for diskgroup that will store only Clusterware Files.
    The voting files are stored directly on ASM Disk (i.e not use AU SIZE). The OCR File and ASM SPFILE use AU SIZE, but are not frequently accessed (low I/O) and files are too small to configure AU to 4MBytes.
    Set AU SIZE makes a difference when you do need high I/O throughput. i.e: Used to Diskgroup that will store Datafiles.
    I recommend you read my point of view how to store VOTING Files, OCR and ASM SPFILE on ASM.
    Re: 3rd voting disk on nfs share
    Regards,
    Levi Pereira

  • How can we specify the number of decimals to be printed

    How can we specify the number of decimals to be printed
    such as "%5.2d" in C.
    Can anyone help me

    You could use the DecimalFormat or NumberFormat to do the job.
    double number 1234.567;
    DecimalForamt df = new DecimalFormat("###.##");
    String s = df.format(number);or
    double number 1234.567;
    NumberFormat nf = NumberFormat.getNumberInstance();
    nf.setMaximumFractionDigits(2);
    /* if needed.
       nf.setMaximumIntegerDigits(value);
       nf.setMinimumFractionDigits(value);
       nf.setMinimumIntegerDigits(value); */
    String s = nf.format(number);I didn't test the codes but they should work. For more information, please consult the documentations.

  • HT1277 how do i specify the default mail account

    how do i specify the default mail account if i have more than one accounts?
    Not to worry i have found the setting, thanks
    Message was edited by: Teli Proto

    hmmm.. I've been complaining about this to the engineers for over a year. The storage location should be chooseable as should there also be a backup feature (as in Addressbook and iCal).
    for those that want to change this... it would be cool for someone to write a non cryptic, complete 1,2,3 stepped procedure.
    That is.. exactly what do you change to what in the mail user preference file? And what do you use to change it.. text edit? "[ ]" heretofor = folder
    I would like to change my Mail storage location to the my [Documents] . Using Text Edit, I went into my user [Library], to [Preferences] and opened the com.apple.mail.plist and changed all the ~/Library/mail storage locations to ~/Documents/Mail
    lastly I moved the [Mail] that was in the [Library] to my [Documents].
    Didn't work. Restarting Mail got me into the guided set a new account (and as far as I can see there IS no way of not taking the guided set up as alledged above). There must be something, some built-in direction other than in the [Preferences] defaulting mail to be saved in the [Library] folder
    If someone has done this and been successful.. a 1,2,3.. list would be apprecaited... and please don't leave any details out. Thanks
    dual core Intel G5   Mac OS X (10.4.5)   Pismo powerbook specialist

  • I have Adobe Creative Cloud.  How do I edit a PDF form I created at work and e-mailed to my home tablet?

    I have Adobe Creative Cloud.  How do I edit a PDF form I created at work and e-mailed to my home tablet?

    Hi Val,
    I see! Please see this thread: Is FormsCentral part of the Creative Cloud?
    Creative Cloud doesn't include FormsCentral, which is why you're being prompted to upgrade. (An Acrobat Pro subscription, on the other hand, does include FormsCentral.)
    Best,
    Sara

  • How do I specify cookies that I do not want deleted while in Private Browsing?

    I would like to use Private Browsing all the time, but want to retain certain cookies, like my sign in info for hotmail.com and certain banking log in info. How do I specify cookies that I do not want deleted?

    You can protect specific cookies with the CookieCuller extension.
    The cookies are only protected within that extension, so other means (Clear Recent History) will still remove them.
    You can let all cookies expire if you close Firefox and keep the protected cookies.
    If you use the build-in cookie manager then you can only make an allow exception for a specific domain, but with CookieCuller you can protect specific cookies.
    * CookieCuller: https://addons.mozilla.org/firefox/addon/82

  • When I receive and answer e-mail, the correspondence is usually "nested" with the original message, and the number of replies, etc. are indicated with a number next to the original message.  How can I change the mail settings so that every reply is listed

    When I receive and answer e-mail, the correspondence is usually "nested" "behind"  the original message, and the number of replies, etc. are indicated with a number next to the original message in the inbox.  How can I change the mail settings so that every reply is listed individually in the inbox instead of having them "stacked" behind the original message.  I'm afraid I might accidentially overlook messages the way they are handled now.

    Somebody here will correct me if I'm wrong, but what you have to do is go into Settings, Mail/Contacts/Calendars and under Mail, turn off "Organize by Thread".  I think that will make each message show individually.

  • How do i set the mail account to bring up my yahoo emailbox?

    you know when you go to a website and there is an email address that you can click on and it brings up your mail account? well, i did have a .mac account for 60 days and i did not want to pay $99 to keep it. i use yahoo for email. how do i change the mail account so that yahoo is the name of the email account in mail?
    i cannot figure out how to do it.
    thanks,
    sunny

    I've discovered this thread and am considering using Free Pops to get my Yahoo Mail.
    Can I just ask tele player and Mike N. as seasoned users of the app how complicated it is? I'm an intermediate sort of user; I've installed and used plenty of 3rd party apps before, I just don't like to go anywhere near code or the Terminal.
    Does it sound like I'd manage with Free Pops? For now, I only want it to access my Yahoo e-mail in the Mail application on OS X.
    Thanks, Charity

  • How can I copy the Mail "rules" I have already setup on my old MacBook over to the new machine?

    Setting up my new MacBook Pro. How can I copy the Mail "rules" I have already setup on my old MacBook over to the new machine?
    Is there a file I can copy & paste?

    Thanks Barry & all,
    Is it enough to just copy the rule-related files ??
    i.e.
    Library/Mail/V2/MailData/RulesActiveState.plist
    Library/Mail/V2/MailData/SyncedRules.plist
    Library/Mail/V2/MailData/UnsyncedRules.plist
    What you suggest copies the local mailbox content + all the settings ...
    while what I need is much less... and I'd like to be able to sync rules also in the future
    by copying something light and simple ... not the entire Library/Mail folder
    Many thanks,
    Stefania

  • How do I empty the mail thrash on Ipad

    How do I empty the mail trash on my Ipad?

    Touch Mailboxes at the top left, select the relevant account, select Trash, then select Edit, and then select "Delete All".

  • How do I change the mail reading pane from horizontal to vertical ?

    How do I change the mail reading pane from horizontal to vertical ?  Help !!

    Mail > Preferences > Viewing
    Select or deselect:  Use classic layout

Maybe you are looking for

  • Facing issue while deploying Oracle CC&B v2.3.1 in weblogic 10.3

    I am installing Oracle CC&B v2.3.1 in weblogic 10.3 in windows... 32-bit I am done with installation of framework and ccnb but when I start the environment it is throwing loads of errors and the splweb is not initializing Below is the log file Myserv

  • Building eclipse 3.1 on Solaris 10 x86

    I found an easy way to build eclipse on solaris x86, as followed: $ JAVA_HOME=/usr/j2se; export JAVA_HOME $ ANT_HOME=/home/compl/sfw/apache-ant-1.6.5; export ANT_HOME $ PATH=$ANT_HOME/bin:$PATH; export PATH $ mkdir -p ~/farm/eclipse-src $ cd ~/farm $

  • Can't set sample rate 1609

    Hi, we've recently upgraded to LV 8.6 and DAQmx 8.7 and then got problem with the data aquisition that uses the DAQmx API. For example, we have a cDAQ-9172 and 9239 AI module. The device could be user configured and a typical configuration could be a

  • Nokia Messaging is not working correctly

    Only random email messages are arriving...

  • What happened to the dvd players in iMac

    The the Hack. No dvd player in the new Imac. What are they thinking. If we stop buying imac mybe they will go back with dvd players