Mail send and the body of the email and the attachment to ATG.

Hi all

Can any body explain to me how I will send an email with the body of the email and attachments in ATG.

Thank you
Chadnra mohan

You can use atg.service.email.MimeMessageUtils or javax.mail.internet.MimeMessage (both are under Message classes).

You can set the body to aid below extracted.

Message MSG = MimeMessageUtils.createMessage ();
msg.setText ("your body of the email");

You can define the setting and the content using below extracts.

define the content of the message: message to multiple parties + attachment
ContentPart happy [] =
{New ContentPart ("it's clear","text/plain" ""),}
{New ContentPart ("this is text html" , "text/html")};
Attachment of files = new File ("attachment.html");
MimeMessageUtils.setContent (msg, content, seizure, false);

All of these are clearly explained in the link below.

http://docs.Oracle.com/CD/E24152_01/platform.10-1/ATGPlatformProgGuide/HTML/s1013creatingjavamailmessages01.html

Thank you
Gopinath Ramasamy

Tags: Oracle Applications

Similar Questions

  • Windows live mail send error "the server does not support an SSL connection. Server error 250.

    Original title: Windows live mail error send

    Cannot send mail to Windows Live Mail.  Error message... The server does not support an SSL connection. Server error 250. Server - * address email is removed from the privacy *. Windows Live Mail error ID - 0x800CCC7D. SMTP Protocol.  Port 25.

    It's better, thank you. This message is not from the BT Server; It comes from your Avast antivirus which is intercepting your mail. You would be well advised to turn off the Avast Mail shield; It does not add any additional security if you don't by attention elsewhere, and can cause problems.

    I see that it is the record of mail in bulk that because of the problems in this case. Connect to the Web e-mail account and clear the items junk and deleted records.

    BT is recommended to use SSL, but your original question indicated that SSL was not taken in charge for SMTP on port 25. I think we'd better go on all your settings. Recommendations of BT are on this page: BT email: what are the settings for outgoing and incoming mail servers?, but they only work if you disable Avast scanning mail.

    Right-click on the account name in the folders pane, and then select Properties.

    • Under the servers tab, make sure that my server requires authentication is selected.
      Select connect with authentication in clear text.
    • On the Advanced tab, select this server requires a secure connection (SSL) for both servers.
      Make sure that the incoming (IMAP) port is 993 and port for outgoing (SMTP) is 465.

    When you've made all these changes, close Windows Live mail and wait five minutes for the program do its cleaning and save the modified settings. Then, restart the computer and make sure that the Mail of Avast shield is always off.

    Launch Windows Live Mail, then dial a new test message and send it to yourself. Post a new message in your response.

  • Problems with Windows Live Mail send and receive e-mails

    Hello

    I am running Windows 7 Home Premium and I used Windows Live Mail 2012 (WLM) for many years without any problems, and I prefer it much to Outlook.com. I have my own personal e-mail account and three other accounts available in WLM. I can send and receive emails from three other accounts, but my own account keeps giving the error message:

    Can't send or receive messages on behalf of Clive Read.
    Server error: 4402
    Server: 'https://mail.services.live.com/DeltaSync_v2.0.0/Sync.aspx '.
    Windows Live Mail error ID: 0x8DE00002

    That being said, I can actually send emails, but cannot receive them-weird!

    I spent several hours internet research solutions, including Microsoft pages, forums, etc and later of the end of "solutions" offered in 2013. Many of the suggestions I've tried, without success. I ran other controls have shown that initpki.dll is absent, but I don't know if it's possible causes and, if this is the case, my attempts to locate, re - save or download one have failed.

    My version of WLM doesn't have a "Tools" link, and I can't seem to find where the incoming and outgoing port settings. It gets really tedious, so I'd be grateful for all solutions to update to my problem and perhaps an explanation as to what may have caused it in the first place.

    Thanks in advance for your suggestions.

    Clive Read (UK)

    You are welcome and thank you for the comments

  • Windows Live Mail, send and receive error message: error in Live Mail ID 0x8DE00001

    original title: sending and receiving erratic

    Today I created 2 new email my Live Mail account addresses.  Sometimes, I am allowed to send and receive, and at other times, I get an error (Server error 4102) with Live Mail error ID 0x8DE00001.  After the repeated efforts to send/receive, a box appears for me to decipher the CAPTCHA letters.  Yet once, it takes repeated efforts to have accepted answer.  By the same box, told me that I could make verification easier by my cell phone available that I might have a check of the text sent to me.  Don't you know, my Cricket phone is not accepted.  I had a few problems with Windows Live since put so that it uses a couple of years.  Why this problem all of a sudden?  I want to prove once and for all I'm not a crook or a spammer.  What can I do?  It's so frustrating.

    Hi Jackie B.,.

    The question you have posted is related to Windows live mail and would be better suited to the community of windows live mail. Please visit the link below to find a community that will provide the best support.

    http://windowslivehelp.com/product.aspx?ProductID=15

  • When e-mail cannot do the attachment click it

    want to send documents by e-mail, but it will not click on attachments

    Compose a new message, and then use Insert | Piece attached or just drag the file on top of the new message and it it will work.
     
    Steve
     

    want to send documents by e-mail, but it will not click on attachments

  • How to rid error 0x800ccc17 blocks the sending and receiving of mail

    I'm administrator, have opened the mail in windows for years without having the password. Child wanted to do something with the camera and was needing a password when visiting I typed in and I--decided I had ever before so deleted. Now error ox600ccc17 has blocked my Windows mail sending and reception and also send hotmail.

    Hello

    Follow the link and check if it helps you.

    Solve problems with Windows Mail

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Windows-Mail

  • Mail user send 10 times to the CC, I need to mail send only once to CC. Loop problem

    Dear Sir.

    In my application, I created a survey then it goes to HOD HOD assign to the group or Indivitual User.if HOD assign inquiry to ressemelable it to the group. Then send Mail to all users in the Group and send mail to the user who who after investigation.

    Suppose that the Group has 10 users.
    But now my problem is when I select the group then mail send to the group users (10) but 10 send mail to users that query.i Post uses CC who has the Post request.

    I don't need that once mail send to the user who posts this request nothing 10 times.

    It's looped .loop is fire 10 times for the CC, I need fire once for CC.



    How can I do that.

    My Code is.
    DECLARE
    
    l_id number;
    to_add varchar2(1000);
    to_sub_by varchar2(1000);
    from_add varchar2(1000);
    l_body varchar2(4000):=:P33_DESCRIPTION;
    l_sub varchar2(1000):=:P33_SUBJECT;
    I_case varchar2(10):=:P33_CASE_ID;
    I_isue_dte date:=:P33_SUBMITTED_ON;
    l_regd    varchar(100);
    
    
    CURSOR C1 IS SELECT EMAIL_ID,(SELECT EMAIL_ID FROM USER_MAS WHERE USER_ID =:P33_SUBMITTED_BY_ID) AS D FROM USER_MAS WHERE USER_GR_ID=:P33_ASSIGNED_TO_GROUP_ID AND USER_ID NOT IN(:APP_USER);
    
    
    
    BEGIN
    
    if :P33_ASSIGNED_TO_GROUP_ID is not null then
    
    open C1;
    LOOP
    FETCH C1 INTO to_add,to_sub_by;
    EXIT WHEN C1%NOTFOUND;
    
    select email_id,user_name into from_add,l_regd from user_mas where user_id=:app_user;
    
    l_id:=APEX_MAIL.SEND(
            p_to        => to_add, -- change to your email address
            P_cc        => to_sub_by, 
            p_from      => from_add,
            p_body      => 'Issue Information'||''||chr(13)||chr(10)||chr(13)||chr(10)||
                           'www.farhorizonindia.net:7777/crm'||''||chr(13)||
                           'Issue Title'||':'||l_sub||CHR(13)||chr(10)||
                           'Issue Number'||':'||I_case||CHR(13)||
                           'Issue Open Date'||':'||I_isue_dte||''||chr(13)||chr(10)||CHR(13)||chr(10)||
                           'Most Recent Comment'||':'||''||chr(13)||chr(10)||
                           l_body||chr(13)||chr(10)||''||CHR(13)||chr(10)||'Regards'||chr(13)||chr(10)||''||l_regd||CHR(13)||chr(10)||CHR(13)||chr(10)||'Please do not reply to this email.If you wish to update the call.please login to the issue Management.',
          
      P_subj      => I_case ||' Issue '||l_sub);
    
    end loop;
    close C1;
    
    end if;
    
    COMMIT;
    apex_mail.push_queue(
    P_SMTP_HOSTNAME => '102.111.0.9',
    P_SMTP_PORTNO => 25);
    
    commit;
    
    END;
    How to solve it.

    Thank you

    Published by: Sophie on June 22, 2011 05:17

    Published by: Sophie on June 22, 2011 20:57

    Published by: Sophie on June 22, 2011 22:52

    Published by: Sophie on June 23, 2011 12:11 AM

    Published by: Sophie on June 23, 2011 01:15

    Hello

    Maybe like this:

    DECLARE
     l_id number;
     to_add varchar2(1000);
     to_sub_by varchar2(1000);
     from_add varchar2(1000);
     l_body varchar2(4000):=:P33_DESCRIPTION;
     l_sub varchar2(1000):=:P33_SUBJECT;
     I_case varchar2(10):=:P33_CASE_ID;
     I_isue_dte date:=:P33_SUBMITTED_ON;
     l_regd    varchar(100);
    
      CURSOR C1 IS SELECT EMAIL_ID FROM USER_MAS WHERE USER_GR_ID=:P33_ASSIGNED_TO_GROUP_ID AND USER_ID NOT IN(:APP_USER);
    
      BEGIN
         if :P33_ASSIGNED_TO_GROUP_ID is not null
         then
           -- do this query once!
           select email_id,user_name into from_add,l_regd from user_mas where user_id=:app_user;
            -- first send a mail for the CC email
            SELECT EMAIL_ID into to_sub_by FROM USER_MAS WHERE USER_ID =:P33_SUBMITTED_BY_ID;
            --email
            l_id:=APEX_MAIL.SEND(
            p_to        => to_sub_by, -- only the cc email
            p_from      => from_add,
            p_body      => 'Issue Information'||''||chr(13)||chr(10)||chr(13)||chr(10)||
                           'www.farhorizonindia.net:7777/crm'||''||chr(13)||
                           'Issue Title'||':'||l_sub||CHR(13)||chr(10)||
                           'Issue Number'||':'||I_case||CHR(13)||
                           'Issue Open Date'||':'||I_isue_dte||''||chr(13)||chr(10)||CHR(13)||chr(10)||
                           'Most Recent Comment'||':'||''||chr(13)||chr(10)||
                           l_body||chr(13)||chr(10)||''||CHR(13)||chr(10)||'Regards'||chr(13)||chr(10)||''||l_regd||CHR(13)||chr(10)||CHR(13)||chr(10)||'Please do not reply to this email.If you wish to update the call.please login to the issue Management.',
    
      P_subj      => I_case ||' Issue '||l_sub);
    
    -- Now the loop throught the users from the group
      open C1;
      LOOP
         FETCH C1 INTO to_add;
         EXIT WHEN C1%NOTFOUND;
    
    l_id:=APEX_MAIL.SEND(
            p_to        => to_add, -- change to your email address
    --        P_cc        => to_sub_by,  -- no more CC
            p_from      => from_add,
            p_body      => 'Issue Information'||''||chr(13)||chr(10)||chr(13)||chr(10)||
                           'www.farhorizonindia.net:7777/crm'||''||chr(13)||
                           'Issue Title'||':'||l_sub||CHR(13)||chr(10)||
                           'Issue Number'||':'||I_case||CHR(13)||
                           'Issue Open Date'||':'||I_isue_dte||''||chr(13)||chr(10)||CHR(13)||chr(10)||
                           'Most Recent Comment'||':'||''||chr(13)||chr(10)||
                           l_body||chr(13)||chr(10)||''||CHR(13)||chr(10)||'Regards'||chr(13)||chr(10)||''||l_regd||CHR(13)||chr(10)||CHR(13)||chr(10)||'Please do not reply to this email.If you wish to update the call.please login to the issue Management.',
    
      P_subj      => I_case ||' Issue '||l_sub);
    
    end loop;
    close C1;
    
    end if;
    
    COMMIT;
    apex_mail.push_queue(
    P_SMTP_HOSTNAME => '102.111.0.9',
    P_SMTP_PORTNO => 25);
    
    commit;
    
    END;
    

    Herald tiomela
    http://htendam.WordPress.com

  • Open the attachment in hotmail with what program?

    How can I open an attachment via my e-mail (hotmail). I don't see anything. Need me only to windows media center. is another program to view the attachments?

    Hello

    Why can't I open attachments in Hotmail?
    http://ask-Leo.com/why_cant_i_open_attachments_in_hotmail.html
    http://help.MSN.com/ (ZmlsdGVyPURIX0ZSRUUmcHJvamVjdD1ob3RtYWlscGltdjEwJm1hcmtldD1lbi11cw==)/Help.aspx?market=en-US&project=HotmailPIMv10&querytype=topic&query=PIM_PROC_OpenFile.htm

    Check here and related topics
    http://help.live.com/help.aspx?project=mailfull&market=en-us&querytype=topic&query=wl_mail_trou_cantdownload.htm

    Possible answer here or similar situation
    http://windowslivehelp.com/community/t/111075.aspx

    Windows Live Help - Hotmail
    http://windowslivehelp.com/
    http://windowslivehelp.com/search/searchresults.aspx?q=attachments&o=relevance

    Try to set up your Hotmail like POP3 account with your e-mail client.

    E-mail send and receive Windows Live Hotmail since an e-mail Client
    http://windowslivehelp.com/solutions/settings/archive/2009/01/06/send-and-receive-Windows-Live-Hotmail-emails-from-a-mail-client.aspx

    Also a great tool:

    PopPeeper - free - don't forget to download and install the SSL plugin.
    http://www.poppeeper.com/

    http://www.Hotmail free POP3 and SMTP Access and Server Configuration Settingsmydigitallife.info/2009/01/16/hotmail-free-pop3-and-smtp-access-and-server-configuration-settings/

    http://Techblissonline.com/Hotmail-POP3-and-SMTP-settings/

    How to access free Windows Live Hotmail in Windows Mail
    http://email.about.com/od/windowsmailtips/Qt/et_get_hotmail.htm

    Free Windows Live Hotmail POP3 access went all over the world
    http://www.Neowin.NET/news/main/09/03/13/free-Windows-Live-Hotmail-POP3-access-has-gone-worldwide

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Windows Live Mail sends several emails to the recipient and gets stuck in the Outbox

    My windows live mail sends multiple messages for one of my email accounts (and only one). It seems stuck in the Outbox and not appear in my sent items folder, but the buyer complains to receive up to 25 times. I uninstalled norton antivirus completely because I've heard of a similar problem with outlook, but have seen no improvement. Please help, it's making me look very unprofessional. I tried same emailing with my current antivirus disabled, but have not seen any improvement.

    Windows Live Mail questions belong here: http://windowslivehelp.com/product.aspx?productid=15

  • I can't send or receive emails using Windows Live Mail. Receive the error code 4402. I can send and receive email on my hotmail account.

    I can't send or receive emails from Windows Live Mail. Receive the error code 4402. I can send and receive emails from my Windows Live hotmail account. In Windows Live Mail, it also says my server is an http / imap server. Can it be replaced by a pop3 server, so, how? Thank you

    Well, took me a few hours and without the help of a person (TIP!), I've fixed it. Remove the live mail client account and re-apply / restore the account. Solves what seems to be a sync error. -19 October 2011

  • Whenever I try to answer or write a new e-mail, the "Attachment ID has wrong format" message appears and I can't send emails.

    whenever I try to answer or write a new e-mail, the "Attachment ID has wrong format" message appears and I can't send email, how do I fix?

    original title: problem sending e-mails

    Hello Pamwolfe,

    What program of e-mail that you use or sign in a service such as Windows Live Mail Webmail?
    If you use Windows Live Mail I suggest to take a look at this site:
  • When sending email e-mail remains in the Outbox and is sent over and over again unless I'm deleting it. It does not move to sent box

    My Internet service provider said that it is not a problem of them

    Can I assume that the e-mail program, you did not mention is Outlook Express?

    You have apparent dbx file corruption.

    Spend most of your messages out of the Inbox and then create new folders to send and sent items box after having moved the messages you want to save to a local folder that you create.

    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.

    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.

    With OE closed, find the DBX files for the items in the Outbox and sent and delete them.  New ones will be created automatically when you open OE.

    After you're done, followed by compacting your folders manually while working * off * and do it often.

    Click Outlook Express at the top of the the folder tree so no folders are open. Then: File | Work offline (or double-click on work online in the status bar). File | Folder | Compact all folders. Don't touch anything until the compacting is completed.

    General precautions for Outlook Express:

    Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend all a 300 MB max for less risk of corruption.

    Information on the maximum size of the .dbx files that are used by Outlook Express:
    http://support.Microsoft.com/?kbid=903095

    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3

    Why you don't need your anti-virus to scan your email
    http://thundercloud.NET/infoave/tutorials/email-scanning/index.htm

    Note that for some AV programs, it may be necessary to uninstall the program and reinstall in custom Mode and uncheck analysis when the option is the result of e-mail messages.

    Compact often as specified above.

    And backup often.

    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx

  • Is it possible in Windows Live Mail to change the settings for the images remain in the body of the email, not in a slide show?

    change how I get pictures on incoming emails

    Most, but not all emails that I receive that contains images come as 'slide show', and where the image should be, there is a blank box with a red x.  Is it possible in Windows Live Mail to change the settings for the images remain in the body of the email, not in a slide show?

    I know that they are sent correctly, because I send on my iPod and the photos are where they should be.

    I have Windows 7 and I hope you can help me.

    Thank you

    Hello

    ·         What browser do you use?

    ·         What happens when you click on the slideshow of the photo? The photos are displayed when you click the slide show?

    If you use Internet Explorer, then I would suggest that you follow the instructions in the link and check if this can help:

    http://support.Microsoft.com/kb/283807

    If operations since the link above does not help then I suggest that you post your query on the Windows Live forum for assistance:

    http://windowslivehelp.com/product.aspx?ProductID=15

  • E-mail call: Capture the email body?

    Hello

    We have a form that is sent by email and then treated by LiveCycle via an e-mail end point.

    Now, we need to also enter the body of the email - in which case the author has written additional information in the email.

    Any idea how this could be achieved?

    Concerning

    /Sandro

    Hello

    You can select the Variable in the correspondence of the input parameter when configuring messaging endpoint. You can map a string from the subject of the e-mail, the body, header, or email address of the sender. To do this, use one of the following keywords: %subject%, % BODY, % header or the SENDER %.

    For example, if you use %Subject%, the content of the email subject is used as an input parameter.

    Thank you

    Ankit

  • send in the mail app icon is no longer available so I can't send emails

    After my last update of software, I lost my icon sent in my email application so I can't send email.

    How to install the icon 'Send' in the e-mail application?

    Hello nuiektore,

    Thank you for using communities Support from Apple!

    If I understand correctly, you cannot send mail because the send icon is no longer visible.  I know how important email is and I'm happy to help you!

    Very probably the send sort icon has been removed from the toolbar.  Here are the instructions on how to recover:

    1. In the Mail Viewer or in a new message, click on the toolbar, and then choose Customize toolbar. Or choose View > customize toolbar.

    2. Do one of the following:

      • Add item: drag an element from the palette to the toolbar until you see a green plus sign.

      • Remove an item: drag an item to the toolbar until you see or hear a "poof" effect

      • Rearrange items: drag an item around the toolbar until an open space to appear.

      • Change the way items appear: click on the view pop-up menu, and then choose an option.

    3. When you are ready, click done.

    Address postal (El Capitan): customize toolbars of e-mail

    Have a great day!

Maybe you are looking for