Java mail program in java
Hi,
Can anybody suggest me the java code which sends mails using java mail api?
Thanks & Regards,
Karimulla
Hi
I have worked on it,so if you need code for the application,please write mail to me on my address [email protected]
hopes u will get gud solution.
cheers
Sandy
Similar Messages
-
Mail Program using Java as...
HI!
Is this possible in java...
to make Mail Program using Java as frontend & use Outlook Express database as backend
PLease Help...
Bunty IndiaHi Gandalf,
I picked up your code and ran it, couple of things, firstly windows and Unix line terminations are different so in your method doCommand use "\r\n" not just \n, this will give a full <CRLF>
On you initial HELO you want to use your computer's id as part of the command so use this line:
sender_domain = InetAddress.getLocalHost().getHostName();
String s1 = new String("HELO " + sender_domain);
s1.trim();
response = doCommand(s1);
Cheers
Dom -
I need a mail program in jsp, where I can also send file
attachments. Where can I get it, is there a particular web site for the source code.
Please help its very urgenttry the java mail api i think it can do what you ask look for it at sun's java site
-
I need some help. How can I set a link in the Java Server Page to call a mail program in the client machine.
The page I am talking about is: http://www.pccruzadas.dontexist.com
Thank you
Manuel BrazHi Gregory,
Thank you for your reply.
I haven't the closest idea how to do what you told me to do.
You know, I have buid some Applets in the past that were embbeded in html files as you can see in: http://pccruzadas.planetaclix.pt/index.html.
Now there are so many tecknologies that I am a litle confused.
Thanks anyway,
Manuel Braz -
1.) How do you find the dictionary in Apple Mail Program? 2.) How do you add another dictionary?
Hello James!
I do not have any ABAP Instance, only the JAVA one.
Therefore the ABAP transactions are quite useless.
The problem tables are created by people working on the CAF layer.
They have developed and deployed some homemade applications and this is leftovers from their development in some kind of way.
Anyone with any ideas?
Could it be that (yet) some special Portal Dictionary Role needs to be asigned to the Administrator?
/Lasse -
Missing plug in in mail program
My mail program doesn't open video. It says "missing plugin" any ideas?
Hello everyone,
Having the same problem with my mail app (6.2 on ML 10.8.2). Most jpg images do not show in-line but only in the quick-view. I only see "missing plug-in" in the message.
I have rebuilt mailboxes and removed java preferences files as some had successfully suggested. Unfortunately, none of these did the trick for me. Any more ideas?. -
Web based mail program like hotmail or yahoo
Hi All,
How do I create a web based mail program like yahoo or hotmail using Java Mail API?
If any one knows please let me know.
my email id: [email protected]
Thanks and Regards,
SaratDear sarat,
First of all u tell me why u want to develop web based mail like yahoo or hotmail, If u want to develop for learning purpose then start from today using java mail API. So u should know Java Mail API. and some webbase scripting like JSP and HTML.
Once u start and if any problem then write in forum we will solve.
If u don't want to develop for learning purpose then u buy it.
Regards
Kinjal Shah. -
Embedding code in text for use in Mail program
I use Mac Mail. I'd like to be able to create a link in an email that would send people to my website, without mentioning the website. To do this, I need to embed the link, in code, in the text, but I don't know how to do this, or even if it can be done in the Mail program.
Is anyone good at this kind of thing who could tell me where I can learn how to do this? Or if it can be done in Mac Mail?
Thanks!code for the calendar.css is as follows:
This stylesheet is part of the java script calendar and date picker
#calender {
width: 200px;
font-family: ms sans serif, sans serif;
font-size: 7pt;
#calenderTable {
border-style: outset;
border-width: 2px;
border-color: black;
background-color: #EEE;
display: none;
position: absolute;
z-index: 1;
top: 0px;
left: 0px;
#calenderTableHead TR {
background-color: #5FB404;
#calenderTableDays TR {
background-color: #B40404;
color: #E6E6E6;
.normalDay {
border: 1px dotted black;
cursor: pointer;
.hlDay {
border: 1px black;
background-color: #585858;
color: #E6E6E6;
cursor: pointer;
.toDay {
border: 1px solid #E70;
background-color: #FD8;
color: #E70;
font-weight: bold;
cursor: pointer;
.choosenDay {
border: 1px #000000;
background-color: #585858;
color: #E6E6E6;
font-weight: bold;
cursor: pointer;
} -
Send email with native mail program
Hi!
I am writing a web application emails are auromatically prepared for the user to send. The catch is that I need to either send the mail using the clients native email application or find a way of adding the sent mail to the sent items folder of the native mail program. I have spent quite some time researching this. Am I trying to do the impossible?
Many thanks in advanceHi!
http://java.sun.com/products/javamail/
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import java.net.ConnectException;
public class Email
String recipient;
String message;
public Email(String recipient,String message)
this.recipient = recipient;
this.message = message;
public void postMail( String recipients, String message ) throws MessagingException
System.out.println("Email IS called");
String subject = "Mail from ";
String from = "[email protected]";
boolean debug = false;
String smtpHost = "mail.XXXX.com";
String popHost = "mail. XXXX.com";
String username = " XXXX @ XXXX.com";
String password = " XXXX";
//Set the host smtp address
Properties props = System.getProperties();
props.put("mail.smtp.host", "mail. XXXX.com");
System.out.println("Email IS called1");
// create some properties and get the default Session
Session session = Session.getDefaultInstance(props, null);
session.setDebug(debug);
// Pop Authenticate yourself
Store store = session.getStore("pop3");
System.out.println("Email IS called2");
store.connect(popHost, username, password);
System.out.println("Email IS called3");
// Define message
MimeMessage mmessage = new MimeMessage(session);
mmessage.setFrom(new InternetAddress(from));
mmessage.addRecipient(Message.RecipientType.TO,
new InternetAddress(recipients));
mmessage.setSubject(subject);
mmessage.setContent(message, "text/plain");
// Send message
Transport.send(mmessage);
store.close();
//For EMail
Email emailser1;
email1 = "XXXX@ XXXX.net";
emailser1 = new Email (email1,tomessage);
try
emailser1.postMail(email1,tomessage);
catch(Exception e)
System.out.println("Email sending error "+e);
System.out.println("Email sending tomessage");
Hope this helps! -
Mail Program used by Oracle reposts builder
I'am trying to send mail through oracle reports builder.
But it seems like Virus Scan has blocked port 25 on my computer so I cannot send mails and I 'am getting the following error.
REP -0069;Internal error
REP -57054:In Process job terminate:Terminated with error
REP -50152:Error while ending mail-Sending failed;
nested exception is:
javax.mail.MessagingException:Could not connect to SMTP host: mail.yahoo.com,port:25;
What is the mail program used by oracle reports builder to send mails(e.g.. javamail.exe) so that I can request my administrator to open the port for this mail program alone.
Thanks in advance.
PreethiHello,
Reports (Builder and Server) uses the Java Mail API to contact the smtp server
http://java.sun.com/products/javamail/javadocs/javax/mail/internet/InternetAddress.html
The smtp server to use is defined in the Reports Server Configuration File
Example:
<pluginParam name="mailServer">smtp01.mycorp.com</pluginParam>
Regards -
Using iPad mail program I have a draft of an email. I have attempted to "cancel" this and "delete draft" but the email stays on my screen. How can I exit this so that I can use other email functions?
Try closing the Mail app completely and see if it works properly when you re-open the app : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
If that doesn't work also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot. -
How to I get a link with a "Mail to" address to open up a Compose window in my Yahoo mail, rather than in the Mail progrom on my Mac. I do not use the Mac Mail program.
== This happened ==
Not sure how often
== alwaysThank you, "the-edmeister" -- You render a great service, one that lifts my spirits.
Your answer also taught me to be a little more persistent, as I had started looking at Preferences, and just didn't notice the icons (including Applications) at the top of that window that would have led me to my answer.
Dave -
With all other browsers, when I compose an email, once I start to put the recipient's name in the To box, it will autofill the name if it is in my Contacts. This has been the case with firefox until the last 24 hours. Now, firefox does not automatically recognize any of my contacts. This problem is not happening on IE, Chrome, or Opera. I access my email through my AT&T/Yahoo account on the web, not through a mail program.
please try to uninstall the adobe flash plugin from the windows control panel. afterwards manually delete any leftover files in ''C:\Windows\SysWOW64\Macromed\Flash'' and download & install the plugin again (uncheck the option to install the bundled security software): www.adobe.com/go/getflashplayer
-
How can I update my Mail program in 10.6.8 to iCloud Mail?
I am running 10.6.8 on my iMac, which is my work "workhorse." I can't update it to Lion because I can't afford to update Quark/Photoshop et al that I'd need. And it works fine.
I also have a Macbook Air running the latest Lion, as well as an iPod 5 running IOS7. Both access my iCloud mail address and folders/filtering set up on iCloud.
However, the Mail program on my iMac is still showing my MobileMe mailbox (and MobileMe is in my system preferences). I had an elaborate filtering-to-folders set up in Mail for my MobileMe account (not in the online MobileMe). I've disabled all the filtering in my Mail program, but iCloud still sends some mail to the older folders I had set up in the program, overriding the new folder-filtering I have set up on iCloud.
So, sometimes I'll get an email sent to my .me email address from a client which I cannot see on my Macbook Air (or iPod) because it's sent to a folder on my iMac. I'm semi-retired so don't do much work anymore so I'd rather not "fire up" the iMac unless I've work to do. But as it is with the Mail situation, I have to leave it on all the time or I can miss client email.
My question is, can I get delete my "mobileme" account in my iMac Mail program and then add my iCloud account to it? I assume the MobileMe in the iMac's system preferences is there for good, because I can't update to Lion. Will that fix my problem, or is that even do-able?
I'm not sure I've stated this clearly. I'm trying to get total coordination between my iMac, MB Air, and iPod mail accounts in the Mail programs of each device without having to resort to using iCloud mail online on my iMac. Perhaps that's unavoidable?
Any help appreciated. If clarification needed, I'll try to explain this better... Thanks all!
Nicol KYou can perfectly well access email in 10.6.8 - I'm doing it myself - and if you are receiving @me.com mail you are already doing so. the @icloud.com version of the address is exactly the same thing, and messages to it will arrive in the inbox alongside those to @me.com.
However if you have set up Rules to act on incoming @me.com mail it obviously won't act on @icloud.com messages, so you will have to duplicate the Rules if you want to keep them.
If you want to try starting over you can delete the account and set it up again, using the method described here:
Entering iCloud email settings manually in Snow Leopard or Leopard
You can't access other iCloud facilities in Snow Leopard but if all you are interested in is the email you have no need to upgrade to Mountain Lion. -
Mail does not show the viewer window even when new viewer window is cliced. I tried to close mail and reopen, but it will not close, and force quit option does not appear in window bar. I tried to shut down the computer and reboot, but it cannot close because of open mail program it says. Help!
Many thanks. Once I was able to close mail, it reopened and behaved quite normally. Thank you. I'll remember the option quit for force quite!
-
Hi all
I have recently reinstalled OSX 10.4.7 after a HD crash and found that although everything is as it was before....the Mail program crashes upon opening. Every 3rd attempt at opening, it takes me through the POP/SMTP setup, but then crashes when it gets to the end. The next 2-3 times it crashes a few seconds after clicking on the icon.
I am a bit bamboozled to be honest??? In the old days of OS 8 and 9 this sort of think often pointed to memory problems...but whole system is running perfectly otherwise (and has 1GB of RAM installed).
Is it possible to reinstall just the Mail application?? I dont wanna have to transfer to a different application (like Outlook etc..) as the Apple Mail is pretty good/easy to use.
Any advice would be appreciated...
Thanks
Steve
PowerMac G5 Mac OS X (10.4.7)
PowerMac G5 Mac OS X (10.4.7)CX9, your problem isn't really the same, so it should be no surprise that what you've tried so far didn't work.
Verify/repair your disk first (not just permissions), as described here:
The Repair functions of Disk Utility: what's it all about?
After having fixed all filesystem issues, if any, reinstall the Mail application as described here:
Custom installs in Mac OS X 10.4
If the version of the system software on your installation disks is earlier than what you're using now (and only in that case), then you must also reinstall the corresponding Combo Update afterwards, to bring the Mail application back in sync with the rest of the system:
Mac OS X 10.4.7 Combo Update for PPC
Mac OS X 10.4.7 Combo Update for Intel
You may also want to read the following articles for guidelines on how to properly install system updates:
Troubleshooting installation and software updates
Installing software updates
Basically, you should verify/repair the startup disk before installing the update, and no applications should be running while installing it.
If you continue experiencing problems after doing all the above, please start a new topic describing them, unless you really believe your problem is the same as the one being discussed in this thread.
Maybe you are looking for
-
When I try to sync my apps from my computer on to my iphone 4 Itunes says the computer is not authorized. I then authorize it and it tells me it is already authorized. I again try to sync the apps and it will once again tell me it is not authorized.
-
Printer driver for HP LaserJet 1020
What can I use for driver software to be able to print from my MacBook Pro to the HP LaserJet 1020?
-
Copyopening.dtsx (BPC 7.5)
Hi, I am trying to find this file to get the SPCOPYOPENING to work but I cannot find it anywhere, not even in APPSHELL. I thought it was supposed to be a standard file? If not, how can I get the copying of opening balances to work? Thanks, Arnold
-
What is taking Photos space on iPad ???
iTunes shows that 2.9 GB of space is being used for photos on my iPad (see image). However, I do not sync any photos to my iPad, and there are no photos in Camera Roll. Does anyone know what is consuming this space and how to free it up?
-
Accessing the current User code
In order to find out who the current user is, we used to (in SQL 2000) use $[user]. However, this does not appear to work when the database is SQL 2005. Does anyone know of a solution to this? (Our current objective is to create a log file showing