Sending a Email from the webdynpro application
Hi Guys,
I am having one requirement in my application .ie. Email to the specified Id .
As per my reqirement i am having 4 fields in my UI page.
Task Id : T001
Assigned to : ratnakar
Mail id : [email protected]
Task Description : Test Area
Submit : Save(Button)
when i click the Save button the Email has to reach the specified id with the task description.
could any body please help how to proceed .........
Thanks and Regards
Ratnakar reddy
Hi Guys,
Some body sugested me to use the javaMail api .. i donot exactly how to use it in the webdynpro application. some where i got the below code ...
InitialContext ctx = new InitialContext();
Properties props = new Properties();
props.put("mail.smtp.host","Message server");
Session sess = Session.getInstance(props);
Message message = new MimeMessage(sess);
message.setFrom(new InternetAddress(wdContext.currentContextElement().getFrom()));
String recepient = wdContext.currentContextElement().getTo();
message.setRecipient(Message.RecipientType.TO, new InternetAddress(recepient));
String subject = wdContext.currentContextElement().getSubject();
message.setSubject(subject);
String content = wdContext.currentContextElement().getMessage();
message.setContent(content,"text/plain");
// Send the message
Transport.send(message);
if i use the above same code i am not able resolve some errors with the session and internetAddress. becuse there are no supporting Imports to handle them even if used the Organise imports.
i am very new to this mailing concept can any body give me a step by step process ...to send the mail to the specified in the user interface.
Thanks and regards
Ratnakar
Similar Messages
-
Sending encrypted emails from the iPad is not working
I can't get sending encrypted emails working on my iPad3 running iOS 8.0.2
Let me explain what I did:
1. I created S/MIME certificates for 2 email addresses on my iMac in Keychain Access. One email address exists only on the iMac the other only on the iPad.
2. I set "When using this certificate" to "Always Trust" in both certificates.
3. I exported 1 S/MIME certificate (p12) and installed it on the iPad. Then I deleted this certificate and its private&public keys in iMac Keychain Access
4. I exchanged public certificates between the 2 devices. I installed one certificate in iMac Keychain Access and the other in iPad/Settings/General/Profiles.
5. On the iMac in the iPad certificate I set "When using this certificate" to "Always Trust"
6. I tested whether I can send and receive signed and/or encrypted emails
Results:
1. From the iMac I can send signed and/or encrypted emails to the iPad.
On the iPad I can read the encrypted emails. The signature is not trusted
2. On the iPad I can send signed messages to the iMac. On the iMac the signature is trusted.
I cannot send encrypted emails from the iPad to the iMac. The iPad doesn't know about the public certificate in iPad/Settings/General/Profiles
So much for the straight forward part. Now it gets a bit more complicated and confusing.
1. I deleted the iMac certificate in the iPad/Settings/General/Profiles. Then in iPad Mail I opened the signed mail coming from the iMac.
I viewed the untrusted certificate in Mail and installed it. From this point on all signed emails from the iMac are trusted.
Strangely the by this method installed certificate doesn't appear in iPad/Settings/General/Profiles.
Furthermore I still cannot send encrypted messages to the iMac. This certificate installation seems to be used only to check trust worthiness of the signature.
Installing on top the iMac public certificate in iPad/Settings/General/Profiles doesn't enable to send encrypted messages from the iPad either.
To be sure that this problem relates to the iPad certificate management and is not related to an error by me I did the following:
1. I transferred a p12 file for a certificate that I created in my iMac to a PC running Windows7.
2. I transferred a p12 file plus its public key (.pem) that I created in my iMac to another iMac into Keychain Access. (I have not tested if the pem is needed).
3. On the other iMac and the PC I made sure that the certificates are trusted.
On the PC that means in the Certificate Manager the p12 needs to be in the "Personal" folder and in the "Trusted Root Certification Authorities" folder.
The public keys need to be in the "Trusted People" folder and the "Other People" folder. One can just copy/paste the certificates.
4. In both cases I deleted the certificate and public/private keys on my iMac.
5. I exchanged public certificates between the devices.
6. I tested exchanging signed and/or encrypted emails between my iMac and the PC and my iMac and the other iMac.
Result:
1. I can send signed and/or encrypted emails to the other iMac and the PC
2. The PC and the other iMac trust the signature from my iMac and can read the encrypted emails
3. My iMac can read encrypted emails from the PC and the other iMac
4. My iMac trusts emails with signatures from the PC and the other iMac.
Everything is working as it should.
After the above test I wanted to see whether I can set up encrypted email exchange between the iPad and the PC. Strangely iPad Mail recognized the public certificate from the PC installed in iPad/Settings/General/Profiles and allowed me to send an encrypted email to the PC. However, on the PC I was unable to read the encrypted email. And the other way around, encrypted emails send from the PC to the iPad cannot be read on the iPad.
My conclusion from all this testing is that iPad mail encryption is still "under construction".I was able to resolve the above described problem to some degree. Setting up sending and receiving encrypted emails between iOS and OSX I have working.
What is still not working is reading encrypted emails on the iPad/iOS8 received from Windows 7 PC. And sending encrypted emails to Windows 7 PC.
The details about how I solved part of the problem are described here. -
Is there a way to send an email from the web gallery module
Hi all,
does anyone know if there is a way to send an email from the webmodule, for example to send the link where the gallery was posted?
Thanks for any help.
BartI'm certainly not aware of any way, thus my post here (please cast a vote):
http://feedback.photoshop.com/photoshop_family/topics/lightroom_sdk_email_support
I don't know if you could get away with using LrHttp to open a mailto link.
The only other option I know is to send data to your web server and have it send SMTP. -
I am switching accounts with my brother (long story why) but I need to remove my emails from the Mail application. I removed my Gmail account but when I try to remove my iCloud email it still keeps the emails. Does anyone know to remove a iCloud email?
Hi, how are you seeing these eMails if the account is removed?
-
How do I send an email from the portal?
Is there support for the IMAP protocol?
Thank you for any and all help,
GeoffreyWLS has support for the JavaMail standard. That's SMTP on the send side and
IMAP (or others like POP3) on the receive side. Portal does not have the end
all, be all IMAP client nor does it have a full featured SMTP client to compose
mail but the sample portlets have a start.
Geoffrey wrote:
How do I send an email from the portal?
Is there support for the IMAP protocol?
scott dunbar
bea systems, inc.
boulder, co, usa -
Sending emails from the JSP application
hi,
I am trying to send emails from my jsp application using JavaMail API's.
I am using my own mailserver.
Iam able to send emails from my applications to the ids of my own mailserver but not the yahoo,gmail and rediff ids.
Is it because of blocking of any firewall or somthing else to do within my application?
Can anyone help me in this?
Thanks a lot.Please read the JavaMail FAQ.
It's probably due to the configuration of your mail server,
which is refusing to relay your messages. -
Sending an Email from the app along with table data
Hi All,
I would like to send an email from my app. I tried to put in the field attachment SQL this query: select * from Table_Name where id = (select max(id) from Table_Name) but it did not work. It showed me this error:
1 error has occurred
Wrong number of columns selected in the SQL query. See Help of attribute for details.
I would like to send an email every time the user insert a row with that row in the email... How can I do that?
Thank You.What I would suggest is the following:
Build an After Insert Trigger on the table in question. In this trigger build a string with ALL the columns that are being inserted into the table. Then you will need to build some local variable to submit your mail. You will send your e-mail via UTIL_SMTP mail, since you may NOT always being in an APEX application when the table is updated..
Ask away if you have more questions..
Thank you,
Tony Miller
Webster, TX
I am a Ranger! We walk in the dark places no others will enter! We stand on the bridge and no one may pass! We live for the One, we die for the One!
If this question is answered, please mark the thread as closed and assign points where earned.. -
How to Send a Mail From the Oracle Applications.
Hi,
I was assigned a task to send a mail from the front end i.e., from oracle applications.
but i have no idea.
i am working on oracle apps R12.1.1 and 10g reports.
First i have to create an rdf file and that rdf file i want to send as an attachment through mail from the apps.
Any Advice will be of great help and i will follow accordingly.
Thanks in Advance,
Regards,
Bharathi.SHi,
I was assigned a task to send a mail from the front end i.e., from oracle applications.
but i have no idea.
i am working on oracle apps R12.1.1 and 10g reports.
First i have to create an rdf file and that rdf file i want to send as an attachment through mail from the apps.
Any Advice will be of great help and i will follow accordingly.
Thanks in Advance,
Regards,
Bharathi.S -
I want to send an email from my java application
i want to send an email from my java application
Then do so...
You'll probably want to use the JavaMail API (http://java.sun.com/products/javamail) to do that. -
Keep getting this message when trying to send a group email from the address book -"The size of the message you are trying to send exceeds a temporary size limit of the server. The message was not sent, try to reduce the message size or wait some time and try again. The server responded: 4.1.1... temporary failure."
Comcast has checked it - the issue is not the server they say. This problem just started 4 days ago. It appears other people have this problem on the thunderbird forum and it has not been resolved yet.The Comcast server is issuing the error message. Have them explain how this is not their problem.
-
How to send an email from the database
i have create a post insert trigger at the database level for the emp table and that trigger call a procedure and that procedure send a email to the new employee, i the trigger send the firt name , second name , last name and the email address to the procedure .so my questions is about the command that will send the email to the new employee ,and the send email will look like this
Dear "fist name "second name" "last name"
welocme to..........................................................This thread could help answer some of your questions:
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:2391265038428
C. -
Want to load dynamic URL from the WebDynpro application
Hi ALL,
My problem is I developed a WebDynpro application to show the vendor details in the table.
I created a iview in the portal and integrated the webdynpro application. Taken 2 columnwidth page.
In 1 column to showing the vendor details and in another column i want to show the site of the vendor.
Now, In row selection I want to show the homepage of the vendor site in another ivew(2nd column) of the page.
Kindly help me out.
Thanks in advance.Hi,
Please follow the below process for passing data between two webdynpro applications using portal eventing.
Step1:-
Webdynpro Application 1 (Iview1)
Create an input field bind a context variable and have a button and write the following code in the button onaction.
public void onActionOK(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
com.sap.tc.webdynpro.clientserver.event.api.WDPortalEventing.fire("urn:com.sap.tc.portaleventing.example","show",
wdContext.currentContextElement().getHi());
Here Hi-->is the context variable binded to the input field.
Step2:-
WDDOINIT write the following code:-
com.sap.tc.webdynpro.clientserver.event.api.WDPortalEventing.subscribe("urn:com.sap.tc.portaleventing.example","show",wdThis.wdGetRaiseFireAction());
While creating the action it should have the following 3 parameters.
1.dataObject-->Type String
2.namespace-->Type String
3.name-->Type String
Your action code should look like something below.
public void onActionRaiseFire(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject, java.lang.String namespace, java.lang.String name )
wdComponentAPI.getMessageManager().reportSuccess("Value in the input field"+dataObject);
Note:-
1.Make sure your using portal along with domain
Eg:-http://portal:50000/irj/portal--->wrong
http://portal.domain.com:50000/irj/portal--->right
2.EPCF level should be 1.
3.Check whether both applications run on the same domain.Sometimes portal eventing does not work between cross domain applications.We should do domian relaxing in order to achieve this.
Thanks & Regards,
Lokesh Kamana -
Adding and reading the parameters from the WebDynpro Application URL
Hi,
I have a WebDynpro Application with two views. Based on the values populated by the user in the first view, I am pulling the data from database and populating the data in the second view. I do have a scenario where I have to skip the first screen and show the second screen directly. But, for the values that has to be populated in first screen, I am planning to append the parameters in the url and provide the link to the users via email.
Is it possible to add parameters to URL and read those Parameter values when user clicks on the URL.
Thanks & Regards
swetha.HI,
Code for accessing params in webdynpro java:
String urlParamVal = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("URL_PARAMETER");
if((urlParamVal != null) && (urlParamVal.trim().length() > 0))
<Write the code>
Reading parameters:
Re: Reading URL Parameter
How to pass and fetch multiple parameter in the URL of the Web Dynpro
Regards,
Lavanya.G -
I deleted my old Email and only used my new Email to set up the Mail app on my laptop. And the old Email is completely dead, hotmail.com says the Email no longer excists when I try to sign back in to it however my Emails remain saying 'Sent from Jordan [*old Email*].
I can't find a solution!!If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact AppleCare(or Apple ID Support), upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do. -
How do you send an email from a J2ME application
I am writing apps in J2ME and would like to generate emails in my apps, and send them to a printer, as a means of getting printed output from my apps. Can anyone tell me how to do this please?
You may get lucky here, but I think you'd be much better served asking your question in a developer's forum...if you google "J2ME developers forum" or similar (or even "generate emails from J2ME programs" you should be able to get to what you need.
Good luck, sounds like an interesting approach.
I am an HP employee.
Maybe you are looking for
-
I am writing papers for school which have strict page limits so I can't afford to be losing lines at the bottom of a page because Pages thinks it looks better to have a new paragraph start on the next page. It does this automatically and I have to go
-
Data Corruption when installing Windows XP
Folks, I would greatly appreciate any direction you might have to help me solve te following issue. Here are my parts: k7n2 Delta - L AMD XP 3000+ Saphire Radeon 9800 PRO 128 Antec Server case 430w Truepower supply. Plextor 52/24/52 IDE Maxtor SATA 8
-
Flash Player 10.1.53.64 not working on all PC
Hi First sorry for my bad English We are a company with 150 PC's. The 10.0 Version from Flash was running without any Problem. Now we make a Rollout with Windows 7 Enterprise and the new 10.1. We install den MSI Active X Package. In the Program List
-
How do I get an Internet Explorer on my Mac OS X, I need it to run work programs?
How do I get Internet Explore on my Max OS X, I need it to run work programs?
-
Any way to apply Twist effect twice in opposite directions?
I am trying to draw a sun-like shape. I started with a star polygon and apply the Twist effect. That gets me pretty good arms on the sun, but I'd like for something a bit more flame-like, so I'd like to get the arms to now bend back in the opposite d