Server requires authentication - How do I program for this?

Hello,
I'm testing out a webpage I have created that will be used to send email. I have DSL service...just recently subscribed. Previously I had Dial up. The server at that time didn't require authentication, but now that I have DSL it does. I'm a bit lost as to how to update my program (I've included the snippet in the post), so that it will run correctly. I am having some difficulty.
My program looked like this :
String POP3 = "pop.windstream.net";
String SMTP = "smtp.windstream.net";
// Specify the SMTP host
Properties props = new Properties();                                           
props.put(POP3, SMTP);
// Create a mail session
Session ssn = Session.getInstance(props, null);
ssn.setDebug(true);                  
//...html to make up the body of the message
// set the from information
InternetAddress from = new InternetAddress(emailaddress, fromName);
// Set the to information
InternetAddress to = new InternetAddress(EmailAddress2, toName);
// Create the message
Message msg = new MimeMessage(ssn);
msg.setFrom(from);
msg.addRecipient(Message.RecipientType.TO, to);
msg.setSubject(emailsubject);
msg.setContent(body, "text/html");                      
Transport.send(msg);     
//....                        I did some research already, and have looked at some other forum posts. The one thing I have noted when I run my program is that the dos prompt for tomcat is showing this:
*DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smpt,com.sun.mail.smtp.SMTPTransport,Sun Microsystem, Inc]*
DEBUG SMTP: useEhlo true, useAuth false
DEBUG: SMTPTransport trying to connect to hose "localhost", port 25
My ISP provider, Windstream, assures me that port 25 is NOT blocked. Also, I've noticed that useAuth is set to false, whereas the posts I have been looking at say true. It would make sense to me for it to be set to true in my case, since my server requires authentication. But how do I do that?
I found this bit of information from another person's post :
props.setProperty("mail.smtp.auth", "true");
you also need an Authenticator like this
Authenticator auth = new Authenticator() {
private PasswordAuthentication pwdAuth = new PasswordAuthentication("myaccount", "mypassword");
protected PasswordAuthentication getPasswordAuthentication() {
pwdAuth;
Session session = Session.getDefaultInstance(props, auth);*
Post located at http://forums.sun.com/thread.jspa?forumID=43&threadID=537461
From the FAQ section of JavaMail
Q: When I try to send a message I get an error like SMTPSendFailedException: 530, Address requires authentication.
A: You need to authenticate to your SMTP server. The package javadocs for the com.sun.mail.smtp package describe several methods to do this. The easiest is often to replace the call Transport.send(msg); with
String protocol = "smtp";
props.put("mail." + protocol + ".auth", "true");
Transport t = session.getTransport(protocol);
try {
t.connect(username, password);
t.sendMessage(msg, msg.getAllRecipients());
} finally {
t.close();
You'll have to supply the appropriate username and password needed by your mail server. Note that you can change the protocol to "smtps" to make a secure connection over SSL.
One thing I have noticed in the majority of the posts is that useAuth in the tomcat dos prompt should be set to true, and not false. Mine is coming up as false. Also, I think it should be set to true because the ISP's server requires authentication for sending and receiving email.
Can you please provide me with some input on how to update my program so it will run?
Thank you in advance:)

Thank you for replying.
Per your advice, I made these changes to my code:
Properties props = new Properties();                                           
props.setProperty("mail.smtp.auth", "true");               
props.put("mail.pop3.host", POP3);
props.put("mail.smtp.host", SMTP);
Session ssn = Session.getInstance(props, null); The props.setProperty("mail.smtp.auth","true"); is something I found previously to posting my question. I'm assuming this is the line of code that has changed useAuth from false to true...is that correct?
I'm most pleased to report that with the changes made above, my program works! But is my code good? As soon as I start taking on clients, I will need my code to be reliable, and it needs to work with Dial Up and DSL connections.
With regards to your question about how I had found the authentication code but hadn't used it. Well, I did try it, again, this was previous to posting my question, and the compiler couldn't compile the program because of this statement - pwdAuth;
I also tried this code I had found in the JavaMail FAQ section -
String protocol = "smtp";
props.put("mail." + protocol + ".auth", "true");
Transport t = session.getTransport(protocol);
try {
t.connect(username, password);
t.sendMessage(msg, msg.getAllRecipients());
} finally {
t.close();
}But according to the compiler, t.connect(username,password); was not an available method. I checked the documentation and found that to be true. Do you have any suggestions? Looking into the documentation I find that there are 3 methods called connect that are inherited by the Transport class from javax.mail.Service.
connect()
connect(java.lang.String host, int port, java.lang.String user, java.lang.String password)
connect(java.lang.String host, java.lang.String user, java.lang.String password)
I would opt to try the third connect method, but what would I put for host?
Thank you for helping me with this issue, I'm not an expert on using the JavaMail package, at least not yet, and I appreciate the help you have provided.

Similar Messages

  • How to write program for handling  script ?

    In script i have 2 pages.
    In first page i have constant windows and variable windows.
    In second page i have main window.
    How to write program for this?

    Hi
    You need to write a driver program. You need to use open form, then write_form to write data into various windows and then close_form to close.
    As you don't want main window in the first page first try out just by having the window in the second page; i guess system will take care of it. As all other windows filled and if u start writing data in the main it'll go for next page.
    If doesn't work have the window on the first page with the least hight and write a command
    IF &SYST-PAGE& EQ 1
        NEXT-PAGE.
    ENDIF.
    Then in the second page you can have the main window hight as per your requirement.
    Here is an example
    (1) Get customer data
      TABLES: scustom, sbook, spfli.
      DATA: bookings like sbook...
      select * from...
    (2) Open form
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          DEVICE = 'PRINTER'
          FORM = 'S_EXAMPLE_1'
          DIALOG = 'X'
        EXCEPTIONS
          others = 1
    (3) Print table heading
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          ELEMENT = 'HEADING'
          TYPE = 'TOP'
          WINDOW = 'MAIN'
          FUNCTION = 'SET'
    (4) Print customer bookings
      LOOP AT bookings WHERE
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            ELEMENT = 'BOOKING'
            TYPE = 'BODY'
            WINDOW = 'MAIN'
      ENDLOOP
    (5) Close form
      CALL FUNCTION 'CLOSE_FORM'
    Regards
    Surya.

  • JavaMail: How to tell if SMTP server requires authentication

    I am writing an application that sends notification emails. I have a configuration screen for the user to specify the SMTP hostname and optionally a username and password, and I want to validate the settings. Here is the code I am using to do this:
    Properties props = new Properties();
    props.put("mail.transport.protocol", "smtp");
    if (mailUsername != null || mailPassword != null)
        props.put("mail.smtp.auth", "true");
    Session session = Session.getInstance(props, null);
    transport = session.getTransport();
    transport.connect(mailHostname, mailUsername, mailPassword);
    transport.close();This works if the user enters a username and password (whether they are valid or not), or if the username and password are empty but the SMTP server does not require authentication. However, if the server requires authentication and the username and password are empty, the call to transport.connect() succeeds, but the user will get an error later on when the app tries to actually send an email. I want to query the SMTP server to find out if authentication is required (not just supported), and inform the user when they are configuring the email settings. Is there any way to do this? I suppose I could try sending a test email to a dummy address, but I was hoping there would be a cleaner way.

    Thanks for your help. This is what I ended up doing, and it seems to work. For anyone else interested, after the code above (before transport.close(), I try to send an empty email, which causes JavaMail to throw an IOException, which I ignore. If some other MessagingException occurs, then there is some other problem (authentication required, invalid from address, etc).
    try
       // ...code from above...
       // Try sending an empty  message, which should fail with an
       // IOException if all other settings are correct.
       MimeMessage msg = new MimeMessage(session);
       if (mailFromAddress != null)
           msg.setFrom(new InternetAddress(mailFromAddress));
       msg.saveChanges();
       transport.sendMessage(msg,
           new InternetAddress[] {new InternetAddress("[email protected]")});
    catch (MessagingException e)
        // IOException is expected, anything else (including subclasses
        // of IOException like UnknownHostException) is an error.
        if (!e.getNextException().getClass().equals(IOException.class))
            // Handle other exceptions
    }Edited by: svattom on Jan 7, 2009 7:37 PM
    Edited by: svattom on Jan 7, 2009 10:01 PM
    Changed handling of subclasses of IOException like UnknownHostException

  • My Server requires authentication

    Hi guys
    We have set up SMTP on Exchange front end and only for 5 managers, the server require auhtenticacion via SMTP. How I can set up this on Iphone?, if I use another POP3 such as Outlook Express i haven´t problems because Outlook express show me in the server "tab" the option "my server requires authentication", can someone help me?
    Thanks in advance
    MV

    It started working later, not sure why. So it is possible. I consider this question answered.

  • How to create program for bapi?

    hi all,
    how to create program for bapi?
    reply me soon now.....
    can anybody help me.....
    thanks,
    S.Suresh.
    Title was edited by:
            Alvaro Tejada Galindo

    Hi ...Here is the step by step procedure for creating BAPIs.
    There are 5 different steps in BAPI.
    - Create BAPI Structure
    - Create BAPI Function Module or API Method.
    - Create BAPI object
    - Release BAPI Function Module.
    - Release BAPI object.
    Step1. Creating BAPI Structure:
    - Go to <SE11>.
    - Select Data Type & Enter a name.
    - Click on Create.
    - Note: Always BAPI should be in a development class with request number (Not Local Object).
    - Select Structure & hit ENTER.
    - Enter the fields from your database. Make sure that the first field is the Primary Key Field.
    - Then SAVE & ACTIVATE.
    Step 2. Creating BAPI module:
    - Enter TR.CODE <SE37>.
    - Before entering any thing, from the present screen that you are in, select the menu
    Goto -> Function Groups -> Create Group.
    Enter a name (Note: This name Must start with ZBAPI)
    Let this screen be as it is and open another window and there, enter TR.CODE <SE80).
    Click on the Third ICON that says Inactive Objects.
    Select the group that you just created and click on Activate.
    Notice that the group you created will disappear from the list of inactive objects.
    - Go back to ><SE37> screen and enter a name and hit <ENTER>. Then enter the group name that you just created and activated.
    NOTE: When you release a function module the respective group will be attached to that particular application. It cannot be used for any other application. NEVER include an already existing group that is attached to another module.
    Now click on the first Tab that says [ATTRIBUTES] and select the radio button that says remote-enabled module since we will be accessing this from any external system.
    Then click on the second tab that says [IMPORT].
    Enter a PARAMETER NAME, TYPE and the structure you created in the first step. Also select the check box ‘Pa’. All remotely enabled functional modules MUST be Pa enabled, where Pa means ‘Passed by Value’ and if you don’t select ‘Pa’, then that means it will be passed by reference..
    Then click on tab that says [EXPORT].
    Enter the following as is in the first three fields
    RETURN TYPE BAPIRETURN (These 3 field values are always same)
    Here also select ‘Pa’ meaning Pass by value.
    Note: BAPIRETURN contains structure with message fields.
    Then SAVE and ACTIVATE.
    Step 3. Creating BAPI object:
    - Enter Tr.Code <SWO1> (Note. It is letter ‘O’ and not Zero).
    - Enter a name and then click on create. Enter details.
    NOTE: Make sure that that Object Type and Program name are SAME.
    - Enter Application ‘M’, if you are using standard table Mara. If you are using your own database then select ‘Z’ at the bottom.
    - Then hit <ENTER>.
    - Now we have to add ‘Methods’. High light METHODS and then select the following from the menu:
    Goto Utilities -> API Methods -> Add Methods.
    - Enter function Module name and hit <ENTER>.
    - Select the second FORWARD ARROW button (>)to go to next step.
    - Check if every thing looks ok and again click on FORWARD ARROW button (>).
    - Then select ‘YES’ and click on <SAVE>.
    - Now on a different screen goto TR.CODE <SE37>. Enter Function Module name and select from the top menu Function Module -> Release -> Release.
    - Goback to TR.CODE <SWO1>.
    Here select the menu combination shown below in the same order.
    - Edit -> Change Release Status -> Object Type Component -> To Implemented.
    - Edit -> Change Release Status -> Object Type Component -> To Released.
    - Edit -> Change Release Status -> Object Type -> To Implemented.
    - Edit -> Change Release Status -> Object Type -> To Released.
    - Then click on <SAVE>.
    - Then click on Generate Button (4th button from left hand side looks like spinning wheel).
    - Then Click on the button that says ‘PROGRAM’ to see the source code.
    To check if this is present in work flow goto TR.CODE <BAPI>.
    Here it shows business object repository.
    - First click on the middle button and then select “ALL” and hit ENTER.
    - Goto tab [ALPHABETICAL] and look for the object that you created. This shows that the BAPI object has been created successfully
    Overall Info :
    http://help.sap.com/saphelp_47x200/helpdata/EN/00/32a43697bc11d1acf9080009b0fb56/frameset.htm
    BAPI Creation Info :
    http://help.sap.com/saphelp_47x200/helpdata/EN/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
    Reference :
    http://help.sap.com/saphelp_47x200/helpdata/EN/00/32a43697bc11d1acf9080009b0fb56/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/EN/00/32a43697bc11d1acf9080009b0fb56/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/EN/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm

  • How 2 find program for smartform

    how 2 find program for smartform

    Hi,
    go to TNAPR table and find the driver program for the layout.
    give the layout name, if you know the output type also give it.
    OR
    go to se71 and go to the layout , check the text elements syntax then it will show the possible driver programs in the window to choose.
    that way you can find..
    Or else...
    Go to the Tcode -> NACE
    OR
    Go to the T-code 'SMARTFORMs'
    Give your form name
    go to the general attributes.
    Check the Package name.
    then go to T-Code-> SE80
    there check the program name for a package wise
    Regards,
    KK
    Message was edited by:
            Kishore Kumar Karnati

  • The security database on the server does not have a computer account for this workstation trust relationship

    When I try to log on to my DC it says "The security database on the server does not have a computer account for this workstation trust relationship". It won't let me log on. I installed another server server 2012r2  (its virtual )
    and I can get to ADSI edit. 
    I think what happened was I had a pc that could not connect without unplugging the network cable. So I found this fix 
    FIX: “The security database on the server does not have a computer account for this workstation trust relationship”2032011
    I’ve seen a lot of solutions, or suggestions rather, with regard to the error in the title of this post.  In my experience, the problem can almost always be resolved without extra domain add/removes and reboots, which is the most prevalent solution I have
    seen around.  Usually, this issue is due to a mismatch between attributes of the computer account in Active Directory and those values on the system itself.  Here are the steps I take to fix this issue when it crops up:
    Open up Active Directory Users & Computers pointed to the domain the computer account resides in
    From the “View” pull-down menu, make sure that “Advanced Features” is checked
    Navigate to the part of your organizational unit (OU) structure where the computer account for this server resides
    Open the Properties for the computer object
    Choose the “Attribute Editor” tab on the Properties dialog box
    Check the Attributes dNSHostName & servicePrincipalName – anywhere that a fully qualified hostname is specified (e.g. myserver.mydomainname.com), make sure that the entry matches the hostname
    you have configured when you go here on your server: Start -> Computer -> Right-Click, Properties -> Change Settings (under “Computer name, domain… settings”) -> Full Computer Name
    As an example, for a fictitious W2K8 R2 server whose Full Computer Name is “srv1.mydomainname.com”, these attribute/value pairs should be in Active Directory:
    dNSHostName:
    srv1.mydomainname.com
    servicePrincipalName:
    HOST/SRV1
    HOST/srv1.mydomainname.com
    RestrictedKrbHost/SRV1
    RestrictedKrbHost/srv1.mydomainname.com
    TERMSRV/SRV1
    TERMSRV/srv1.mydomainname.com"
    Not reading it carefully I add a computer with the same name as the pc having the issue and followed the above. The problem is that I did not notice that the spn did not want the name of my server (serv1) but the name of the trouble
    pc.
    dcdiag output
    PS C:\Users\administrator.TOM> dcdiag.exe
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       ***Error: DC3 is not a Directory Server.  Must specify /s:<Directory Server> or  /n:<Naming Context> or nothing to
       use the local machine.
       ERROR: Could not find home server.
    PS C:\Users\administrator.TOM> dcdiag.exe /s:DC2
    Directory Server Diagnosis
    Performing initial setup:
       * Identified AD Forest.
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site\DC2
          Starting test: Connectivity
             The host 9e0dca7a-d017-445a-b354-adee5ff53d48._msdcs.TOM could not be resolved to an IP address. Check the DN
             server, DHCP, server name, etc.
             Neither the the server name (DC2.TOM) nor the Guid DNS name (9e0dca7a-d017-445a-b354-adee5ff53d48._msdcs.TOM)
             could be resolved by DNS.  Check that the server is up and is registered correctly with the DNS server.
             Got error while checking LDAP and RPC connectivity. Please check your firewall settings.
             ......................... DC2 failed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site\DC2
          Skipping all tests, because server DC2 is not responding to directory service requests.
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test CrossRefValidation
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
       Running partition tests on : TOM
          Starting test: CheckSDRefDom
             ......................... TOM passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... TOM passed test CrossRefValidation
       Running enterprise tests on : TOM
          Starting test: LocatorCheck
             ......................... TOM passed test LocatorCheck
          Starting test: Intersite
             ......................... TOM passed test Intersite
    PS C:\Users\administrator.TOM> regsvr32 schmmgmt.dll
    PS C:\Users\administrator.TOM> netdig /fix
    netdig : The term 'netdig' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + netdig /fix
    + ~~~~~~
        + CategoryInfo          : ObjectNotFound: (netdig:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    PS C:\Users\administrator.TOM> Setup /PrepareSchema
    Setup : The term 'Setup' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
    the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + Setup /PrepareSchema
    + ~~~~~
        + CategoryInfo          : ObjectNotFound: (Setup:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    PS C:\Users\administrator.TOM> netdiag /test
    netdiag : The term 'netdiag' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + netdiag /test
    + ~~~~~~~
        + CategoryInfo          : ObjectNotFound: (netdiag:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    PS C:\Users\administrator.TOM> nslooup
    nslooup : The term 'nslooup' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + nslooup
    + ~~~~~~~
        + CategoryInfo          : ObjectNotFound: (nslooup:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    PS C:\Users\administrator.TOM>

    Ok fixed. 
    At a elevated cmd prompt run ;
    C:\Users\administrator.TOM>setspn -x
    As you can see the DC serv1 had duplicate SPNs.
    Checking domain DC=TOM
    Processing entry 1
    HOST/serv1.TOM is registered on these accounts:
            CN=SERV1,OU=Domain Controllers,DC=TOM
            CN=C00049,CN=Computers,DC=TOM
    {14E52635-0A95-4a5c-BDB1-E0D0C703B6C8}/TOWN-HBWJ29ZOQC is registered on these ac
    counts:
            CN=Administrator,CN=Users,DC=TOM
            CN=TOWN-HBWJ29ZOQC,CN=Computers,DC=TOM
    {14E52635-0A95-4a5c-BDB1-E0D0C703B6C8}/town-hbwj29zoqc.TOM is registered on thes
    e accounts:
            CN=Administrator,CN=Users,DC=TOM
            CN=TOWN-HBWJ29ZOQC,CN=Computers,DC=TOM
    RestrictedKrbHost/serv1 is registered on these accounts:
            CN=C00049,CN=Computers,DC=TOM
            CN=SERV1,OU=Domain Controllers,DC=TOM
    RestrictedKrbHost/serv1.TOM is registered on these accounts:
            CN=C00049,CN=Computers,DC=TOM
            CN=SERV1,OU=Domain Controllers,DC=TOM
    found 5 groups of duplicate SPNs.
    Went to the computers OU and changed computer c00049 to the correct SPN. Now I have a new issues, I'll start a new thread.

  • I cannot log into facebook. I get the following message: 404 Error - Not Found The resource you have requested could not be found on the server. There are many possible reasons for this. Either the file does not exist, there is an error in your request,

    I am not able to go to the facebook site. www.facebook.com is not working. I get the following error message. 404 Error - Not Found
    The resource you have requested could not be found on the server. There are many possible reasons for this. Either the file does not exist, there is an error in your request, or the file is not accessible in the requested directory. Please verify that:
    * You have used the proper case; requests ARE case-sensitive!
    * You have entered the URL correctly. (i.e. proper directory/filename)
    * You used the FULL URL. (i.e. proper file type: .html, .gif , .jpg, etc.)
    * You use a tilde (~) before user directories. (i.e. www.furcen.org/~jurann/ )
    * The user/file still exists on this server.
    I also get redirected to "Busca Google" when typing www.facebook.com in the address bar.
    == URL of affected sites ==
    http://facebook.com; buscagoogle.com

    I have the same problem and it does not have to do with firefox. Do you have any idea how to fix it through?

  • ICal Server email invitations - how to test and get this feature working

    iCal Server email invitations - how to test and get this feature working
    Thanks Apple for introducing this nice little feature into iCal but then completely neglecting to write any sort of useful manual that can explain what to do when it doesn't work after you set it up for the first time.
    At long, long last we have finally got there after about 6 months of fiddling on and off, so I thought I had better post up the process since many have similar issues and it is hard to ascertain what is going on.
    Using an external email server was just a waste of time and it still wouldn't handle the replies properly even though it was supposed to handle '+addressing'. In the end I set up a special gmail account for the iCal server and finally got it working. I list here the process of configuring and testing the system to check that each little stage is working.
    Set up a Gmail account in Apple Mail to access and test in the usual way for any email account (e.g. [email protected].);
    Set the iCal server email to access the same email using the following settings:
    IMAP
    SMTP
    [email protected]
    smtp.gmail.com
    Port: 993 [x] Use SSL
    Port: 587 [x] Use SSL
    User & Pwd
    Login
    User & Pwd
    To test the settings:
    send out a test email from Apple Mail to a non-server email address that you can access to check it has been received;
    send out a test email from your non-server email account to [email protected] and check that it is received;
    this tells you that the GMail account is setup correctly and working
    Testing iCal:
    I noted that iCal was deleting any emails that arrive in the inBox in Apple Mail as soon as they arrived (this is to be expected);
    test that the invites are being sent from iCal by setting an event in iCal and inviting your non-server address (you may not see any sign of this in Apple Mail but you should catch it in the iCal server log and possibly in the Gmail sent mail box);
    check that the invite is received at your non-server account and Accept it in iCal on another machine - the reply is automatically sent back;
    the replies appear in Apple Mail but are quickly deleted by iCal. But their record for you to see is left in Gmail under 'All Mail';
    Accepted invites appear as a notification button on the top left hand bar on iCal where you click to acknowledge them and then the attendee is shown as a green circled tick instead of a grey circled ?.
    this shows that iCal invitations are working correctly. Whenever an event is updated, all invitees should be updated by email automatically.
    I hope this helps anyone - I could certainly have done with something similar when I started with looking at this.
    Anatole
    The Error and Access logfile in the Server app under iCal server are very useful in determining any errors. I got lots of imip errors when I didn't quite have the settings right. The port is critical and it won't tell you this is the problem if it fails.

    iCal Server email invitations - how to test and get this feature working
    Thanks Apple for introducing this nice little feature into iCal but then completely neglecting to write any sort of useful manual that can explain what to do when it doesn't work after you set it up for the first time.
    At long, long last we have finally got there after about 6 months of fiddling on and off, so I thought I had better post up the process since many have similar issues and it is hard to ascertain what is going on.
    Using an external email server was just a waste of time and it still wouldn't handle the replies properly even though it was supposed to handle '+addressing'. In the end I set up a special gmail account for the iCal server and finally got it working. I list here the process of configuring and testing the system to check that each little stage is working.
    Set up a Gmail account in Apple Mail to access and test in the usual way for any email account (e.g. [email protected].);
    Set the iCal server email to access the same email using the following settings:
    IMAP
    SMTP
    [email protected]
    smtp.gmail.com
    Port: 993 [x] Use SSL
    Port: 587 [x] Use SSL
    User & Pwd
    Login
    User & Pwd
    To test the settings:
    send out a test email from Apple Mail to a non-server email address that you can access to check it has been received;
    send out a test email from your non-server email account to [email protected] and check that it is received;
    this tells you that the GMail account is setup correctly and working
    Testing iCal:
    I noted that iCal was deleting any emails that arrive in the inBox in Apple Mail as soon as they arrived (this is to be expected);
    test that the invites are being sent from iCal by setting an event in iCal and inviting your non-server address (you may not see any sign of this in Apple Mail but you should catch it in the iCal server log and possibly in the Gmail sent mail box);
    check that the invite is received at your non-server account and Accept it in iCal on another machine - the reply is automatically sent back;
    the replies appear in Apple Mail but are quickly deleted by iCal. But their record for you to see is left in Gmail under 'All Mail';
    Accepted invites appear as a notification button on the top left hand bar on iCal where you click to acknowledge them and then the attendee is shown as a green circled tick instead of a grey circled ?.
    this shows that iCal invitations are working correctly. Whenever an event is updated, all invitees should be updated by email automatically.
    I hope this helps anyone - I could certainly have done with something similar when I started with looking at this.
    Anatole
    The Error and Access logfile in the Server app under iCal server are very useful in determining any errors. I got lots of imip errors when I didn't quite have the settings right. The port is critical and it won't tell you this is the problem if it fails.

  • I have windows xp. I downloaded quick time no problem still can't get itunes to install. Still get same message (a program for this install to complete could not be run).

    I have windows xp. I downloaded quick time no problem still can't get itunes to install. Still get same message (a program for this install to complete could not be run).

    Try the following user tip:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • How to write query for this in TopLink ?

    I am doing a simple search in jsp where the search will the based on the choices chosen by user.
    I had given 3 check boxes for those choices.
    The problem is, query will be based on the choice or choices chosed by the user.
    How to write query for this in TopLink ?
    Thanks in Advance..
    Jayaganesh

    Try below solution, it is NOT best solution but might work:
    Declare @Questions TABLE (QuestionID INT, QuestionText Varchar(100))
    INSERT INTO @Questions
    VALUES (1, 'Comment'), (2, 'Score')
    DECLARE @Answers TABLE (authkey INT, QuestionID INT, questiontext VARCHAR(100), answertext VARCHAR(100))
    INSERT INTO @Answers
    VALUES (101, 1, 'comment', 'hi!!'), (101, 2, 'score', '4'), (102, 1, 'comment', 'excellent'), (102, 2, 'score', '5'), (103, 2, 'score', '6'), (104, 2, 'score', '8')
    SELECT
    A.AuthKey
    ,Q.QuestionID
    ,Q.QuestionText
    ,A.AnswerText
    FROM
    @Questions Q
    INNER JOIN @Answers A ON Q.QuestionID = A.QuestionID
    UNION
    SELECT
    A.AuthKey
    ,Q.QuestionID
    ,Q.QuestionText
    ,Null
    FROM
    @Questions Q
    CROSS JOIN @Answers A
    WHERE
    NOT EXISTS (SELECT 1 FROM @Answers SubQry WHERE SubQry.AuthKey = A.AuthKey AND SubQry.QuestionID = Q.QuestionID)
    Output
    AuthKey | QuestionID
    | QuestionText
    | AnswerText
    101 | 1 | Comment | hi!!
    101 | 2 | Score | 4
    102 | 1 | Comment | excellent
    102 | 2 | Score | 5
    103 | 1 | Comment | NULL
    103 | 2 | Score | 6
    104 | 1 | Comment | NULL
    104 | 2 | Score | 8
    Best Wishes, Arbi; Please vote if you find this posting was helpful or Mark it as answered.

  • TS4009 I upgraded my Icloud storage yesterday by 10GB, but one day later realize I did not need to do so.  The apple advice is to cancel within 15 days for a refund, but does not tell you how to do so.  Anyone know how to contact apple for this purpose?

    I upgraded my Icloud storage yesterday by 10GB, but one day later realize I did not need to do so.  The apple advice is to cancel within 15 days for a refund, but does not tell you how to do so.  Anyone know how to contact apple for this purpose?

    You would have to contact Apple in order to do that. Just use this link to ask Apple for a refund: http://www.apple.com/support/contact/

  • Security database on the server doesn't have a computer account for this workstation trust relationship

    Hi,
    in our windows server 2008 R2 standard , we are facing this error "Security database on the server doesn't have a computer account for this workstation trust relationship " on an regular basis. we have did below mentioned teps to solve the issue
    1. Disjoin the system from Domain & joined it again.
    2. tested the computer secure channel connection.
    3. checked the DNS settings of server
    4.checked the computer account in AD which disabled or not.
    Everything was ok but after doing changes again after 2 - 3 days we are facing same error message.
    Please help to sort the issue on an urgent basis. 

    When the error happen, can you check the computer account in your AD's console (with advanced feature at on), to check the date it was updated and if the SID is the same ? (objectSID and pwdLastset)
    I guess someone try to domain join a computer with the same name, and flush your computer account at the same time.
    Regards, Philippe
    Don't forget to mark as answer or vote as helpful to help identify good information. ( linkedin endorsement never hurt too :o) )
    Answer an interesting question ? Create a
    wiki article about it!

  • Hey ! At the moment I am creating a eBook, which should contain links to iTunes. Does anyone know, if it is necesary to join the affiliate program for this ?? Cause I don`t want to ;-)

    Hey ! At the moment I am creating a eBook, which should contain links to iTunes.
    Does anyone know, if it is necessary to join the affiliate program for this ?? Cause I don`t want to ;-)

    Hi Bruce,
    I'm getting closer. I actually tried a variety of  expressions, such as "== null" and yours, but the problem persists.
    I am settling on the following, but there is a hangup related to the field that is being looked at for the condition that I will explain in a minute. Here's the script:
    if 
    (ViolationsTable.ViolCorrSection.ViolationsText.DebitVal.isNull || ViolationsTable.ViolCorrSection.ViolationsText.DebitVal.rawValue.length == 0)
    ViolationsTable.ViolCorrSection.instanceManager.removeInstance(parent.parent.index);
    else
    app.alert ("Warning Statement);
    ViolationsTable.ViolCorrSection.instanceManager.removeInstance(parent.parent.index);
    What happens is that, no matter which row in my table I'm in when I click the remove instance button, the script is always looking to the DebitVal field in the first row of the table. So, if the first row is empty, the message box won't appear for the removal of any row in my table. If the first row has a value in DebitVal, then the deletion of any row in the table will trigger the message box.
    I need a way to specify the script to look at the DebitVal field in the row that I am clicking in, without messing up the remove instance command.
    Ideas?
    Dave

  • Apple Logo and Progress Bar Stuck 1 out of 5 while Restoring my iPhone 5 to iOS8. How can i Do for This Problem. Sometime iTunes say An Unknown error occured (error -14)

    Apple Logo and Progress Bar Stuck 1 out of 5 while Restoring my iPhone 5 to iOS8. How can i Do for This Problem. Sometime iTunes say An Unknown error occured (error -14) iTunes Version is 11.4

    The error that you are seeing has to do with your Internet connection. Try disabling your anti-virus software and connect the iPhone again and try to restore. See this support document for help. http://support.apple.com/kb/HT1808

Maybe you are looking for