22858 total geeks with 3297 solutions
Recent challengers:
sharepoint how to
 Welcome, you are an anonymous user! [register] [login] Get a yourname@osix.net email address 

Articles

GEEK

User's box
Username:
Password:

Forgot password?
New account

Shoutbox
innocentius
I win at OSIX, I guess. Onward to the other challenges!
sefo
anilg, new comments are deleted automaticall y because of some abuse recently
anilg
this is plain wierd. I submitted comments twice to article 950, and they dont seem to be there. Something wrong with the comment code?
CodeX
shout-boxes in general are old + the staff thing happened to everyone after an issue 2 months ago
anilg
/me is no longer staff :(

Donate
Donate and help us fund new challenges
Donate!
Due Date: Sep 30
September Goal: $40.00
Gross: $0.00
Net Balance: $0.00
Left to go: $40.00
Contributors


News Feeds
The Register
Google Instant
blacklists the
Slutskys
Jailbreak hole in
iOS 4.1 will be
hard to close
Google Instant
? more searches,
less thought
Amazon buys (some
of) digital music
site Amie Street
Microsoft wins
court order
crushing mighty
spam botnet
Appro sells another
flash-happy HPC
cluster
NoSQL CouchDB
founder turns to
phone and cloud
services
Netezza, Symantec
jump on takeover
rumors
Adobe Reader 0day
under active attack
Hurd to take
$950,000 salary
after Oracle pay
cut
Slashdot
Film Industry Hires
Cyber Hitmen To
Take Down Pirates
The Real "Stuff
White People Like"
Biometric IDs For
All India"s
Citizens
Big Brother In the
School Cafeteria?
Viking Landers
Might Have Missed
Martian Organics
Online Ads, Privacy
Remain In FTC
Crosshairs
Anti-Product
Placement For
Negative Branding
Solar Cells Made
From Bioluminescent
Jellyfish
How 6 Memorable
Tech Companies Got
Their Names
School Swaps Math
Textbooks For iPads
View Blog
Miscellaneous
by Action on Tue 12th Jan 10pm
Yaw, this is the first blog post, just to begin with something. Nice site here, cool features like OSIDrive, and so on. However, strange that an "OpenSource Institute" uses non-OpenSource softare to host its site (Windows and IIS). It's not correct... I thought, they use Linux.
Miscellaneous blogs Action's blog
Comments:
Anonymous
2010-07-07 23:47:44
QNYE<a href="http://www.online1poker.com">online poker</a>#<br>Poker Sites – amazing<a href="http://www.online1poker.com">poker online</a> Sites on the net all the best poker sites that suit you perfectly. Each online poker site is different but in our list of online poker sites rating there should be a for each taste. Play Online at euro Poker Room<br>Our online poker site features a deposit bonus of 100% up to $600. That's one of the largest bonus offers from any online poker room with Real Money here Getting Started - Thank you for online poker QNYE- Play Free Poker and Internet Texas Holdem is the QNYE largest online poker room, with more poker games at <a href="http://www.online1poker.com/complete-list-of-online-poker-rooms/">list of online poker rooms</a> , bigger tournaments and more players than any other QNYE <a href="http://www.online1poker.com">onlinepoker</a> site.
Anonymously add a comment: (or register here)
(registration is really fast and we send you no spam)

Related Blogs


Glad to be back here in OSIX by jericocampos on Tue 16th Mar 11am

Wow! If not for the password reset, I would have forgotten my account here
in OSIX.
jericocampos's blog

Prams Buggies and Pushchairs by bb on Fri 26th Feb 9am

I've been helping out on a website people use to href="http://www.prambuggypushchair.co.uk">buy prams. Any parents out
there care to comment?
bb's blog

A Daily Profanity at dailyprofanity.com by bb on Mon 21st Dec 11am

For anyone who likes viz, and roger mellies profanisaurus.

There's a website called amusing
daily profanity
which dishes up a humorous profanity every day via rss,
twitter email and a few other ways.

Rather rude words, but very funny in my opinion, although it might just be
a .uk thing!
bb's blog

Blog entry for Wed 25th Nov 7pm by hambone on Wed 25th Nov 7pm

wtf i can't do geek 12. I don't know what to do. i want to kill myself
becuz of this
hambone's blog

Blog entry for Mon 9th Nov 4am by haziman on Mon 9th Nov 4am

for all geekos out there...
haziman's blog

fuck you all!!!!!!!! by echmil on Sat 7th Nov 11pm

jag har tjock med tyngate tråkigt-.-
echmil's blog

Blog entry for Tue 5th May 6am by goldie on Tue 5th May 6am

import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import java.io.*;
import java.util.Properties;
public class SENDMAIL
{


public void sendMail(String mailServer, String from, String to,
String subject, String messageBody,
String[] attachments) throws
MessagingException, AddressException
{
// Setup mail server
Properties props = System.getProperties();
props.put("mail.smtp.host", mailServer);

// Get a mail session
Session session = Session.getDefaultInstance(props, null);

// Define a new mail message
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.addRecipient(Message.RecipientType.TO, new
InternetAddress(to));
message.setSubject(subject);

// Create a message part to represent the body text
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setText(messageBody);

//use a MimeMultipart as we need to handle the file attachments
Multipart multipart = new MimeMultipart();

//add the message body to the mime message
multipart.addBodyPart(messageBodyPart);

// add any file attachments to the message
addAtachments(attachments, multipart);

// Put all message parts in the message
message.setContent(multipart);

// Send the message
Transport.send(message);


}

protected void addAtachments(String[] attachments, Multipart
multipart)
throws MessagingException, AddressException
{
for(int i = 0; i<= attachments.length -1; i++)
{
String filename = attachments[i];
MimeBodyPart attachmentBodyPart = new MimeBodyPart();

//use a JAF FileDataSource as it does MIME type detection
DataSource source = new FileDataSource(filename);
attachmentBodyPart.setDataHandler(new DataHandler(source));

//assume that the filename you want to send is the same as the

//actual file name - could alter this to remove the file path

attachmentBodyPart.setFileName(filename);

//add the attachment
multipart.addBodyPart(attachmentBodyPart);
}
}

public static void main(String[] args)
{
try
{
SENDMAIL MAIL = new SENDMAIL();
String server="pop3.gmail.com";
String from="username@gmail.com";
String to = "other user href="mailto:name@gmail.com">name@gmail.com";
String subject="Test";
String message="Testing";
String[] filenames =
{"c:/somefile.txt"};

MAIL.sendMail(server,from,to,subject,message,filenames);
}
catch(Exception e)
{
e.printStackTrace(System.out);
}

}
}
i want to send mail using this code but i getting exception like this.
avax.mail.MessagingException: Unknown SMTP host: pop3.gmail.com;
nested exception is:
java.net.UnknownHostException: pop3.gmail.com
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1543)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:453)

