Developed Complete Mail System
Hi All
I have completed the whole Email System by using the Java Mail API's.
It has the features like, Send, Recieve, Multiple Folders, HTML Composing, Block Sender, Sorting, Filters, Address Book, etc.
If any java programmer wants help on Javamail then mail me at.
[email protected]
Regards
I have a problem with the program below. I ran the same code on two(2)
different machine. One is running okay and the other machine, I got the
error below.
Microsoft(R) Windows NT(TM)
(C) Copyright 1985-1996 Microsoft Corp.
C:\>set classpath
CLASSPATH=C:\Sybase\ASEP\Monclass.zip;C:\Sybase\ASEP\3pclass.zip;.;D:\extracts\c
lasses;c:\sybtools\ASEP\Monclass.zip;c:\sybtools\ASEP\3pclass.zip;D:\SQLLIB\java
\db2java.zip;D:\SQLLIB\java\runtime.zip;d:\extracts\classes\FTPProtocol.jar;d:\e
xtracts\classes\mail.jar;d:\extracts\classes\activation.jar;d:\JBuilder4\jdk1.3\
jre\lib\rt.jar;d:\JBuilder4\jdk1.3\lib\tools.jar;d:\JBuilder4\jdk1.3\lib\dt.jar;
d:\jsdk\lib\jsdk.jar;d:\extracts\classes\smtp.jar;d:\extracts\classes\pop3.jar;d
:\extracts\classes\mailapi.jar;
C:\>javac SendMessage.java
C:\>java SendMessage [email protected] [email protected]
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME ty
pe text/plain; charset=us-ascii
at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at SendMessage.main(SendMessage.java:40)
Here's my code.
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class SendMessage
public static void main(String args[]) {
if (args[0] == null) {
System.out.println("from email, parameter(1) is blank");
if (args[1] == null) {
System.out.println("to email, parameter(2) is blank");
String from = args[0];
String to = args[1];
String mailServer = "ustjc3notes6.ustrust.com";
java.util.Properties properties = System.getProperties();
properties.put("mail.host", mailServer);
properties.put("mail.transport.protocol", "smtp");
Session session = Session.getDefaultInstance(properties, null);
try {
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.setRecipients(Message.RecipientType.TO,
InternetAddress.parse(to, false));
message.setSubject("Test");
message.setText("Test Mail");
Transport.send(message);
catch(MessagingException mex) {
mex.printStackTrace();
} // end void main
}
Similar Messages
-
Hi
I want to develop a mail system like yahoo or hotmail and in many other websites. I simply don't know how to start can any one please help
me give me any tutorial or code but should be explanatory.
I am developing it in JSP although i am comfortable in HTML and at beginner level i know JSP.
Thanks in advance
Dhiraj Srivastavahttp://java.sun.com/products/javamail/
-
Dear all,
I want to develope an web based e-mailing system Like yahoomail, gmail etc... I know upto struts frame work.... Probably which technology should i learn which should be helpful for my developement... PHP, Ajax, spring, hibernate or any else?
Please give your valuble suggessions.....
Eeshwaran,
iGFYS, Bangalore.Hi Eeshwaran,
Since you know Struts, you can develop your application using Struts. Also, you can use AJAX in your application which is again easy if you already know javascript.
The following is brief for what can used for what:
Struts, AJAX, HTML, JavaScript ======> Web Applicaton
JavaMail API ======> Mailing Module
Some Standard and recommended SMTP Host ====> mail server
(SendMail - Not Sure)
For the last one (SendMail) I do not know if are getting all that stuff as a part of development environment. If that is so then you need not worry about the same.However, with the above technologies you can atleast start of with something which is wired up as a prototype and later you can go on refining it until you get the final one. -
I have a macbook and I just upgraded to Lion, downloaded the new software for Itunes and added a gmail account in addition to my existing aol account. Altho both mail systems are visible in my mail account I'm no longer receiving emails from either account. I checked the mail doctor and both accounts are connected to the server, but I can't figure out why I'm not receiving emails any longer. I'm trying to clean-up my stuff before I add my new Iphone, but I must admit all of this is rather daunting. Also does anyone know when tech support is available? it must be PST cause no one is there at 8AM EST!
Hello,
It isn't the fw in Network you want o use or look at, that's for something completely different.
My first suspect is the Power Adapter on the LaCie has gone.
At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware>Firewire, what is listed there?
Reset the Firewire bus
If your Firewire or USB isn't recognizing any device. A solution which has worked for some whose hard drive became invisible in 10.4 was simply to follow these four steps to reset the Firewire/USB bus:
1. Shut the machine down.
2. UNPLUG the power lead to the computer and any firewire/USB drive or devices.
3. leave it for 10 minutes.
4. Connect back up and reboot.
http://www.macmaps.com/firewirebug2.html -
SAP CERTIFIED DEVELOPMENT PROFESSIONAL - ABAP SYSTEM INTERFACES WITH SAP
Hello Experts
I am Atush Rohan, I have done my "SAP Certified Development Associate - ABAP with SAP NetWeaver 7.0" on 3rd April 2009.
I want to appear for "SAP Certified Development Professional - ABAP System Interfaces with SAP NetWeaver 7.0". I have about 3 and half years or experience in SAP ABAP. And I plan to give this certificate exam in the coming 6 months.
Could you please tell me how i apply for this exam, and whether SAP provides the certificate material for the exam "P_ABAP_SI_70". Waiting for a positive reply.
Regards
Atush Rohan
Edited by: Atush Rohan on Jul 30, 2009 1:21 PMhi,
actually you can find your sid on your certificate itself ... your sid will start with SXX .. ok now along with this you will receive an envelope in which there would be an letter where detalis regarding your sid and password for login access in sap market place will be stated... so you can login with that in server market place.... usually you get this along with the certificate and is being provided by the centres authority... now if you have not received it so you need to contact your centre and tell them to give it to you... if they dont barged then you can ask them for the concern guy's email .... this guy is the one who receives all the documents relating with your certificate .. now this guy is someone from sap labs banglore ... also if you have not received your id card so you can mail him or tell your centre authority in that case now usually the centre guys take the matters lightly ...
ok and as far as your certification exams goes i did search the pearson website they really dont have that professional certification for the abap guys but they do have one for functionals and some other....
ok now you need to approach yout nearest certification centre in that case and simply ask them that you need to appear for level 2 certification also you can contact the sap labs banglore in that case but i know that they are not responding .....
so in that matter you tell your centre that you need to schedule the certification they will charge you the certification amount and then will schedule the date..... yes they can do that.
hope this will surely help you!!!
thanks & regards,
Punit Raval. -
How to send sapmails to external mail systems
Hi,
how to send sapmails to external mail systems....
like if we want to mail a purchase order from SAP System to *@yahaoo.com or @.com.
TY.hi manish,
u can do it.
chk this .
chk this code
DATA: objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
DATA: objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
DATA: doc_chng LIKE sodocchgi1.
*& Form f_send_mail
text
--> p1 text
<-- p2 text
FORM f_send_mail .
*store the vendor name, vendor email id , employee name and employee
*email id in the internal table int_crb
Creation of the document to be sent
CLEAR doc_chng.
REFRESH objpack.
REFRESH objhead.
REFRESH reclist.
REFRESH objtxt.
File Name
doc_chng-obj_name = 'SHIPMENT'.
Mail Subject
CONCATENATE 'Shipment Document No.' int_crb_mail-shipdocnum
'Cleared.'
INTO doc_chng-obj_descr SEPARATED BY ' '.
Mail Contents
objtxt-line = 'Hi,'.
APPEND objtxt.
objtxt-line = ' '.
APPEND objtxt.
CONCATENATE 'Shipment Document Number ' int_crb_mail-shipdocnum
' cleared for move.' INTO objtxt-line SEPARATED BY ' '.
APPEND objtxt.
objtxt-line = ' '.
APPEND objtxt.
CLEAR objtxt.
objtxt-line = 'Regards '.
APPEND objtxt.
objtxt-line = ' '.
APPEND objtxt.
objtxt-line = 'SAP '.
APPEND objtxt.
CLEAR objtxt.
APPEND objtxt.
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN(
objtxt ).
Creation of the entry for the compressed document
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'RAW'.
APPEND objpack.
Completing the recipient list
target recipent
CLEAR reclist.
reclist-receiver = int_crb_mail-empperid. "employee email ID
"wf_empperid.
reclist-express = 'X'.
reclist-rec_type = 'U'.
APPEND reclist.
copy recipents
CLEAR reclist.
reclist-receiver = int_crb_mail-smtp_addr."vendor email id
reclist-express = 'X'.
reclist-rec_type = 'U'.
reclist-copy = 'X'.
APPEND reclist.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
COMMIT WORK.
SUBMIT rsconn01
WITH mode = 'INT'
WITH output = ' '
AND RETURN.
ENDFORM. " f_send_mail
for any clarifiaction pls mail me.
pls reward points, if this helped u.
regards,
anversha.
[email protected] -
Could I get the datas from IPone mail system?
--------------------------------------------------------------------------------
I want to develop a application for manage the linkmen in IPone?
but I cannot get the datas(such as recipients and addressers names,dates,email addresses,topic, accessories contents) from IPone mail system,becuase I cannot find the API for these data ,though I have taken 2days. Help me ,please~!
Thanks~!The Address Book Programming Guide for iPhone OS explains the AB API and includes a tutorial, sample code, and links to all the AB reference docs.
Hope that helps!
\- Ray -
SMTP Namespace Sharing between two mail system
I have used two mail server (Exchange 2013 and Linux sendmail) for mailing in the same domain like abc.com.
I have converted authoritative domain in to internal relay for sending mail in Linux mail user, and create a send connector point to Linux mail system as a smart host. in that case my exchange user send mail to Linux user and internet via Linux smart host,
then I create a receive connector in exchange server for receiving mail from Linux mail system as edge transport custom connector & permission set to anonymous, when Linux user send mail to my exchange user it queued in my exchange message queue and
the error is:
Last Error:A local loop was detected.
What's the problem?Hi rana78,
As Nathan mentioned, please create Contacts.
Detailed information:
So to avoid NDRs when using shared SMTP namespace you will need to either disable recipient filtering, configure the product to do LDAP queries against all directories that share the namespace, or create Contacts.
More details to see:
How to Share an Email Domain Between Two Mail Systems
http://exchangeserverpro.com/how-to-share-an-email-domain-between-two-mail-systems/
Disclaimer:
Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure
that you completely understand the risk before retrieving any suggestions from the above link.
Thanks
If you have feedback for TechNet Subscriber Support, contact
[email protected]
Mavis Huang
TechNet Community Support -
I can't get datas from IPone mail system?
I want to develop a application for manage the linkmen in IPone?
but I cannot get the datas from IPone mail system,becuase I cannot find the API for these data ,though I have taken 2days. Help me ,please~!Developer questions should be posted here: http://devforums.apple.com
-
Postqueue: fatal: Queue report unavailable - mail system is down
I'm not sure what I did but for some reason my mail system is down. I do PHP development on my mac and have changed nothing.. all of a sudden my app stopped sending mail. So I went to check the mail queue using "mailq" and I get: *postqueue: fatal: Queue report unavailable - mail system is down* I know that the mail is working because it works on other developers machines on the project. Anyone have any idea what happened?
Here is my postconf -n:
alias_maps = hash:/etc/aliases,hash:/var/mailman/data/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debugpeerlevel = 2
delaywarningtime = 6h
disablevrfycommand = yes
enableserveroptions = yes
html_directory = no
inet_interfaces = localhost
localrecipientmaps =
luser_relay = quarantine
mail_owner = _postfix
mailboxsizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
maximalqueuelifetime = 2d
messagesizelimit = 52428800
mydestination = $myhostname,localhost.$mydomain,localhost,oneday.at,tilley.server,mxr.at
mydomain = mxr.at
mydomain_fallback = localhost
myhostname = mxr.at
mynetworks = 127.0.0.0/8,192.168.1.0/24
newaliases_path = /usr/bin/newaliases
ownerrequestspecial = no
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = _postdrop
smtpdclientrestrictions = permitsaslauthenticated, permit_mynetworks, rejectrblclient zen.spamhaus.org, permit
smtpddatarestrictions = permit_mynetworks, rejectunauthpipelining, permit
smtpdenforcetls = no
smtpdhelorequired = yes
smtpdhelorestrictions = permitsaslauthenticated, permit_mynetworks, checkheloaccess hash:/etc/postfix/helo_access, rejectnon_fqdnhostname, rejectinvalidhostname, permit
smtpdpw_server_securityoptions = cram-md5
smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
smtpdsasl_authenable = yes
smtpdsenderrestrictions = permitsaslauthenticated, permit_mynetworks, rejectnon_fqdnsender, permit
smtpdtls_certfile = /etc/certificates/Default.crt
smtpdtls_keyfile = /etc/certificates/Default.key
smtpdtlsloglevel = 0
smtpduse_pwserver = yes
smtpdusetls = yes
unknownlocal_recipient_rejectcode = 550 -
How many mails i can send at a time per day using APEX mail system?
HI,
I am working on application, when i have written a process to send mail, i have a project where i have to send mail at a time for all the email id's
given list there are upto 5000 email id's where text body also include certain set of data from a report. thinking at a time 3000 its difficult i divided
it region wise, but still each region have 2000 odd email id's. during testing when i run the process just 950 mails i could send then i got a error
saying "ORA-20001: You have exceeded the maximum number of email messages per workspace. Please contact your administrator." so please
can any one help me to know How many mails i can send at a time per day using APEX mail system?
Thanks in advance
GowthamiHi jfosteroracle,
You are getting the error may be the following reason,
Check the following,
Login as ADMIN and Goto -->Manage Instance-->Instance Settings--> Mail-->Maximum Emails per workspace
Actually this number denotes the Number of mails can be sent per 24 hour for the workspace,It may exceeded.
It may be the reason.
Thank you.
Regards,
Gurujothi
Edited by: Gurujothi on Jun 27, 2012 5:54 AM -
I can record voice memos fine using the built-in iPhone 4 mic. And my Bluetooth headset (Jawbone Era) works fine when I leave messages on voice mail systems etc. when calling on the iPhone 4, so it appears my headset mic is fine. I can also use voice activated dialing, although it fails miserably interpreting numbers. However, I cannot record voice memos with my Bluetooth mic. I just get barely audible static. Any suggestions? Thanks.
Hello, did you ever get an answer to your question? I just picked up a Jawbone Era and using on an iPhone 4s running 5.0.1. Seems to work fine on regular calls, but not on the built in Voice memos application. It worked fine on my older Jawbone Icon, but haven't tested on the 4s or iOS 5.
Thanks! -
I need to develop a help system for a Client-Server Oracle Form Application.
Can any one suggest any good packages to develop Help system?
Does any one tried Oracle Help for Java (OHJ)?
Please let me know your recommendations and opinions, thanks.
nullTwo methods.
One generate a HTML file and use the Web.Show_Document to display the help file.
Two use shareware like 'Help Workshop' which can be found at www.cnet.com.
Good Luck -
Using Flex to develop a ERP system
I am trying to use Flex4 to develop a ERP system. Now i am using Module technology. it's seem some problem when dynamic loading module. Though I do a force reference in main application. it works. I dont know why and how it happens.
our demo site is http://demo.coolerp.com and our support site is www.coolerp.com
You can check the demo site http://demo.coolerp.com, it seems a little bit slow at the same time.
Now we are usng the following arthictecture to implement ERP
http://www.micsun.com/mainsite/show_list_content.jsp?parentId=1949746407&classId=195080214 8
Any good idea or good architecture for cool ERP, please come to me.
BTW, welcome people knowing ERP or Flex knowledge to join free ERP develoment.
tomby wuHey Tomby,
Good to know about your idea. I was thinking on similar line, although my motivation was only 'fun' to do this. However, I have good expertise over other RIA platforms like YUI, jQuery etc. Let me know if I can help you any where. I am available at [email protected] -
error has occured during install before the requested operation for I tunes could be completed Your system has not been modified to complete the install run the installer again and I have it still won't work
See:
Trouble installing iTunes or QuickTime for Windows
Maybe you are looking for
-
Chinese Fonts are coming ZUNK when i do print preview from web UI
Hello All, I have a smartform which includes a standard text which is maintained in Chinese language. This smartform would be called from web UI -> activities -> Fax -> print preview. when i do print preview of any activity, everything is coming corr
-
Save Encrypted mail on local drive
Hi All I have an odd request from a user. he wants to be able to unencrypt an encrypted mail, and then save it on a share. (for other colleagues to access) The option to uncheck "Encrypt message contents and attachments" is greyed out in the encrypte
-
How to find classes in the package if package path
in java i want to find classes,Interface,Exception names which are presant in the package.. for example java.sql; if i give this it should return class name Date Time DrivarManager pls helpme in this field
-
Adobe Premiere CC won't install 2nd copy
Had Premiere CC on two computers. Uninstalled from one. Even though I have on only one computer now Adobe CC says I have it on two and will not let me install it on the 2nd one. Thanks, L
-
REPEATED POST: Using commit and delete in cascade implementation.
Good morning. I want to do the next task: I have two entities, province and city, which includes an association between them, which implements cascade delete. I want to delete a province, and after that, do the commit operation en the same operation.