send e-mails to multiple addresses

Hi guys,.

a question about the APEX_MAIL package. Has anyone tried to send e-mails to multiple addresses by using the p_cc parameter? I found a description how to do this, but it does not work when the addresses are stored in the variables:
p_cc:  Valid email addresses to which the email is copied. For multiple email addresses, use a comma-separated list
As it's works, but if I want to add another address to p_cc (stored in a variable), it no longer works.
 l_id := HTMLDB_MAIL.SEND(
        p_to        => receiver,
        p_cc        => receiver2,___________,
        p_from      => sender,
        p_subj      => subject,
        p_body      => body,
        p_body_html => body_html);
Does anyone know the correct syntax to add a second receiver stored in a variable?

Thank you for your time and help!
Concerning
Patrick

Patrick,

Using your code as the base and making the following assumptions:
1 ' receiver' and "receiver2" are hard-coded electronic addresses
2. the name of the variable is l_cc02

Try the following:

 l_id := HTMLDB_MAIL.SEND(
        p_to        => '[email protected]',
        p_cc        => '[email protected],' || l_cc02,
        p_from      => sender,
        p_subj      => subject,
        p_body      => body,
        p_body_html => body_html);

Note the comma at the end of the 'other' email address.

Kind regards
Dan

http://danielmcghan.us
http://sourceforge.NET/projects/tapigen
http://sourceforge.NET/projects/plrecur

Tags: Database

