Mail program in java
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 urgent
try the java mail api i think it can do what you ask look for it at sun's java site
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 -
Hi,
Can anybody suggest me the java code which sends mails using java mail api?
Thanks & Regards,
KarimullaHi
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 -
Java Mail Program - Please Help!
Hi everyone, I am new to Java (been learnig for about 6 months) and I was hoping you could help me.
I would like to write a program to be able to send and receive email (a basic version of outlook express), the prblem is that i have no idea on how to start such a program as i have only written programs such as calculators before.
I was hoping someone could tell me how to begin such a challenging program, which java package is best to create such a program, Jbuilder or the normal javac compiler.
Thanks everyone for your helpSee the Java mail API for more details (javax.mail if I remember well). This can be found at:
http://java.sun.com/products/javamail/index.html
Hope it helps,
Stephane -
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 -
How to get Formatted Mail Content through Java Application
I am using a mail sending function in my applet code which is listed below:
Main content is fetched from a format tool bar in JSP Page and it is passed as parameter to applet and it is used inside the mail content.
Same content when passed and executed in a JSP page, the formatted content is not lost and it is included in mail content as what it is fetched from Format Tool Bar.
Format is lost when it is used inside the Java Application mail sending function.
The below code I have used to send mail:
package com;
import java.util.HashSet;
import java.util.Properties;
import java.util.Set;
import javax.mail.BodyPart;
import javax.mail.Message;
import javax.mail.Multipart;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
class mailsendClass
public void sendmail(String from,String host,boolean debug,String msgText)
try
Set tomailsid = new HashSet();
Set ccmailsid = new HashSet();
//to mail ids
tomailsid.add("[email protected]" );
tomailsid.add("[email protected]" );
tomailsid.add("[email protected]" );
//cc mail ids
ccmailsid.add("[email protected]" );
ccmailsid.add("[email protected]" );
String mailarray[]= (String[])tomailsid.toArray(new String[tomailsid.size()]);
String ccmailID[]= (String[])ccmailsid.toArray(new String[ccmailsid.size()]);
Properties props = new Properties();
//props.put("mail.smtp.port","425");
props.setProperty("mail.smtp.host", host);
if (debug) props.setProperty("mail.debug", ""+debug);
Session session = Session.getInstance(props, null);
session.setDebug(debug);
String mailsubject = "Mail Subject";
// create a message
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
javax.mail.internet.InternetAddress[] toAddress=new javax.mail.internet.InternetAddress[mailarray.length];
for (int i=0;i<mailarray.length ;i++ )
toAddress=new javax.mail.internet.InternetAddress(mailarray[i]);
System.out.println ("id inside to address loop " + i + " is "+ mailarray[i]);
System.out.println ("toAddress " + i + " is "+ toAddress[i]);
msg.setRecipients(Message.RecipientType.TO, toAddress);
msg.setSubject(mailsubject);
try
javax.mail.internet.InternetAddress[] CCAddress=new javax.mail.internet.InternetAddress[ccmailID.length];
for (int i=0;i<ccmailID.length ;i++ )
CCAddress[i]=new javax.mail.internet.InternetAddress(ccmailID[i]);
System.out.println("CC Array is ===> " +CCAddress[i] );//
msg.setRecipients(Message.RecipientType.CC,CCAddress);
catch(Exception ss)
System.out.println("CC mail Exception is ====>"+ ss);
msg.setSentDate(new java.util.Date());
// Multipart multipart = new MimeMultipart("relative");
Multipart multipart = new MimeMultipart("alternative");
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setContent(msgText, "text/html");
// messageBodyPart.setContent(msgText, "text/plain");
multipart.addBodyPart(messageBodyPart);
msg.setContent(multipart);
Transport.send( msg );
catch (Exception e)
System.out.println("The Exception is ------>"+e);
public class SendMail {
public static void main(String[] args)
System.out.println("before Mail Send ");
mailsendClass mail = new mailsendClass();
String from="[email protected]";
String host="172.16.2.6";
String msgText="<p><strong>Index</strong><br />I have posted the following PDFs (Second Pages) as mentioned to start producing the Index:<br /> Engage<br /> Chapters 16<br /><a title='ftp:///Index' href='ftp://index/'>ftp:///Index</a><strong><br />XML Coding - Files with errors</strong><br /> Engage<br /> Chapters 16<br /><a title='ftp:///XML_Coding_Need%20Fixing' href='ftp://xml_coding_need%20fixing/'>ftp:///XML_Coding_Need%20Fixing</a></p>";
mail.sendmail(from,host,true,msgText);
System.out.println("after Mail Send ");
Content placed in format tool bar is as follows:
Index
I have posted the following PDFs (Second Pages) as mentioned to start producing the Index:
Engage
Chapters 16
ftp:///Index
XML Coding - Files with errors
Engage
Chapters 16
ftp:///XML_Coding_Need%20Fixing
Content fetched from format tool bar inside JSP page is as follows:
<p><strong>Index</strong>
I have posted the following PDFs (Second Pages) as mentioned to start producing the Index:
• Engage
• Chapters 1–6
<a title="ftp:///Index" href="ftp://index/">ftp:///Index</a><strong>
XML Coding - Files with errors</strong>
• Engage
• Chapters 1–6
<a title="ftp:///XML_Coding_Need%20Fixing" href="ftp://xml_coding_need%20fixing/">ftp:///XML_Coding_Need%20Fixing</a></p>
Fetched Content inside Java Application through parameter and it will use as input for mail content is as follows:
<p><strong>Index</strong>
I have posted the following PDFs (Second Pages) as mentioned to start producing the Index:
Engage
Chapters 16
<a title="ftp:///Index" href="ftp://index/">ftp:///Index</a><strong>
XML Coding - Files with errors</strong>
Engage
Chapters 16
<a title="ftp:///XML_Coding_Need%20Fixing" href="ftp://xml_coding_need%20fixing/">ftp:///XML_Coding_Need%20Fixing</a></p>
Actual mail received after Java Application execution is as follows:
Index
I have posted the following PDFs (Second Pages) as mentioned to start producing the Index:
? Engage
? Chapters 1?6
ftp:///Index
XML Coding - Files with errors
? Engage
? Chapters 1?6
ftp:///XML_Coding_Need%20Fixing
Unicode characters in the mail content are replaced by ?.
In the function listed above I have used the MIME Setting as
Multipart multipart = new MimeMultipart("alternative");
I have tried by using relative MIME format also as
Multipart multipart = new MimeMultipart("relative");
But I am not getting the actual format passed as input to the Java Application in the mail content.
Can anybody let us know how to overcome this problem?
Thanks in advance.You need to really understand how the different multiparts work instead of just guessing.
But for your application, you don't need a multipart at all. Just use msg.setText(msgText, null, "html");
Although that doesn't explain your problem, it will simplify your program.
How are you determining that the mail received doesn't have the formatting? Are you viewing it in a
mail reader (e.g., Outlook)? Or are you fetching it with JavaMail?
Are you using an Exchange server? Exchange will often reformat your message to what it thinks you meant. -
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?. -
�� I have a java applet program (yanhua.java) need help!!!
�� I have a java applet program (yanhua.java) that use mouse click a area show a fireworks, the applet program that a java fan mail me. Now i find some bug in the program, can you help me? thank in advance!
The backdrop of the question: The yanhua.java applet program works well. But one day, i install j2re 1.4.1 plugin for my microsfot Internet Explorer, i run the yanhua.java applet program again, it show difficult(i move my mouse in the area, slowness), the fireworks is not fluent. Then i try my best to find the cause , i get some information, the following: yanhua.java run in j2re 1.4.1 plugin,it will deplete 100% cpu; else yanhua.java does not run in j2re 1.4.1 plugin, it will deplete 90%--95% cpu too; but my computer c3 1G cpu and 256MB memory, without running other program at that time. So i can have the assurance to say that the yanhua.java have some bug or error. can you help me to find all bug in yanhua.java? thank you very much!!!
i want to solve the question: finding all bug in yanhua.java
NOTE:
1��fireworks show specially good effect(a yanhua.java applet) you can look at:
http://www.3ren.net/down/java/yanhua.html
2��all program you can get from http://www.3ren.net/down/java/yanhua.rar
/*************************yanhua.java******************************
import java.applet.Applet;
import java.applet.AudioClip;
import java.awt.*;
import java.awt.image.MemoryImageSource;
import java.util.Random;
public class yanhua extends Applet
implements Runnable
private int m_nAppX;
private int m_nAppY;
private int m_centerX;
private int m_centerY;
private int m_mouseX;
private int m_mouseY;
private int m_sleepTime;
private boolean isError;
private boolean m_isPaintFinished;
boolean isRunning;
boolean isInitialized;
Thread runner;
int pix0[];
MemoryImageSource offImage;
Image dbImg;
int pixls;
int pixls2;
Random rand;
int bits;
double bit_px[];
double bit_py[];
double bit_vx[];
double bit_vy[];
int bit_sx[];
int bit_sy[];
int bit_l[];
int bit_f[];
int bit_p[];
int bit_c[];
int bit_max;
int bit_sound;
int ru;
int rv;
AudioClip sound1;
AudioClip sound2;
public yanhua()
m_mouseX = 0;
m_mouseY = 0;
m_sleepTime = 5;
isError = false;
isInitialized = false;
rand = new Random();
bits = 10000;
bit_px = new double[bits];
bit_py = new double[bits];
bit_vx = new double[bits];
bit_vy = new double[bits];
bit_sx = new int[bits];
bit_sy = new int[bits];
bit_l = new int[bits];
bit_f = new int[bits];
bit_p = new int[bits];
bit_c = new int[bits];
ru = 50;
rv = 50;
public void init()
String s = getParameter("para_bits");
if(s != null)
bits = Integer.parseInt(s);
s = getParameter("para_max");
if(s != null)
bit_max = Integer.parseInt(s);
s = getParameter("para_blendx");
if(s != null)
ru = Integer.parseInt(s);
s = getParameter("para_blendy");
if(s != null)
rv = Integer.parseInt(s);
s = getParameter("para_sound");
if(s != null)
bit_sound = Integer.parseInt(s);
m_nAppX = this.getSize().width;
m_nAppY = this.getSize().height;
m_centerX = m_nAppX / 2;
m_centerY = m_nAppY / 2;
m_mouseX = m_centerX;
m_mouseY = m_centerY;
resize(m_nAppX, m_nAppY);
pixls = m_nAppX * m_nAppY;
pixls2 = pixls - m_nAppX * 2;
pix0 = new int[pixls];
offImage = new MemoryImageSource(m_nAppX, m_nAppY, pix0, 0, m_nAppX);
offImage.setAnimated(true);
dbImg = createImage(offImage);
for(int i = 0; i < pixls; i++)
pix0[i] = 0xff000000;
sound1 = getAudioClip(getDocumentBase(), "firework.au");
sound2 = getAudioClip(getDocumentBase(), "syu.au");
for(int j = 0; j < bits; j++)
bit_f[j] = 0;
isInitialized = true;
start();
public void run()
while(!isInitialized)
try
Thread.sleep(200L);
catch(InterruptedException interruptedexception) { }
do
for(int j = 0; j < pixls2; j++)
int k = pix0[j];
int l = pix0[j + 1];
int i1 = pix0[j + m_nAppX];
int j1 = pix0[j + m_nAppX + 1];
int i = (k & 0xff0000) >> 16;
int k1 = ((((l & 0xff0000) >> 16) - i) * ru >> 8) + i;
i = (k & 0xff00) >> 8;
int l1 = ((((l & 0xff00) >> 8) - i) * ru >> 8) + i;
i = k & 0xff;
int i2 = (((l & 0xff) - i) * ru >> 8) + i;
i = (i1 & 0xff0000) >> 16;
int j2 = ((((j1 & 0xff0000) >> 16) - i) * ru >> 8) + i;
i = (i1 & 0xff00) >> 8;
int k2 = ((((j1 & 0xff00) >> 8) - i) * ru >> 8) + i;
i = i1 & 0xff;
int l2 = (((j1 & 0xff) - i) * ru >> 8) + i;
int i3 = ((j2 - k1) * rv >> 8) + k1;
int j3 = ((k2 - l1) * rv >> 8) + l1;
int k3 = ((l2 - i2) * rv >> 8) + i2;
pix0[j] = i3 << 16 | j3 << 8 | k3 | 0xff000000;
rend();
offImage.newPixels(0, 0, m_nAppX, m_nAppY);
try
Thread.sleep(m_sleepTime);
catch(InterruptedException interruptedexception1) { }
} while(true);
public void update(Graphics g)
paint(g);
public void paint(Graphics g)
g.drawImage(dbImg, 0, 0, this);
public void start()
if(isError)
return;
isRunning = true;
if(runner == null)
runner = new Thread(this);
runner.start();
public void stop()
if(runner != null)
runner.stop();
runner = null;
public boolean mouseMove(Event event, int i, int j)
m_mouseX = i;
m_mouseY = j;
return true;
public boolean mouseDown(Event event, int i, int j)
m_mouseX = i;
m_mouseY = j;
int k = (int)(rand.nextDouble() * 256D);
int l = (int)(rand.nextDouble() * 256D);
int i1 = (int)(rand.nextDouble() * 256D);
int j1 = k << 16 | l << 8 | i1 | 0xff000000;
int k1 = 0;
for(int l1 = 0; l1 < bits; l1++)
if(bit_f[l1] != 0)
continue;
bit_px[l1] = m_mouseX;
bit_py[l1] = m_mouseY;
double d = rand.nextDouble() * 6.2800000000000002D;
double d1 = rand.nextDouble();
bit_vx[l1] = Math.sin(d) * d1;
bit_vy[l1] = Math.cos(d) * d1;
bit_l[l1] = (int)(rand.nextDouble() * 100D) + 100;
bit_p[l1] = (int)(rand.nextDouble() * 3D);
bit_c[l1] = j1;
bit_sx[l1] = m_mouseX;
bit_sy[l1] = m_nAppY - 5;
bit_f[l1] = 2;
if(++k1 == bit_max)
break;
if(bit_sound > 1)
sound2.play();
return true;
public boolean mouseExit(Event event, int i, int j)
m_mouseX = i;
m_mouseY = j;
return true;
void rend()
boolean flag = false;
boolean flag1 = false;
boolean flag2 = false;
for(int k = 0; k < bits; k++)
switch(bit_f[k])
default:
break;
case 1: // '\001'
bit_vy[k] += rand.nextDouble() / 50D;
bit_px[k] += bit_vx[k];
bit_py[k] += bit_vy[k];
bit_l[k]--;
if(bit_l[k] == 0 || bit_px[k] < 0.0D || bit_py[k] < 0.0D || bit_px[k] > (double)m_nAppX || bit_py[k] > (double)(m_nAppY - 3))
bit_c[k] = 0xff000000;
bit_f[k] = 0;
} else
if(bit_p[k] == 0)
if((int)(rand.nextDouble() * 2D) == 0)
bit_set((int)bit_px[k], (int)bit_py[k], -1);
} else
bit_set((int)bit_px[k], (int)bit_py[k], bit_c[k]);
break;
case 2: // '\002'
bit_sy[k] -= 5;
if((double)bit_sy[k] <= bit_py[k])
bit_f[k] = 1;
flag2 = true;
if((int)(rand.nextDouble() * 20D) == 0)
int i = (int)(rand.nextDouble() * 2D);
int j = (int)(rand.nextDouble() * 5D);
bit_set(bit_sx[k] + i, bit_sy[k] + j, -1);
break;
if(flag2 && bit_sound > 0)
sound1.play();
void bit_set(int i, int j, int k)
int l = i + j * m_nAppX;
pix0[l] = k;
/*********************************end*******************************no one help me???????????
-
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. -
How to invoke Outlook Express to send mail in a JAVA GUI
hi..
i want to send a mail thru a java GUI...but when i press submit button..it has to invoke MS Outlook express and send the mail via this.
pls reply soon..
bi..Hi,
When I execute the command like "Runtime.getRuntime().exec("cmd /c start mailto:[email protected]?subject=Test&body=Hello");" in my java program,There is no boby in my outlook window .could you give me some suggestion? Thank you very much!
source:
import java.io.IOException;
public class TestAutoSendEMail {
public static void main(String[] args) {
try {
Runtime.getRuntime().exec("cmd /c start mailto:[email protected]?subject=Test&body=Hello");
catch (IOException ex) {
System.out.println(ex.getMessage());
} -
Extract Mail Attachment using Java Mail
Hello Friends
A day ago I entered into Java Mail , now I am able to send mail from my Java Program.
The help I need from you is I wanna save the attachment coming in the mail using Java.
For eg : a mail reched my Inbox contains .xls or .csv file which I wanna save to some place.
Plss guide me to acheive this friends.
Regards
VickyString host = "";
String username = "";
String password = "";
String srcDir = "INBOX";
String tarDir = "";
String subject = "";
String filepath = "C:/Documents and Settings/name/Desktop";
String filename = "demo";
Properties props = System.getProperties();
props.put("mail.host", host);
Session session = Session.getDefaultInstance(props, null);
Store store = session.getStore("imap");
store.connect(host, username, password);
Folder folder = store.getFolder(srcDir);
Folder dFolder = store.getFolder(tarDir);
folder.open(Folder.READ_WRITE);
Message message[] = folder.getMessages();
java.util.Date yesterdayDate = new Date(System.currentTimeMillis() - 24*60*60*1000);
for (int p = 0; p < message.length; p++) {
java.util.Date messageReceivedDate = message[p].getReceivedDate();
if(messageReceivedDate.after(yesterdayDate))
if (message[p].getSubject().equals(subject)) {
Multipart mp = (Multipart)(message[p].getContent());
for (int i = 0, n = mp.getCount(); i < n; i++) {
Part part = mp.getBodyPart(i);
String disposition = part.getDisposition();
if ((disposition != null) && (disposition.equals("ATTACHMENT") || disposition.equals("INLINE")))) {
String fullpath = filepath+"/" + filename+".csv";
File file = new File(fullpath);
InputStream in = part.getInputStream();
FileOutputStream fos = new FileOutputStream(file);
byte[] buf = new byte[part.getSize()];
int c = 0;
while ((c = in.read(buf)) != -1) {
fos.write(buf, 0, c);
in.close();
fos.close();
} // if (disposition) closing
}// inner for loop closing
/* ----------------------------------------------------Move Message to new folder--------------------------------------------------------------------- */
if (message.length != 0) {
folder.copyMessages(message, dFolder);
folder.setFlags(message, new Flags(Flags.Flag.DELETED), true);
// Dump out the Flags of the moved messages, to insure that
// all got deleted
for (int i = 0; i < message.length; i++)
if (!message.isSet(Flags.Flag.DELETED))
System.out.println("Message # " + message[i] + " not deleted");
} //for
}// if (message.length != 0)
// System.out.println("*** Message moved to "+tarDir+" Directory ***");
}//if loop closing - checking message subject
}// if loop closing checking date
}// outer for() loop closing -
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
Maybe you are looking for
-
Indesign CS5 Crashes with Incopy Workflow
I work for a large publishing company that publishes thousands of titles per year. Several divisions use Indesign, but only our Publishing Division uses the Indesign/Incopy workflow, and they are the only division experiencing widespread crashing in
-
My owner's manual is splayed before me: I have these options with my Canon HF20 Camcorder: I can record video in: 60i (standard) - I guess they mean "default" I can also record in PF30 and PF24. It says this: PF30: 30 frames per second, progressive.
-
I can't register my iphone 4s in AppleID
Hi. I can't regigister my iPhone 4S in my Apple ID. I write serial namber and see message - This iPhone alerdy register in ahother account.
-
Function module to get the cost estimate
Hi all while running the standard costing run the cost estimate is stored in the table keko and keph.can anyone tell me whether is there any function module to get that cost estimate of a material which is in released status
-
Apach AXIS Web Service Queries
Hi All, we are thinking to use Apache AXIS Web Service. We have few compatibility queries for Axis Web Service Does it support complex types (i.e. Array of Java Objects if my web service returns)? If yes do you have any documentation? How do we conve