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
Email worm wants to
party like it"s
1999 (almost)
Oracle sneaks out
Solaris 10 refresh
Firefox 4 preview
knocks back Jäger
shot
Google search index
splits with
MapReduce
Steve Jobs lectures
devs, dodges
antitrust action
Ex-Sun CEO sees
rosy future in
health
Opensourcers get
personal over
Ellison"s Google
fight
Apple issues
moral
regulations> apps dev guide
Dell launches
Opteron 4100s into
Boxes-o-Cloud
Clegg"s taking away
Your Freedom
Slashdot
Swedish Police Shoe
Database May Tread
On Copyright
Australia"s
National Broadband
Network To Go Ahead
Robots Taught to
Deceive
Apple Relaxes iOS
Development Tool
Restrictions
HDR Video a Reality
Swedish Police Shoe
Database May Tread
on Copyright
New Email Worm
Squirming Through
Windows Users"
Inboxes
Researchers Create
Real Tractor Beams
Broadcom Releases
Source Code For
Drivers
Mozilla Unleashes
JaegerMonkey
Enabled Firefox 4
View Blog
Miscellaneous
by jericocampos on Tue 16th Mar 11am
Wow! If not for the password reset, I would have forgotten my account here in OSIX.
Miscellaneous blogs jericocampos's blog
Comments:
Anonymous
2010-03-16 12:01:27
yeah there's a lot of talk about me harvesting email addresses. but if anybody is spamming anybody ... it isn't me.

anyway if i can spurr some activity into a challenge site, i'm happy. even if i have to piss some people off in the process.
Anonymous
2010-07-08 03:12:34
http://www.gucciusaoutlet.net/index.php?main_page=index&cPath=74&zenid=aa7cf3c1c03ba16b9ac00c8cd2a23ef2
Anonymously add a comment: (or register here)
(registration is really fast and we send you no spam)

Related Blogs


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

First one 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.
Action'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:jericocampos (Jerico D. Campos)
l:Manila, Philippines
o:Air Navigation Systems Specialist
View my Profile

Recent Blogs
Glad to be back
here in OSIX
Tue 16th Mar 11am

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


 

     
Your Ad Here
 
Copyright Open Source Institute, 2006