Java e-mail link    Help.

How do you wright Java to send and e-mail and then redirect to a new web page?
I am using Web Page maker. It's a simple web designing program. The FORM fetcher for e-mail is crude. When someone fills out the e-mail form and hits SUMMIT it sends us the e-mail but dose not clear the form.
We would like it to send the e-mail and than automatically send them to a new sight ware we will say thank you.
Is it as simple as adding Java to the end of the mailto:[email protected] address?
Help. Thanks

You need to assign a link to your button.
If you want to link to another page in your site - e.g. a
contact mailform or something - just click on the contact button
image in DW and browse to the required page in the Link field of
the property inspector.
OR.. if you want to open an email client with a new message
to tan email address - click on the contact button image and type a
"mailto:" in the Link field of the property inspector... e.g.
mailto:[email protected]
Hope this helps.

Similar Messages

  • Premium Mail link broken for months - Please help

    I have been trying to upgrade to Premium Mail (as per many of the other posts I read on here)
    Every time I click on the Premium Mail link it tells me the page is broken. Thsi has been happening for a long while now. I can't find any way of doing it on Yahoo Mail website either. This is driving me nuts. I just want to keep my email address. We have already cancelled our broadband with BT since my boyfriend moved in and we consolidated phone lines.
    Please help.
    Heather

    Your only hope is to contact Yahoo, as BT will have no more involvement as you are not one of their customers any more.
    See http://io.help.yahoo.com/contact/index?locale=en_US&y=PROD_MAIL&page=contact
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Java Mail Project HELP Required....URGENT PLZ HELP!!!

    hello there!!
    i took up a pjct for my engineering on java mail..got the code..and i thought that ill analyse it...the code is submitting the mail to the smtp server but after dat its failing to deliver to the client..as i can see this error in the logs on SMTP server...can anyone help me out in analysing this code!!!
    plz help, exams are near...(am new to java)
    //java FINAL!
    import javax.swing.*;
    import java.net.URL;
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    public class EmailProg extends JPanel implements ActionListener {
    protected JTextArea textArea;
    protected String newline = "\n";
    static final private String composemail = "compose";
    static final private String sendmail = "send";
    static final private String about = "about";
    static final private String submit = "submit";
    static final private String exit = "exit";
    JLabel lSubmit = new JLabel("Submit");
    JButton subbutton = new JButton();
    JTextArea emailfrom = new JTextArea(1,1);
    JTextArea emailto = new JTextArea(1, 1);
    JTextArea emailsubject = new JTextArea(1, 1);
    JTextArea emailmessage = new JTextArea(25, 1);
    //------BAG LAYOUT
    JLabel lFrom = new JLabel("From:");
    JTextField cFrom = new JTextField(32);
    JLabel lTo = new JLabel("To:");
    JTextField cTo = new JTextField(32);
    JFrame frame2 = new JFrame("Compose New");
    JLabel lSubject = new JLabel("Subject");
    JTextField cSubject = new JTextField(32);
    JLabel lMessage = new JLabel("Body");
    JTextArea cMessage = new JTextArea(5,32);
    //====================================
    public EmailProg() {
    super(new BorderLayout());
    //Create the toolbar.
    JToolBar toolBar = new JToolBar();
    addButtons(toolBar);
    //Create the text area used for output. Request
    //enough space for 5 rows and 30 columns.
    textArea = new JTextArea(5, 30);
    textArea.setEditable(false);
    textArea.setText("Welcome to Jeff's email program! With this program you can compose and send emails. I hope I get a good grade on thise, and marine world finds a good use for it :-D:-D (implements really just testing the scroller!!!)");
    JScrollPane scrollPane = new JScrollPane(textArea);
    //Lay out the main panel.
    setPreferredSize(new Dimension(450, 110));
    add(toolBar, BorderLayout.NORTH);
    add(scrollPane, BorderLayout.CENTER);
    //==================================
    protected void addButtons(JToolBar toolBar) {
    JButton button = null;
    //first button
    button = makeNavigationButton("/toolbarButtonGraphics/general/ComposeMail24.gif", composemail ,"Compose new Email", "compose new");
    toolBar.add(button);
    //second button
    button = makeNavigationButton("toolbarButtonGraphics/general/SendMail24.gif", sendmail,"Send The Mail","send");
    toolBar.add(button);
    //third button
    button = makeNavigationButton("toolbarButtonGraphics/general/About24.gif", about,"About","About");
    toolBar.add(button);
    //exit button
    button = makeNavigationButton("toolbarButtonGraphics/general/Stop24.gif", exit, "Exit", "Exit");
    toolBar.add(button);
    //===================================
    protected JButton makeNavigationButton(String imageName, String actionCommand, String toolTipText, String altText) {
    //Look for the image.
    String imgLocation = imageName;
    URL imageURL = EmailProg.class.getResource(imgLocation);
    //Create and initialize the button.
    JButton button = new JButton();
    button.setActionCommand(actionCommand);
    button.setToolTipText(toolTipText);
    button.addActionListener(this);
    if (imageURL != null) {                      //image found
    button.setIcon(new ImageIcon(imageURL));
    } else {                                     //no image found
    button.setText(altText);
    System.err.println("Resource not found: "+ imgLocation);
    return button;
    //=============================
    public void actionPerformed(ActionEvent e) {
    String cmd = e.getActionCommand();
    String description = null;
    // Handle each button.
    if (exit.equals(cmd)){
    textArea.setText("");
    description = "EXITING";
    System.exit(0);
    if (composemail.equals(cmd)) { //first button clicked
    textArea.setText("");
    description = "Write new mail.";
    composeWindow();
    } else if (sendmail.equals(cmd)) { // second button clicked
    textArea.setText("");
    description = "This button does'nt do anything yet :x";
    } else if (about.equals(cmd)) { // third button clicked
    textArea.setText("");
    description = "About this program. (See pop-up)";
    coolWindow();
    else if (submit.equals(cmd))
    if (cFrom.getText().equals("")||cTo.getText().equals("")||cSubject.getText().equals("")||cMessage.getText().equals(""))
    textArea.setText("One or more of the fields was not filled in.");
    else{
    try {
    String smtpServer="serverhere";
    String to=cTo.getText();
    String from=cFrom.getText();
    String subject=cSubject.getText();
    String body=cMessage.getText();
    send(smtpServer, to, from, subject, body);
    textArea.setText("");
    description = "Mail Sent.";
    JOptionPane.showMessageDialog(null, "Message Sent.");
    catch (Exception ex)
    System.out.println("Usage: java com.lotontech.mail.SimpleSender"
    +" smtpServer toAddress fromAddress subjectText bodyText");
    //CLOSE THE FRAME2 WINDOW IIIIIIIIFFFFFFF SENDING IS SUCCESSFUL!!
    }//end of else during send
    }//end of if of submit
    displayResult(description);
    //============================
    protected void displayResult(String actionDescription) {
    textArea.append(actionDescription + newline);
    //=============================
    public void coolWindow() {
    JFrame frame = new JFrame("About");
    JTextArea filecontents = new JTextArea();
    filecontents.setText("Use the tool bar to compose\n compose new emails, in which you can\n send to anyone on the\n srvhs email server. \n Fill in all the blanks before pressing send. If you dont\n you will receive an error! \n For more information about this program click on the\n information button.");
    frame.getContentPane().add(filecontents, BorderLayout.CENTER);
    frame.pack();
    frame.setResizable(false);
    frame.setSize(300,200);
    frame.setVisible(true);
    //===============================
    public void composeWindow() {
    frame2.getContentPane().setLayout(new GridBagLayout());
    frame2.setResizable(false);
    frame2.setSize(600,500);
    frame2.setVisible(true);
    GridBagConstraints gbc = new GridBagConstraints();
    gbc.insets = new Insets(5, 10, 5, 10);
    cMessage.setLineWrap(true);
    subbutton = makeNavigationButton("toolbarButtonGraphics/general/SendMail24.gif", submit,"submit","submit");
    addRow(gbc, lFrom, cFrom);
    addRow(gbc, lTo, cTo);
    addRow(gbc, lSubject, cSubject);
    addRow(gbc, lMessage, cMessage);
    addRow(gbc, lSubmit, subbutton);
    //===============================
    private void addRow(GridBagConstraints gbc, Component left, Component right) {
    gbc.gridx = GridBagConstraints.RELATIVE;
    gbc.gridy = GridBagConstraints.RELATIVE;
    gbc.gridheight = 1;
    gbc.gridwidth = 1;
    gbc.anchor = GridBagConstraints.EAST;
    frame2.getContentPane().add(left, gbc);
    gbc.gridwidth = GridBagConstraints.REMAINDER;
    gbc.anchor = GridBagConstraints.WEST;
    frame2.getContentPane().add(right, gbc);
    frame2.pack();
    //=======================
    public static void send(String smtpServer, String to, String from, String subject, String body) {
    try {
    Properties props = System.getProperties();
    props.put("localhost", smtpServer);
    Session session = Session.getDefaultInstance(props, null);
    System.out.println(smtpServer);
    // -- Create a new message --
    Message msg = new MimeMessage(session);
    // -- Set the FROM and TO fields --
    msg.setFrom(new InternetAddress(from));
    msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));
    // -- We could include CC recipients too --
    // if (cc != null)
    // msg.setRecipients(Message.RecipientType.CC
    // ,InternetAddress.parse(cc, false));
    // -- Set the subject and body text --
    msg.setSubject(subject);
    msg.setText(body);
    // -- Set some other header information --
    msg.setHeader("X-Mailer", "LOTONtechEmail");
    msg.setSentDate(new Date());
    // -- Send the message --
    Transport.send(msg);
    System.out.println("Message sent OK.");
    catch (Exception ex)
    ex.printStackTrace();
    public static void main(String[] args) {
    JFrame frame = new JFrame("EmailProg");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    EmailProg newContentPane = new EmailProg();
    newContentPane.setOpaque(true);
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    }

    The code to retrieve the messages from SMTP
    finally all working fine...
    thanx guys!!!
    package EmailProg;
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.io.*;
      * A simple email receiver class.
    public class SimpleReceiver
        * Main method to receive messages from the mail server specified
        * as command line arguments.
      public static void main(String args[])
        try
          String popServer=args[0];
          String popUser=args[1];
          String popPassword=args[2];
          receive(popServer, popUser, popPassword);
        catch (Exception ex)
          System.out.println("Usage: java com.mail.SimpleReceiver" +" popServer popUser popPassword");
        System.exit(0);
         * "receive" method to fetch messages and process them.
       public static void receive(String popServer, String popUser, String popPassword)
         Store store=null;
         Folder folder=null;
         try
           // -- Get hold of the default session --
           Properties props = System.getProperties();
           Session session = Session.getDefaultInstance(props, null);
           // -- Get hold of a POP3 message store, and connect to it --
           store = session.getStore("pop3");
           store.connect(popServer, popUser, popPassword);
           // -- Try to get hold of the default folder --
           folder = store.getDefaultFolder();
           if (folder == null) throw new Exception("No default folder");
           // -- ...and its INBOX --
           folder = folder.getFolder("INBOX");
           if (folder == null) throw new Exception("No POP3 INBOX");
           // -- Open the folder for read only --
           folder.open(Folder.READ_ONLY);
           // -- Get the message wrappers and process them --
           Message[] msgs = folder.getMessages();
           for (int msgNum = 0; msgNum < msgs.length; msgNum++)
             System.out.println(msgs[msgNum]);
         catch (Exception ex)
           ex.printStackTrace();
         finally
           // -- Close down nicely --
           try
             if (folder!=null) folder.close(false);
             if (store!=null) store.close();
           catch (Exception ex2) {ex2.printStackTrace();
      }

  • I'm unable to access my yahoo email account using updated firefox browser, i keep getting error page when I use the mail link on yahoo pages

    Since updating Firefox browser, i am unable to gain access to my yahoo email account. I can access the email with Interent Explorer with no trouble. Whenever I click on a mail link on the yahoo sites to check my mail, I get rerouted to an error page ..... "Sorry, we can't find "ca.mg4.mail.yahoo.com/dc/launch?.gx=1". Please check the spelling of the web address." is what is said at top of page whenever I click on any mail links.

    This is how I fixed it on my new iPhone 5S. Using the standard yahoo setting on my phone.
    You will have to access  "managing your app passwords" on your account profile for yahoo. Generate password for your app. For example: "My iPhone 5S'
    Go to your Iphone and set up your yahoo mail account on your phone the normal way and you have to use the generated password.  instead of the yahoo account password.
    source:
    http://virtualizeme.net/iphone-5-yahoo-mail-server-unavailable-fix/
    I hope this helps,
    cheers

  • "Show in Mail" link in To-Dos - can't get rid of, like a virus

    Hello!
    I use To-Dos in iCal intensively.
    But strange thing started to happen - all my To-Dos magically get "Show in Mail" link in URL field.
    When I enter a new To-Do - everything is fine,
    but after a couple of days "Show in Mail" link sticks to it again.
    (This link takes you to nowhere).
    And I can't get rid of it any other way then just by deleting "infected" To-Do.
    Please help.

    I think I've got it fixed....I "reset" my mail program, I deleted my mailbox then re-created it and I'm all set for now.

  • Firefox is my default browser, yet a direct e-mail link brings up IE. I use Hotmail for all my mail, Can I change something so a direct e-mail links brings up hotmail in firefox rather than IE?

    When I click on a direct e-mail link (e.g."send mail") Hotmail (my e-mail of choice) comes up in IE even though Firefox is my default browser. Can I change something so that it brings up Hotmail in firefox?
    == This happened ==
    A few times a week
    == all the time

    Please post info:
    In Thunderbird
    Help > Troubleshooting Information
    click on 'copy text to clipboard'
    paste info into this question
    remove/edit all info on fonts and printers. but nothing else.
    Please state which account is set as default.
    It will appear at the top of your Folder Pane and Account Settings.
    Go into Tools > account Settings
    select the top mail account
    click on 'Account Actions'
    Is the 'set as default' greyed out? This means it is already set as default.

  • Safari suddenly stopped Mail Link to this Page in gmail

    Up until last night safari would open my gmail composer when I hit Mail Link to this Page. I do not use Mail on this computer. It opens correctly on firefox but since the firefox upgrades my laptop runs too hot with it. The new safari was working fabulously until last night.
    Any ideas?
    Thanks'

    HI Connie,
    MIght be some help here in GMail known issues.
    http://mail.google.com/support/bin/static.py?page=known_issues.cs
    A work around might be to Compose Mail and click the Link icon. It's in between Insert an Emoticon and and Numbered LIst icons. Just drag the link from the Safari Address Bar to the Compost window.
    Carolyn
    Message was edited by: Carolyn Samit

  • Mail link to this page...question

    When I select the "Mail link to this page" option in Safari, the Mail compose window opens but it opens behind the main Mail application. Does anyone know what I need to change to correct this please? Thanks

    William,
    I noticed it when you pointed it out, but without your observation, would never have known that the difference exists, because I found the Mail feature without the Help documentation.
    Some would call that a "Bug," but I just call it an error in documentation.
    Perhaps Apple Feedback would be appropriate.
    ;~)

  • What happened to "Mail Link to This Page" in Safari 6.0 in Mountain Lion?

    I just loaded Mountain Lion onto my MacBook Pro. When I went to use Safari (6.0), I noticed that I can no longer find "Mail Link to This Page" under File. How do i mail a link now?

    Thanks for that, as I hadn't noticed the dropdown in the composition window. However, it also requires you to change the format of the message to Rich Text in order for the page to transmit properly. I'm a journalist, and I use plain text for all my messages (newspapers prefer this), so now I have to select File>Share>Email This Page, then choose Send Web Content As Web Page, then change Message Format to Rich Text, before I get the result I need.
    In the previous OS I just chose "Send Contents of Web Page" or whatever the instruction was, and it was done.
    I'm beginning to understand the true difference between the phrases "unnecessarily complicated" and "simply elegant".
    I appreciate your help, nevertheless.

  • Mail   I inherited an iMac, OS X 20.6.8. The Mail system is corrupted.  I cannot close mail formats that opened to be written and sent.  I just get an unpleasant noise when I try to close these.  Also, I don't know what the outgoing mail link should be.

    RE: Mail  
    I inherited an iMac, OS X 10.6.8. The Mail system is corrupted.  I cannot close blank mail formats that opened to be written and sent.  I just get an unpleasant noise when I try to close these.  Also, I don't know what the outgoing mail link should be.
    Please help!
    M. Levine

    Quit Mail, Trash this file...
    Safe Boot , (holding Shift key down at bootup), use Disk Utility from there to Repair Permissions, test if things work OK in Safe Mode.
    Then move these files to the Desktop for now...
    /Users/YourUserName/Library/Preferences/com.apple.finder.plist
    /Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
    /Users/YourUserName/Library/Preferences/com.apple.desktop.plist
    /Users/YourUserName/Library/Preferences/com.apple.recentitems.plist
    /Users/YourUserName/Library/Preferences/com.apple.mail.plist
    Reboot & test.
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.

  • Veryfying blackberry id via e-mail link on handset

    we are trying to validate our e-mail and password vis the handset e-mail link that is sent from blackberry.
    the handset starts downloading data but then switches to downloading 1of21 images and then goes back to downloading data,it does this for over an hour and we are still trying to verify our details.
    any suggestions????

    Hi I need help logging into Spotify with email.  I have spotfity on my computer and when I reset my password, it won't let me login. I keep getting this error message " The username or password is incorrect" I reset my password again and it still keeps giving me that error message. Please help, this is a really annoying probelm .FYI, I do not want to login with my facebook account, just prefer to use email. Thanks.  

  • E-mail Link in Flash MX for Mac Not Working

    Hi
    I'm currently using Flash MX on a Mac running OS 10.4. When I
    publish a SWF file the e-mail link in it doesn't work. Within the
    Flash file itself I've added the action mailto:[email protected]
    to a button. It simply opens up the default internet browser
    (Safari) when clicked, instead of the default e-mail program (Mail
    or Entourage).
    It works fine on PCs running Windows XP or Vista - just not
    on Macs. I even sent it to a friend who also has a Mac to make sure
    it wasn't just my computer, and he had the same problem.
    Any help would be greatly appreciated!

    you are using....???
    getURL("mailto:[email protected]");
    This would be the proper syntax. What version of the Player
    are you targeting 4,5,6 perhaps even 7?

  • How can i force a mail link to open in the viewer and not in the Mail App?

    Hello to everybody!
    I've a trouble about the mail links in a digital pubblication. I've to force a mail link to open inside the viewer.
    A normal mail link causes the exit of the app and switch into the iPad Mail App... Is it possible force to open the mail link inside the folio with the DPS?
    I've seen other digital pubblication made outside the DPS that can open the mail tab of the Mail App without exiting the starting App...
    Thank you in advance for your help!
    Max

    You can't with DPS, it will always launch the mail application registered with the operating system.
    Neil

  • How can I click on an e-mail link and have it automatically start my aol mail?

    When I click on an e-mail link on Firefox, it will not open my aol mail to compose a letter. I cannot find, on Options - Applications - mailto, where I can point to aol mail.
    Can someone help?

    AOL doesn't appear in the actions dropdown for mailto. HOWEVER, I have solved the problem by this manner:
    I went to Control Panel - Programs - Default Program - Set Program access & computer defaults - Custom - Choose a default e-mail program - AOL.
    When I did that, BAM! - I went to Firefox, clicked on the e-mail address, and it instantly put the e-mail address into AOL on an outgoing e-mail ready for me to use.
    Thank you for responding. Don

  • E-mail link in Flash CS4 problem...

    First i'd like to greet all community.
    I have problem with creating e-mail link in my Flash CS4 program. The problem is that when i create button i cant attach any actions to him. It was not a problem for me in flash 4 i was working before. The movie is in Action script 3.0. I will appreciate any sort of help.
    see you.
    Sebastian

    use the code suggested by webqaflash and just add
    navigateToURL(new URLRequest("mailto:EMAILADDRESS?Subject=ANYSUBJECTTEXT&Body=ANYBODYTEXT"));
    in your call function.
    Just a  suggestion but I would put all the actions in a code-behind file rather than within the actual Flash file which is how you did it back in the Flash 4 days. That way you only need to edit and update the AS file when you need to change your e-mail addresses.
    -Josh Squires

Maybe you are looking for

  • Error Message: "The file 'iTunes Library.itl" cannot be read..."

    I'm trying to install iTunes on my machine and am getting this error message: "The file 'iTunes Library.itl" cannot be read because it was created by a newer version of iTunes." Does anyone know why? How can I fix this?

  • The class or interface 'flash.utils.ByteArray' could not be loaded.

    Hi all, I am trying to use some of the new functionality that is available in AS3 and I keep getting an unfathomable error message. The code that I am using is at the bottom of this post. No matter what I do I keep getting the following error when I

  • Camera Raw custom settings issue on 4.5?

    I updated to CR 4.5 on my new Mac 17 inch powerbook, and now the custom settings choice uder the basic pull down menu no longer seems to do anything. It used to update from the previous change I had done in the open camera raw window. Now I would nee

  • Missing Apps in Creative Cloud?

    I don't seem to have all the apps available for download that are supposed to come with my Complete Creative Cloud version - I'm missing Lightroom, Premiere Elements, Edge, After Effects, Speedgrade, and Encore. None of these show up either online or

  • Why wont Adobe Flash Player download?

    I want to play a game on facebook called Miniplanet, but It says I need to upgrade my flash player. I did what it said but there is one thing that didnt pop up, the accunt control box didnt pop up. I was thinking that this might be the problem but Im