Similar Questions

  • Windows Mail - how to send a message to multiple addresses without showing the e-mail addresses

    I want to send a message in Windows Mail to multiple e-mail addresses at the same time, but I don't want everyone to see who all send it. Outlook used to have an option "bcc"... Cc of the blind.

    Open a new message window. View | All the headers. Or simply click on the button to.

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • Need to send workflow Notifications to multiple addresses

    Hello

    I need to send a workflow Notifications to multiple users messages and emails are getting picked up running. Please help me how can I achieve this? I also need to send notifications as well.

    Thank you

    Gaétane

    Hello

    But I thought that instead of going get the username of WF_LOCAL_ROLES and then sending the mail to user names, I can't send mail directly using e-mail.

    AdHoc roles depend in large part of the FND_USER, WF_ROLES, WF_LOCAL_ROLES table to check if these users are still active.

    and AdHoc roles take only the values of FND_USER. User_name as input, so I don't think that you can directly use the email addresses.

    If you want to use as input e-mail addresses, you may need to create a custom package/procedure.

    I hope this helps!

  • Question about sending e-mail to multiple recipients

    Hi all

    I'm creating a workflow that will send a notification by email each time a new campaign is created. I learned that R16 is able to send emails to multiple recipients, the only concern I have is that I can't find everything will have on how to do it. It is indicated in the Guide of Preview R16 administrator you can select "specific"E-mail address ", enter several e-mail addresses directly, tried to enter several e-mail addresses separated by comma - [email protected], [email protected], [email protected] for example, but it does not work and invites me to enter a valid email address. Could someone guide me on how to enter several e-mail addresses when you select 'Specific E-mail address' or how to do it in the expression builder to set the expression that defines the list of emails. I know that by using addresses group e-mail can be used as an alternative to this requirement, but I hope that their way to proceed with workflows.

    Thank you
    Wayne

    Wayne,

    Outlook uses one; to divide email addresses have you tried?

    see you soon
    Alex

  • Impossible to send E-mail on Satellite A100 WinXP SP2

    Hi all

    just found this forum.
    I have the Satellite A100 Windows XP sp2 and I'm unable to send e-mail to certain addresses (yahoo among others - recipients rejected by the server).
    After several long sessions with my ISP tech (ntlworld) support that seemed to be the best advice that all is OK with my settings on the server and I need to look for a solution elsewhere.

    I was using Outlook Express as my email application so tried Mozilla's Thunderbird to see if this helped - no improvement, unfortunately.
    Windows updates all installed. I approach approaching the limit of my knowledge, help/advice or pointers in the right direction is greatly appreciated.

    Hello

    Maybe is a problem of the Outlook profile.

    Make a new profile in Outlook under Extras? E account Mail with information from the ISP and verify the Netware properties.

    I hope this is a help.

    By

  • How can I send an email to multiple recipients without showing the e-mail address of the recipients?

    I received emails from people who do not have other names of recipients.  How they do that?  They create a group first Contact?

    I have an occasional need to send e-mail messages to multiple recipients, but don't want them to know the list of recipients.  Is this possible?

    I use Windows Mail with Vista.

    Thank you.

    You are welcome

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk |  vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • When I try to send an email to multiple recipients, I get this message: "there are non-ASCII characters in the local part of the address of the recipient. This is not

    I bought a new computer. When I try to send an e-mail to multiple recipients, now, I get this message: "there are non-ASCII characters in the local part of the address of the recipient. It is not yet supported. If please change this address and try again. "I don't know what are the non-ASCII characters, so I don't know what to do. I never had this problem on my old computer. Please explain in simple language.

    The 'local' part in the context of email addresses, the part to the left of the symbol @. The warning is a bit of a surprise, because in general the owner of a mail server is relatively free to specify the address format. There is a movement to allow the games to other characters to be used in the fields, so I'm a little disappointed to see that, apparently, e-mail does not support the latter in the local part yet or it can be your SMTP server that generates this message.

    ASCII characters ("American Standard Code for Information Interchange") are, on the whole, the English alphabet, uppercase and lowercase, as well as figures, common punctuation and case of things like the asterisks, obliques and media bars, but not of accented characters. But even apparently simple things like spaces and dashes have cousins who, at first glance, appear to be identical, but are not represented in the ASCII system. I am thinking especially nonbreaking spaces, dash and half-quadratin.

    But I don't know why your new computer must have caused these warnings.

  • 'Show' / show sender e-mail address of emails sent

    When you use mail on my iPhone, I'm more able to view the the sender email (my email address) of e-mails sent (in the "sent" folder).

    So I don't know why this happened, but I have no idea how to do to reverse the trend: I opened an email I'd sent, and I accidentally pressed 'hide' (upper-right next to my email address), making the email of the sender disappear, not only for this account, but for all other e-mail accounts as well.

    I would really like to "show", while I am able to see the e-mail address of the sender (that I have multiple IMAP/Exchange e-mail accounts set up on my phone, and I have to be able to see which account I sent him since.)

    Does anyone know how to do this? Any help is really appreciated!

    I thought about her excuses for not realizing account earlier, it drove me crazy. Turns, all you need to do is go in an incoming email and then press "more". You can only hide when displaying outgoing e-mail and don't change that back during playback by entering a.

  • I can't send an email to several addresses e-mail using the mail on my iMac running OS 10.11.4.  The email goes into the Outbox, but it cannot be sent from there.  Any suggestions? Thank you.

    I can't send an email to multiple email addresses, using Apple mail on my iMac running OS 10.11.4.  With all the addresses email goes into the Outbox, but cannot be sent from there.  All solutions?  Thanks for your help.

    That could happen if one of the addresses is incorrect.

  • I need to send e-mail to climb what is the email address of support?

    I need to send e-mail to climb what is the email address of support?

    Click on contact us at the bottom of this page to join Apple

  • Cannot send to multiple addresses with outlook express

    Cannot send to multiple addresses with outlook express

    Hello
    even if you weren't too fourth to come up with more details on this issue, guide for the question on Outlook express here.
    If you have more specific questions, please include more details.
    http://support.Microsoft.com/kb/835830
    B Eddie

  • How to reset the default mail program? When I click to send e-mail to a box of 'Contact us' site web or excel sheet spread with addresses e-mail, a new msn email opens.

    How to reset the default mail program? Got msn.com. Now, I went to q.com. When I click to send e-mail to a box of 'Contact us' site web or excel sheet spread with addresses e-mail, a new msn email opens. Now, I get an error message: rundll32.exe - bad Image, followed by a message the the appklication or the DLL C:\Program FIles\MSN\MSNSharedFIles\MAILMAPI. DLL is not a valid Windows image. Please check against oyur installatiion diskette. I have msn unisnstalled.

    I can access my e-mail through hotmail msn, but no linger to subscribe to msn premium.

    original title: default e-mail program

    Hi PAULKRISSEL,

    This function is not supported natively in Windows. You may may find a third of the program that will change the default to q.com.

    WARNING:
    Microsoft provides no assurance or warranty, implied or otherwise and is not responsible for the download you receive from the sites of third parties or support related to the download or the downloaded technology. If you need assistance dealing with third party technology, please contact directly the manufacturer.

  • Why Microsoft isn't an option in their email clients (Outlook, Outlook Express, Live Mail, hot Mail) block IP addresses that send spam?

    Why Microsoft isn't an option in their email clients (Outlook, Outlook Express, Live Mail, hot Mail) block IP addresses that send spam?

    Looks like something aside server.  Not to mention that change IPs and when you go to IPv6, the whole game changes.

    What email client you use that gives you this option now?

    You can block entire domains...  (Outlook in any case, not sure about the rest.)

  • My email address randomly sends e-mails

    My email address to randomly send e-mails, some very explicit, to my contacts list.  It is not the computer, I think not because it affects anyone else email addresses in my house who uses this computer.  I got complaints from people who feel unsafe to open them and I told them to do not do because I don't know if they are safe or not.  Can someone help me stop these messages be sent?  In fact, some do not send the other and they looked back telling me to postmaster@hotmail (failure) delivery status notification.  I have several of these newspapers.  I thank very you much for helping me.

    Hello

    as you use hotmail post in the forums for hotmail

    transfer your question of hotmail in the hotmail link below forums

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

  • How recover recently who has send the sms and recently send e-mail address?

    Hello

    I want to combile all numbers recently called, recently send sms number and recently send e-mail address.

    I did get it back recently called numbers but I don't get how to recover the recently send sms numbers and email address.

    can someone tell me please how to Thatcher?

    You can read the messages in the sent folder and choose the e-mail addresses, the messages have been sent.  Or you could implement a SendListener, to capture and store the addresses of e-mail messages recently sent e-mail.

