[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Please send email if you are having login problems - see the posts below for more info.
Hotmail and Yahoo! users - please see the Hotmail post or the Yahoo! post for information on lost emails.
Messages posted by: colossusdub
Forum Index » Profile for colossusdub » Messages posted by colossusdub
Author Message
Thanks, I managed to get it sorted. I am new to this whole java language so it's quite confusing for me!
Hi,

I have these two codes which both involve sockets. I can't figure out how to combine the smtp code into my first code. If you look at the first code where it prints out "you are at picture A" it is here were i want to be able to send an email. I am quite puzzled as how to combine the two codes to make it work. Any help would be greatly appreciated.

First Code:



SMTP code:
Hi guys,

I am experiencing problems when trying to send emails using the smtp. I am using the code below but am getting the following errors:

220 hawk.dcu.ie ESMTP Service ready
HELO localhost.localdomain
250 hawk.dcu.ie
MAIL FROM: adam.keaney2@mail.dcu.ie
501 Syntax error in parameters or arguments to MAIL command
RCPT to: adam.keaney2@mail.dcu.ie
501 Syntax error in parameters or arguments to RCPT command
DATA
503 DATA command outside of MAIL transaction
Subject: Test Email
Content-type: text/html; charset="us-ascii"
<b>You got mail!</b>
.
500 Subj command unrecognized


 
Forum Index » Profile for colossusdub » Messages posted by colossusdub
Go to:   
Powered by JForum 2.1.9 © JForum Team
This site run by Scott Dunbar of Xigole Systems. © 2005-2011 - Scott Dunbar
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners
hotjoe.com, xigole.com, and Scott Dunbar have no affiliation with Oracle