Send e-mail through Gmail using Java
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Send e-mail through Gmail using Java

  1. #1
    Join Date
    Jun 2011
    Posts
    2

    Send e-mail through Gmail using Java

    Hi Everybody,
    I'm new here and a fresh Java developer.
    I got a question on my class to write a code to send e-mail through Gmail using Java, I searched the web for some source code to learn from but couldn't find a code that works.
    Can someone help me with it?

    Thanks in adavnce,
    Stav.

  2. #2
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: Send e-mail through Gmail using Java

    Did you try this
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

  3. #3
    Join Date
    Jun 2011
    Posts
    2

    Re: Send e-mail through Gmail using Java

    Quote Originally Posted by keang View Post
    Did you try this
    what do you think?
    I tried a lot of **** but nothing seems to work.

  4. #4
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: Send e-mail through Gmail using Java

    Well when I did that there were several articles explaining how to do what you want and, whilst I may be wrong, I find it hard to believe that they all don't work.

    I suggest you show us the code you have tried and reference the article you have based it on so we can see what you are doing. Also explain what the code did/didn't do and post any error messages.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

  5. #5
    Join Date
    Jun 2011
    Posts
    1

    Re: Send e-mail through Gmail using Java

    Hi,

    Sending of mails from java can be done by using the javax.mail API .


    Try this link.

    http://java.sun.com/developer/onlineTraining/JavaMail

    Also make sure that you install an SMTP server before trying to send a mail.


    Regards,

    Ramnath.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center