How to send mail using James
Hi All
I am trying to set up James for an organization. I am able to send and recieve mails for only one particular domain(the organization domain) but I am not able to send or recieve mails from any other domain such as yahoo.com or gmail.com. Could anyone help me out.. Please. This is too urgent. Please help me out
thanks
srkp
Hi,
I think for that u need to take permission from ISP ( Internet service Provider).
Just check it.
Similar Messages
-
How can send mails using hotmail/rediffmail domain name?
I have used the below code to send a mail using javamail API?Even when I am sending my application does not have notified any of error/exceptions,But the message is not reached to I have given receipient's address in the to field.
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class Sendmail1 extends HttpServlet {
private String smtpHost;
// Initialize the servlet with the hostname of the SMTP server
// we'll be using the send the messages
public void init(ServletConfig config)
throws ServletException {
super.init(config);
smtpHost = config.getInitParameter("smtpHost");
//smtpHost = "sbm5501";
smtpHost = "www.rediffmail.com";
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws ServletException, java.io.IOException {
String from = request.getParameter("from");
String to "[email protected]";
String cc = "[email protected]";
String bcc ="[email protected]";
String smtp ="www.rediffmail.com";
String subject = "hai";
String text = "Hai how r u";
PrintWriter writer = response.getWriter();
if (subject == null)
subject = "Null";
if (text == null)
text = "No message";
String status;
try {
// Create the JavaMail session
java.util.Properties properties = System.getProperties();
if (smtp == null)
smtp = "www.rediffmail.com";
properties.put("mail.smtp.host", smtp);
Session session = Session.getInstance(properties, null);
//to connect
//Transport transport =session.getTransport("smtp");
//transport.connect(smtpHost,user,password);
// Construct the message
MimeMessage message = new MimeMessage(session);
// Set the from address
Address fromAddress = new InternetAddress(from);
message.setFrom(fromAddress);
// Parse and set the recipient addresses
Address[] toAddresses = InternetAddress.parse(to);
message.setRecipients(Message.RecipientType.TO,toAddresses);
Address[] ccAddresses = InternetAddress.parse(cc);
message.setRecipients(Message.RecipientType.CC,ccAddresses);
Address[] bccAddresses = InternetAddress.parse(to);
message.setRecipients(Message.RecipientType.BCC,bccAddresses);
// Set the subject and text
message.setSubject(subject);
message.setText(text);
Transport.send(message);
//status = "<h1>Congratulations,</h1><h2>Your message was sent.</h2>";
} catch (AddressException e)
status = "There was an error parsing the addresses. " + e;
} catch (SendFailedException e)
status = "<h1>Sorry,</h1><h2>There was an error sending the message.</h2>" + e;
} catch (MessagingException e)
status = "There was an unexpected error. " + e;
// Output a status message
response.setContentType("text/html");
writer.println("<title>sendForm</title><body bgcolor= ><b><h3><font color=green><CENTER>CALIBERINFO.COM</CENTER></h3>Your message was sent to recepient(s).<br><font color=red>"+"\n"+to);
writer.println("<br><br><a href=e:/mail/javamail/mail.html>back to compose</a>");
writer.close();
Please any one help me out from this probs.
Awaiting for yours reply,
or give me a reply to: [email protected]
Regards,
@maheshkumar.kHi,
how can send mails using hotmail/rediffmail domain name?In your java application,you specified www.rediffmail.com as your
smtp server.But that is the address of that website.Try will a smtp
server instead.For a list of free smtp servers,please visit http://www.thebestfree.net/free/freesmtp.htm
Hope this helps.
Good Luck.
Gayam.Srinivasa Reddy
Developer Technical Support
Sun Microsystems
http://www.sun.com/developers/support/ -
How to send mail using jsp program
am very new to jsp and doing my final year project. i need to send mails using my jsp program.can anyone say wht to do that is wht to include to send mails using jsp program. n also a sample code to send mail using jsp program.
Thanx in advanceUse below script.
<%@ page import="java.util.*, javax.mail.*, javax.mail.internet.*" %>
<%
Properties props = new Properties();
props.put("mail.smtp.host", "mailserver.com");
Session s = Session.getInstance(props,null);
InternetAddress from = new InternetAddress("[email protected]");
InternetAddress to = new InternetAddress([email protected]");
MimeMessage message = new MimeMessage(s);
message.setFrom(from);
message.addRecipient(Message.RecipientType.TO, to);
message.setSubject("Your subject");
message.setText("Your text");
Transport.send(message);
%>{code} -
Dear friends,
please send me code how to send bulk mails from bsp,
sincerely yoursHi Ganesh,
Look at the following two blogs by Thomas...This will surely help you..!
<a href="/people/thomas.jung3/blog/2004/09/07/sending-e-mail-from-abap--version-46d-and-lower--api-interface E-Mail from ABAP - Version 46D and Lower - API Interface</a>
and
<a href="/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface E-Mail from ABAP - Version 610 and Higher - BCS Interface</a>
This will surely help you.
<b><i>Do reward each useful answer..!</i></b>
Thanks,
Tatvagna. -
How to send mail using HTML format using tags
Hello experts,
I am currently using FM SO_NEW_DOCUMENT_SEND_API1 to send e-mails to our users' Outlook accounts. Now, I converted its document type from 'RAW' to 'HTM'. I enclosed my texts in HTML tags. But the problem is, I cannot see a thing when I check my message in SCOT. It just opens internet explorer and thats it. Anyway, Below is my code:
get e-mail addresses of controllers in table ZSHIPTO_EMAIL
SELECT * FROM zshipto_email
INTO TABLE it_zshipto_email
WHERE zevent = '2'.
IF sy-dbcnt > 0.
IF NOT it_del_entries[] IS INITIAL.
CLEAR lv_contents.
maildata-obj_name = 'Record Deleted in table ZTS0001'.
maildata-obj_descr = 'Record Deleted in table ZTS0001'.
maildata-obj_langu = sy-langu.
records deleted in ZTS0001 and ZTS_STPGEOLOC
CLEAR: lv_flag, lv_counter.
LOOP AT it_zshipto_email.
CLEAR: it_del_entries, mailtxt.
LOOP AT it_del_entries ASSIGNING <fs_del_entries>.
get name of dealer
SELECT SINGLE name1 FROM kna1
INTO <fs_del_entries>-name1
WHERE kunnr = <fs_del_entries>-kunnr.
IF lv_counter IS INITIAL.
CONCATENATE: '<p>'
'FYI: The ff record/s were deleted in tables'
'ZTS0001 and ZTS_STPGEOLOC by user' sy-uname
'</p>'
INTO lv_contents
SEPARATED BY space.
mailtxt-line = lv_contents.
APPEND mailtxt.
CLEAR: mailtxt, lv_contents.
ENDIF.
APPEND mailtxt.
CONCATENATE: '<p>'
'Dealer :' <fs_del_entries>-kunnr '-'
<fs_del_entries>-name1 '</p>'
INTO lv_contents
SEPARATED BY space.
mailtxt-line = lv_contents.
APPEND mailtxt.
CLEAR: mailtxt, lv_contents.
CONCATENATE: '<p>'
'Ship-To:' <fs_del_entries>-cdseq '</p>'
INTO lv_contents
SEPARATED BY space.
mailtxt-line = lv_contents.
APPEND mailtxt.
CLEAR: mailtxt, lv_contents.
CONCATENATE: '<p>'
'Address:' <fs_del_entries>-zaddress '</p>'
INTO lv_contents
SEPARATED BY space.
mailtxt-line = lv_contents.
APPEND mailtxt.
CLEAR: mailtxt, lv_contents.
CONCATENATE: '<p>'
'Contact person:' <fs_del_entries>-zcperson
'</p>'
INTO lv_contents
SEPARATED BY space.
mailtxt-line = lv_contents.
APPEND mailtxt.
CLEAR: mailtxt, lv_contents.
CONCATENATE: '<p>'
'Contact number:' <fs_del_entries>-zcnumber
'</p>'
INTO lv_contents
SEPARATED BY space.
mailtxt-line = lv_contents.
APPEND mailtxt.
CLEAR: mailtxt, lv_contents.
lv_counter = 1.
ENDLOOP.
APPEND mailtxt.
mailrec-receiver = it_zshipto_email-zemail.
mailrec-rec_type = 'U'.
APPEND mailrec.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = maildata
document_type = 'HTM'
put_in_outbox = 'X'
commit_work = 'X'
TABLES
object_header = mailtxt
object_content = mailtxt
receivers = mailrec
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CLEAR: mailtxt, mailrec, lv_counter.
REFRESH: mailtxt, mailrec.
ENDLOOP.
ENDIF.
Message was edited by: viraylabHi,
Check this...
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5931ff64-0a01-0010-2bb7-ff2f9a6165a0
Regards
vijay -
How to send mail using transaction SBWP in HTML format?
Dear All,
When a mail is sent through SBWP transaction in HTML format,
it is finally displayed in text format with html tags, instead of being displayed in html format.
how to retain its HTML format?
Please suggest some solution.
Thanks in advance.Presuming you've already paired the bluetooth, just tap in the text box and you should see a cursor where you can start typing.
Beyond that, what are you seeing or not seeing? how is it acting? -
How to send mail using Java Server Pages(JSP)
Plz reply me the code for it
and send me mailmegha_bhagat82: You've posted 3 ill-defined questions in the wrong forum in 4 minutes on the day you registered: I suggest you take a very close look at http://www.catb.org/~esr/faqs/smart-questions.html ... I usually avoid posting that URL to often, as it can be considered rude, but I think in your case it's appropriate.
-
Sending mail using smtps protocol
Could anyone post a piece of code to show how to send a message using smtps protocol?
SSLNotes of 1.3.2ea version say that it's possibile, but i tried whithout success....
ThanksHello,
I can send the mail using SMTP with the help of java mail api. But i want to send mail using SMTPS protocol using java. The mail should be encrypted format.
So, my queries are:
1. How to send mail using SMTPS protocol?
2. I want to send the mail as encryption mail. So how to create encrypted mail.?
Thanks in advance.
From
Rajendra. -
How to send mail in APEX 4.1 using PLSQL
Hi All,
How to send mail in APEX 4.1 using PLSQL?
Thanks In advance.
Regards
Shailhttp://lmgtfy.com/?q=oracle+apex+4.1+send+mail
-
How to setup and send mails using utl_mail on Oracle E-Biz R12
Dear All
There is a new requirement from client to setup and send mails using utl_mail utility on Oracle EBS R12.1.1
What is utl_mail utility ? what is the difference between Workflow Notification Mailer and this utility/tool?
What are etiquette's to pursue mail functionality in apps / db?
- ChetanWhat is utl_mail utility
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_mail.htm
How to Use the UTL_MAIL Package [ID 269375.1]
FAQ and Known Issues While Using UTL_SMTP and UTL_MAIL [ID 730746.1]
Master Note For PL/SQL UTL_SMTP and UTL_MAIL Packages [ID 1137673.1]
Workflow Notification Mailer:
you can send email using workflow notification email procedures,These ar built into the system and only need some minor configuration. check Workflow Administrator's Guide, Chapter 2, Section: Setting Up Notification Mailers for more detail. -
my i pad was purchased by my husband using his credit card but now when i send mails using icloud account to shows like is coming from him. how can i change his name to mine
MacBook Airs won't run Classic, nor will Classic connect to iCloud accounts. You will need your Mac OS X version to answer the question involved. Go to Apple menu -> About This Mac, and post in the appropriate forum in the link below:
https://discussions.apple.com/docs/DOC-2463 -
How to send mail to distribution list ?
Hi Everybody,
Pls let me know how to send mail to distributed list???
Thanks & Regards,
raju<b></b>Hi ,
Use Function Module 'SO_NEW_DOCUMENT_SEND_API1'.
U need to pass Distribution list to Receiver and 'C' to receiver type refer the below code for clarification.
Determine the Distribution List.
gv_rec_list-receiver = gv_distribution.
gv_rec_list-rec_type = 'C'.
APPEND gv_rec_list.
Check if Distribution List is deleted.
SELECT SINGLE objnam
FROM soid
INTO lc_objnam
WHERE objnam = gv_rec_list AND
dlitp = lc_dli.
IF sy-subrc = 0.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = gv_doc_data
document_type = 'RAW'
put_in_outbox = 'X'
TABLES
object_content = gv_obj_cont
receivers = gv_rec_list
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4.
CASE sy-subrc.
WHEN '1'.
message i001(as) with 'TOO MANY RECEIVERS'.
EXIT.
WHEN '2'.
message i001(as) with 'DOCUMENT NOT SENT'.
EXIT.
WHEN '3'.
message i001(as) with 'DOCUMENT TYPE DOES NOT EXIST'.
EXIT.
WHEN '4'.
message i001(as) with 'OPERATION NO AUTHORIZATION'.
EXIT.
ENDCASE.
Hope this might have helped you.
Thanks,
Prashanth -
How to send attachments using java application and outlook
Hi ,
I created an application in java which is as
on the Conference Tab i can schedule a conference and with the send command on page it map all the scheduled data to outlook(with all conference details) and using outlook send option the mails are send to appropriate user.
but now i want to modify this application such as when i use the send command from my jsp page it should attach the file that is in .vcs or .ics format for auto updation of user calender.
can any one know how to send attachment using java application .Last time I checked, SMS was a service between carriers and doing SMS yourself was really tricky. Some services existed to let you do it but as I recall they wanted non-trivial money.
However, most phone carriers provide an email-to-SMS bridge of some kind.
So the easiest thing is just to send an email.
That's sending from a non-phone to a phone. There's a J2ME library to send/receive SMS from/to a phone.
However, this is from memory, and a little out of date, so I could be entirely wrong. Hope it helps anyway. -
Newbie question: how to send mails on a Solaris 10 machine?
Good morning all,
I am responsible of a lab, containing some Solaris machines.
On one of those machines, a collegue would like to send mails, using following command:
echo "something" | mailx -v -s "subject" <collegue>@<domain>.comThe mentioned e-mail address is configured on an MS Exchange server.
On first sight this server is not accessible from the lab:
telnet>ping -a <Exchange_Server>.<domain>.com
ping: unknown host <Exchange_Server>.<domain>.comHowever when I try this in a DOS prompt, I get the same result:
DOS prompt>ping -a <Exchange_Server>.<domain>.com
Ping request could not find host <Exchange_Server>.<domain>.com=> How can I determine whether the Exchange server is accessible from the lab?
Even more general: how can I determine whether the machines in the lab are connected to the internet:
telnet>ping www.hotmail.com
no answer from www.hotmail.com(94.245.116.9)
no answer from www.hotmail.com(157.55.0.137)=> if there is no connection to the internet, how can my machine translate URLs into IP addresses?
Can anybody give me a start?
Thanksfirst ask your exchange team to add the Solaris server to exchange relay..then only soalris server can send mails...
once they added..
take the mail server ip/hostname
configure /etc/mail/sendmail.cf
modify DS to
DSmailserver ----if dns server works
else
DS[mailserver] ---lookup through /etc/hosts -
Delivery Receipt After Sending Mail Using JavaMail ?
Hi Friends,
I have written an application using JavaMail which would be used to send mail
using my organisation's SMTP Server.I would like to include the following functionality in it.Just as
Microsoft's Outlook has an option to get Delivery Receipt of the mail and Read Receipt of the mail sent
(Provided the email Client supports it) i would like to have a similar option in my application to.I would like to of how i can do it using JavaMail.I heard that basically we need to set some SMTP properties which the Mail Transfer Agent would recognize and send us the Delivery and Read Receipts.But,i am not sure of what those properties.Can anyone help me regarding this ?You might look into creating a custom header that provides a return reciept to the email address you specify. I'm not 100% sure that all mail servers support this but you might want to look into it as a solution.
-Dave
Maybe you are looking for
-
Hi all, I am working on the Accounts Payable Rapid mart . Can i have a job that first creates all the .dat files on the SAP working directory and another job that executes the .dat file from the application shared directory without having to again ru
-
iphone 3gs- updated to the ios 5.0.1... since then i plugged it into itunes, an now my phone restarts itself every 3-4 minutes!!! it so annoying! its useless, i cant do anything with it. restored it 4 times and its still doing it!!! please help!!! i
-
Help please I changed my passcode and must've clicked different numers than I thought becuase now I've tried the wrong passcode so many times it just says connect to itunes. So i plugged my phone into my computer but it says the iphone is locked and
-
Chart is not showing in Web Query
Hi, I tried to display the query in web. The table was showing fine with all the information. However, when I clicked the graph tab for showing the information in chart, the chart is not showing and I got an error message saying 'Chart "GR2Chart": Da
-
Opening 2 webapps on different browser session
Hi friends I have 2 webapplications deployed in weblogic. When I use CTRL-N and open a new window for the new browser and access the second application the session in my first application is lost. If I login to the first application and then come to