at javax.mail.Service.connect(Service.java:291)
at javax.mail.Service.connect(Service.java:172)
at javax.mail.Service.connect(Service.java:121)
at javax.mail.Transport.send0(Transport.java:190)
at javax.mail.Transport.send(Transport.java:120)
at SENDMAIL.sendMail(SENDMAIL.java:46)
at SENDMAIL.main(SENDMAIL.java:85)
Caused by: java.net.UnknownHostException: pop3.gmail.com
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:267)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:227)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1511)
... 8 more
i have taken code from this siite only plz suggest me how to remove this
exception.
thanks in advance.
goldie's blog

Bubble Graph by bb on Wed 11th Mar 12pm

I love this graph

href="http://www.osix.net:80/modules/folder/index.php?tid=28125&action=
vf">bubble graph

src="http://www.osix.net:80/modules/folder/index.php?tid=28125&action=v
f" border="0" />
bb's blog

My online resume! by ketan404 on Mon 9th Mar 8am

It is here
href="http://www.listoffreelancers.com/profiles/ketankulkarni">http://www.l
istoffreelancers.com/profiles/ketankulkarni

Simple and clean design. I like this website.

Ketan
ketan404's blog

Blog entry for Sun 8th Mar 3pm by macrocat on Sun 8th Mar 3pm

Another site with some challenges. Basically, I'm linking this to get a
measly five points ;O.

Hellbound Hackers
macrocat's blog

About Me
n:Action
View my Profile

Recent Blogs
First one
Tue 12th Jan 10pm

Link To Me
My Rss Feed
My Blog
My Articles
My Profile


 

     
Your Ad Here
 
Copyright Open Source Institute, 2006