Maybe you are looking for

  • "When using the address bar offer...". "Even the value 'Nothing' I always get suggestions. To stop, please!

    I tried to change the field to "no" several times without any results. It always gives me suggestions. I have tried clearing recent history with no results either. As you can see below, my "browser.urlbar.autoFill", "browser.urlbar.autoFill.typed" an

  • How to keep zoom level setting back?

    Zoom level changes every time with the opening page, & I want to keep the already set zoom level, as happens in other browsers like Google Crome.How to maintain the fixed zoom level, to the selected sound level? I tried with add to solve this problem

  • Problem of Windows 10 calls has dropped with the recording device

    I now there is other people have this problem. However, however not only what I call someone or they call me the call drops and error message "problem with recording device" appears. He also told those trying to call me or answer my call I can accept

  • Accidentally activated always open with .n64 for Adobe

    I recently downloaded an emulator and when I was downloading some N64 roms I clicked always open with Adobe when I was trying to put for my emulator. Now my files .n64 save as pdf files and I can't change the file back extensions. I'm at a loss and s

  • SVG memory leak

    First the necessary info: Dev environment:-Eclipse 3.4.1 + Plugin JDE 1.0.0.67-Components packs: 4.2.1.17, 4.3.0.16, 4.5.0.16, 4.6.0.19, 4.7.0.46, 5.0.0.14-J' I alternate between 4.6 and 5.0 for the most... to reach 5.0, 4.6 for compatibility (and th