CFMAIL Using Multiple Addresses

I'm running a small application as a listserve.  Database is set with email addresses.  But when I send mail, the database gets querried and returns all the addresses without comma deliniation.  In other words, it throws an error saying, "The value of the attribute to, which is currently "[email protected] [email protected] am,", is invalid. It appears that it's collecting the addresses and placing them in the tag but they're not formatted right.  Right?  I mean if I can get it to place a comma after each address, then is should work properly if my thinking is right.  Here's the code I'm using:
<cfquery datasource="#DSN#" name="GetSubscribers">
SELECT *
FROM Subscribers
WHERE List#FORM.MAILING_LIST# = yes
</cfquery>
<cfquery datasource="#DSN#" name="GetList">
SELECT *
FROM Email_Lists
WHERE ID = #FORM.MAILING_LIST#
</cfquery>
<cfmail from="#FORM.FROM#" query="GetSubscribers" type="html" to="#EMAIL#" subject="#form.subject#">
#FORM.Contents#
<p>===================================================
<br><b>#Title#</b>
<br>Mailing List: <b>#GetList.Email_List#</b>
</cfmail>
So, the question is...how do I modify this code to get the addresses to return comma delineated?

Hmmm.  OK, well I was messing and messing around with this and the answer is the Select statement.
Turns out that if I change the * to Email, it works.
Go figure!
Now if I only knew why...

Similar Messages

  • How do I use multiple addresses at one time?

    Shouldn't the Adobe server page that allows for the entry of a recipients address tell users how to add another address?  Do we separate them with semicolons? Commas?  Or is it even possible to use multiple addresses?

    Yes, Adobe Send.
    Unfortunately, it is NOT spelled out on the page where you enter email addresses of recipients, nor is it revealed if you click on the question mark box by email address.
    Frank
    =========================
    Frank Schmalleger, Ph.D.
    Distinguished Professor Emeritus
    The University of North Carolina
    Website: www.schmalleger.com
    Amazon Author Page: http://tinyurl.com/78nly4s
    Mailing Address:
    Ste 203-332
    4300 S. U.S. Hwy 1
    Jupiter, FL 33477
    Ph. 561.225.1760

  • How to use multiple addresses for a global vendor

    Hi experts.
    scnerios is.company has different plants in different countires.they have centrally agreed contract with vendor.now each plant create p,o is in different country how can we use that vendors local addresses in p.o because in vendor master we can define one addres at a time.so if that adrees is in other country.and plant creating p,o is in different how can select the local address of that vendor.
    if option is partner function then how to use it.all adressess witl  be odering address of that vendor.his offices is alll the counties.
    thanks

    IQBAL,
    You can maintain multiple addresses for the same vendor using international addresses.
    First, you have to Activate International Address Versions for each country/language via config at
    IMG: Flexible Real Estate Management (RE-FX) > Address Management > International Settings > Activate International Address Versions (You can do this even if you are not using Real Estate Management
    Then, in the vendor master, address screen, select the "International Verion" button, select the address version and maintain your address.
    If you have any programs that need to display or print these addresses, you will have to specifiy the address version to display/print. by default, the version (Field = NATION) is Blank.
    I hope this helps.

  • Using multiple e-mail addresses from cards in group listings

    I have set up a group to send an e-mail to a bunch of people. Many of the recipients have multiple e-mail addresses. I know how to choose which of the contacts addresses to use, in the "edit distribution list", however I can not figure out how to use multiple addresses from a contacts card. This seems like it would be a pretty importannt function
    Anybody know how to do this.
      Mac OS X (10.3.9)  

    If a Group member has multiple email addresses and when addressing a message to the Group you want to send the message to all email addresses for that member, that member must be available in the Group for each email address that you want to include.
    If a member has 3 email addresses and you want to include all 3 addresses when addressing a message to the Group, that member must be available 3 times in the Group and this can be done via copy and past for the member within the Group.
    After doing so, use the Edit Distribution list selecting a different email address for each copy of that member.

  • Sending email to multiple address using Utl_Smtp

    Hi,
    I want to send email to multiple address using the Utl_Smtp feature.
    When I am sending email to one email address in the To:Field it works fine.However, when I send
    to multiple address I am getting the below error.I am using a table(Email_test) to store all email id.
    Error report:
    ORA-29279: SMTP permanent error: 501 5.1.3 Invalid address
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 240
    ORA-06512: at line 48
    29279. 00000 - "SMTP permanent error: %s"
    *Cause:    A SMTP permanent error occurred.
    *Action:   Correct the error and retry the SMTP operation.
    I am trying two options both ways I am getting error
    Option 1:
    Selecting two email id indivually in the select query as below
    select email into v_Recipient1 from Email_test where Key_name='U1';
    select email into v_Recipient2 from Email_test where Key_name='U2';
    v_Recipient := v_Recipient1||';'||v_Recipient2;
    Option 2:
    Is there a way to use option
    select email into v_Recipient1 from Email_test where Key_name='U4';
    ===========================================================
    Create table Script
    ===========================================================
    create table Email_test (Email varchar2(100),Key_name varchar2(10));
    insert into Email_test values ('[email protected]','U1');
    insert into Email_test values ('[email protected]','U2');
    insert into Email_test values ('[email protected]','U3')
    insert into Email_test values ('[email protected];[email protected];[email protected]','U4');
    select * from Email_test
    [email protected]                         U1
    [email protected]                         U2
    [email protected]                         U3
    [email protected];[email protected];[email protected]     U4
    select * from Email_test where Key_name in ('U1','U2','U3')
    [email protected]     U1
    [email protected]     U2
    [email protected]     U3
    select * from Email_test where Key_name='U4'
    [email protected];[email protected];[email protected]
    =======================================================
    PL/SQL Block
    ===========================================================
    declare
    v_From VARCHAR2(80) := '[email protected]';
    v_cc VARCHAR2(80);
    v_Recipient VARCHAR2(80) ;
    v_Recipient1 VARCHAR2(80) ;
    v_Recipient2 VARCHAR2(80) ;
    v_Subject VARCHAR2(80);
    v_Mail_Host VARCHAR2(50);
    v_Mail_Conn utl_smtp.Connection;
    crlf VARCHAR2(2) := chr(13)||chr(10);
    begin
    --Mail Host name
    select VALUE into v_Mail_Host from Server_info where server_name = 'SMTPServer';
    select email into v_Recipient1 from Email_test where Key_name='U1';
    select email into v_Recipient2 from Email_test where Key_name='U2';
    v_Recipient := v_Recipient1||';'||v_Recipient2;
    --for CC
    select email into v_cc from Email_test where Key_name='U3';
    v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
    utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
    utl_smtp.Mail(v_Mail_Conn, v_From);
    utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
    utl_smtp.Rcpt(v_Mail_Conn, v_cc); -- To CC recepient
    utl_smtp.Rcpt(v_Mail_Conn, v_BCC); To BCC recepient
    utl_smtp.Data(v_Mail_Conn,
    'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
    'From: ' || v_From || crlf ||
    'Subject: '|| v_Subject || crlf ||
    'To: ' || v_Recipient || crlf ||
    'Cc: ' || v_cc || crlf ||
    'Content-Type: text/html;' ||crlf ||
    --'Hello this is a test email');
    crlf || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf );
    utl_smtp.Quit(v_mail_conn);
    end;
    Any suggestion how to approach this issue.
    Thank you

    Simple Mail Transfer Protocol RFC 5321 specifications.
          RCPT TO:<forward-path> [ SP <rcpt-parameters> ] <CRLF>
       The first or only argument to this command includes a forward-path
       (normally a mailbox and domain, always surrounded by "&gt;" and "&lt;"
       brackets) identifying one recipient.In other words, you can only define a SINGLE mailbox address at a time. Multiple addresses requires multiple repeats of this command verb, once per maibox.
    Do not confuse this and the To: tag line in the Mime header that contains a comma delimited list of recipients. That tag line can contain anything - it is not parsed, not checked, and not verified as matching the actual recipient mailboxes as specified via the RCPT TO verb.

  • Can i create additional apple id's using the same email address for using multiple products with iCloud?

    can i create additional apple id's using the same email address for using multiple products with iCloud?

    Hi Anne,
    I'm pretty sure different eMail addies are needed for different Apple IDs.

  • How to print multiple addresses on one sheet of avery labs using Pages?

    How do I print mulitple addresses on one sheet of avery labels?
    I used Numbers to make a database.
    I used Pages to use the Avery label template.
    I formatted the labels for the database but it shows my first sheet of labels as my first addressee and my second sheet as the second addressee.  I want multiple addresses on one sheet of labels!!

    What version of Photoshop do you have? Is it the full version or elements? What OS do you have and it's version?

  • PO to supplier using external send option email (to multiple addresses)

    Hello All,
    We have activated PO external send option for our client but they want that PO should be sent to more than one ID of the supplier and it seems that is not possible by maintaining multiple addresses in Vendor Master's Address view as system only picks one having indicator ticked, also system does not allow to tick it for more than one address. Please let me know if it is possible using standard function to send PO email to more than one address.
    I need to know if there is any standard way of doing this w/o using any development or ABAP work.
    Also has anybody tried using disctribution list SO15 if it is possible?
    Please help we are at Go live.
    Regards
    Anjan
    Edited by: Anjan Dubey on Aug 12, 2009 10:28 AM

    Hi,
    From my opinion, it's impossible of the standard function in SAP system, so:
    Firstly you need to confirm with your buyers, whether they really require to send the information to multiple addresses, maybe they can send the information to one contact person on vendor side, then the contact person can forward the email to other relevant people;
    If have to do it, you need to develope an ABAP background job to do it!
    Hope you can solve the problem!
    Good luck
    Tao

  • Multiple address for single vendor using business partner

    Hello folks,
              I have a issue,it's all about picking the right address in the payment posting.The Vendors have more than 7 addresses depending on the situation.Vendor Master(XK01) can be given 2 address and we are using Business Partner(BP) for storing other addresses.We are able to link the Vendor Master to BP from T-Code FLBPC1.Now when there is payment Posting it has to pick the address from BP if required.It is possible using MM module But we dont have MM for this.Plz suggest me.Thanks in advance.
    Cheers,
    Kumar

    Hi Sushil,
    The customers and vendors can only have a single address, but the Business partner can have multiple address.
    You can set up a synchronization from business partner -> customer/ vendor such that all the common data is synchronised between these objects. The standard address of the BP is copied into the address of the customer or vendor.
    You can set up this sync using
    Transaction SPRO -> SAP Reference IMG-> Cross-Application Components ->Master Data Synchronization-> Customer/Vendor Integration
    Do go through the doucmentaion provided in the path too, it explains the functionality well.
    Customers/vendors donot have the capacity to maintain multiple addresses.
    Hope this helps you.
    Regards,
    Rishu.

  • Can you use multiple email addresses on the owa app?

    Can you use multiple email addresses on the Microsoft OWA App?

    You can do it but there is a delay from the bluetooth speaker.  You'll need an iphone or ipad using the Apple app "Control", airplay setup, bluetooth speaker, and an Apple laptop or desktop. 
    I used my laptop to connect to my bluetooth speaker so that sound streams to my bluetooth device. Then, on my iphone I opened Control and connect the music to my airplay and my laptop at the same time.  The music goes to your airplay speaker, and then to my laptop which then blue tooths it to my speaker.  But, as I said the bluetooth takes an extra step to stream it and so the music is not in sync.  Its like a second and a half delay....

  • E4200 v2 - Uses multiple MAC addresses for the same device

    This unit seems pretty good at first but on looking at the Web interface I noticed that it was using multiple mac addresses for the same device and showing devices on the lan on the Wireless side and other odd things.
    After a week of running it the home server network started to get erratic, it would seem to all point to dns and dhcp issues in the router.
    Seems the V1 had the same issues that they did not fix on this.
    The Cisco connect software shows 5 devices the Web based utility shows 3??.
    Its pretty bad that they charge nearly $200 and cannot be bothered to finish the unit or address the issues that were in V1.

    I am afraid I didn't get the clear picture of the issue mentioned in the post. Could you please elaborate a little bit? If you connect a device/computer wired and then later you connect it wirelessly. It is obvious that you would get to see two different MAC addresses for the same device, one for the LAN adaptor and other one for WLAN adaptor. If that is what you are referring to?
    Secondly, may I  know, what issues did you face with DNS and DHCP in the router? Is it not able to resolve the DNS or something else or DHCP is not sending IP address to the clients?

  • Is there some way to add multiple addresses to an email I am sending that doesn't close the contact list after I click on an address?  This necessitates constantly going back to click the + sign to add each address separately.

    Is there some way to add multiple addresses to an email I am sending that doesn't close the contact list after I click on an address?  This necessitates constantly going back to click the + sign to add each address separately.  Is there some way I can open the contact list, click on all of the individual addresses to which I want to send the email without the list closing between each address entry, and have all of my address entries be listed to the email at one time?  Something like it works in Gmail.  I do not want to use set lists, I want to enter different addresses each time I send an email.  And I am a very slow typist, so I don't want to type the first few letters of each recipient's name.  It is much faster for me to just click on the e-mail addresses in the list as a group.  It doesn't make any sense to me to have to reopen the contact list for each address, when it should be so easy to click on all of the addresses I want at one time and then click once to add them all to the email as a group.  If there is a solution to this, please tell me.  Thanks.

    Vatlily,
    Try this:
    1. Select Mail>File>New Message.
    2. Select Mail>Window>Address Panel.
    3. Use (command+click) on the desired addressees in the Address Panel to create the list.
    4. Click "To:" on the top left of the Address Panel.
    The group that you selected will be added to the "To" field in your New Message.

  • I have an Apple ID with a single  e mail address. I want to set multiple addresses in the same ID. Can I? If so how?

    I have an Apple ID with a single  e mail address. I want to set multiple addresses in the same ID. Can I? If so how?

    Howdy there johnzcarp,
    As I understand it you want to have more than 1 email address under your Apple ID. You can have what are called Alternate Email addresses associated with your Apple ID and this article will help you get those setup:
    Manage your Apple ID primary, rescue, alternate, and notification email addresses
    Alternate email address
    You can add one or more alternate email addresses for use with Apple services such as Game Center, FaceTime, Find My Friends, iMessage, and OS X notifications.
    Go to My Apple ID (appleid.apple.com).
    Select “Manage your Apple ID” and sign in.
    Add an alternate address:
    Select Add Email Address, then enter your alternate address. Apple will send a verification email to that address. Didn't receive the email?
    Follow the instructions in the email to verify the address.
    Edit an alternate address:
    Select Edit next to the address, then enter the new address. Apple will send a verification email to that address. Didn't receive the email?
    Follow the instructions in the email to verify the address.
    Delete an alternate address: Select Delete next to the address.
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • How can I send to multiple address in one email?

    In Outlook, I can send the email to multiple addresses by separating the emails with a semicolon. How can I do this using utl_mail?
    Thanks!

    Calling utl_smtp.rcpt multiple times.
    [read more|http://download.oracle.com/docs/cd/A91202_01/901_doc/appdev.901/a89852/utl_smt9.htm#1000815]
    Example:
    DECLARE
        mailhost    VARCHAR2(64) := 'mailhost.fictional-domain.com';
        sender      VARCHAR2(64) := '[email protected]';
        recipient1   VARCHAR2(64) := '[email protected]';
        recipient2   VARCHAR2(64) := '[email protected]';
        recipient3   VARCHAR2(64) := '[email protected]';
        mail_conn  utl_smtp.connection;
    BEGIN
        mail_conn := utl_smtp.open_connection(mailhost, 25);
        utl_smtp.helo(mail_conn, mailhost);
        utl_smtp.mail(mail_conn, sender);
        utl_smtp.rcpt(mail_conn, recipient1);
        utl_smtp.rcpt(mail_conn, recipient2);
        utl_smtp.rcpt(mail_conn, recipient3);
        utl_smtp.open_data(mail_conn);
        utl_smtp.write_data(mail_conn, 'This is a test message.');
        utl_smtp.close_data(mail_conn);
        utl_smtp.quit(mail_conn);
    END;
    /Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com]
    Edited by: Massimo Ruocchio on Dec 18, 2009 9:49 PM
    Added example

  • How to use multiple xmlforest() function within xmlagg() function

    I need to create following XML structure by reading multiple tables from DB .
    The tables are relational and joined by keys.
    <Invoice>
    <CaseOrdrId>0000022359</CaseOrdrId>
    <Id>100065117</Id>
    <Prescription>
    <CaseOrdrItmId>0000005684</CaseOrdrItmId>
    <RxId>1104900686</RxId>
    <Prescriber>
         <CasePartyIdDEA>0000000000</CasePartyIdDEA>
         <CasePartyIdNPI>0000000000</CasePartyIdNPI>
         <CasePartyIdSLic>0000000000</CasePartyIdSLic>
         </Prescriber>
         <PatInfo>
              <CasePartyId>0000000000</CasePartyId>
              </PatInfo>
    </Prescription>
    </Invoice>
    <Invoice>
    <Invoice>
    <Invoice>
    <Invoice>
    <Invoice> tag can repeat 5times , So,I am using xmlagg().
    To create the tree structure within <Invoice> I am using multiple xmlforest().
    But getting error : SQL Error: ORA-06553: PLS-306: wrong number or types of arguments in call to 'SYS_IXMLAGG' . code added today marked in yellow.
    Any help on this would be really helpful.

    Hi , I could fix the previous issue with xmlagg().
    My query is as follows :
    select
    xmlelement( "Response", xmlforest( b.StatusCode as "StatusCode", b.StatusMessage as "StatusMessage",
    b.ServiceAction as "ServiceAction",
    select
    xmlforest( a.id as "Id", a.ExternalId as "ExternalId", a.Source as "Source", a.UserID as "UserID", xmlforest(b.id as
    "Id")"Note", xmlforest(
    select
    Xmlforest(P.Case_Party_Id As "CasePartyId",Xmlelement("CaseGeoAddrId",S.Address_Id )as "Address"
    from
    v44139.party p,
    v44139.patient_address s
    where
    p.case_party_id = s.case_party_id
    and p.party_id_type_cde = 'MBR'
    AND s.individual_agn_id = 0
    ) as "Membership")"Group",
    select
    xmlagg(xmlelement("Invoice",xmlelement( "CaseOrdrId",d.case_order_id),
    xmlelement("Id" ,d.invoice_nbr) ,xmlelement("Prescription",
    xmlforest(e.case_order_item_id as "CaseOrdrItmId", e.rx_nbr as "RxId"),
    xmlelement("Prescriber",
    xmlforest(169629 as "CasePartyIdDEA", 169630 as "CasePartyIdNPI",169631
    as "CasePartyIdSLic")),xmlelement("PatInfo",xmlforest(e.case_party_id as "CasePartyId") )) ) )
    --AS ID
    from
    v44139.patient_order d ,
    v44139.order_rx e
    where
    d.case_id = a.id
    and d.case_order_id = e.case_order_id
    as "Invoice"
    from
    select
    '142' as id,
    'CMRT' as source,
    'V44042' as userid,
    'EMG-7788' as externalid ,
    361 as case_party_id
    from
    dual
    a
    "Case") ) as "XML_QUERY"
    from
    select
    200 as statuscode,
    'SUCCESS' as statusmessage,
    '0000000000' as id,
    'Update' serviceaction
    from
    dual
    b;
    ===============================================================================================
    The result is as follows :
    <Response><StatusCode>200</StatusCode><StatusMessage>SUCCESS</StatusMessage><ServiceAction>Update</ServiceAction><Case><Id>142</Id><ExternalId>EMG-7788</ExternalId><Source>CMRT</Source><UserID>V44042</UserID><Note><Id>0000000000</Id></Note><Group><Membership><CasePartyId>382</CasePartyId><Address><CaseGeoAddrId>144</CaseGeoAddrId></Address></Membership></Group_*><Invoice><Invoice><*_CaseOrdrId>202</CaseOrdrId><Id>999999993                                         </Id><Prescription><CaseOrdrItmId>105</CaseOrdrItmId><RxId>1118800008</RxId><Prescriber><CasePartyIdDEA>169629</CasePartyIdDEA><CasePartyIdNPI>169630</CasePartyIdNPI><CasePartyIdSLic>169631</CasePartyIdSLic></Prescriber><PatInfo><CasePartyId>382               </CasePartyId></PatInfo></Prescription></Invoice><Invoice><CaseOrdrId>203</CaseOrdrId><Id>825478795                                         </Id><Prescription><CaseOrdrItmId>106</CaseOrdrItmId><RxId>1118800005</RxId><Prescriber><CasePartyIdDEA>169629</CasePartyIdDEA><CasePartyIdNPI>169630</CasePartyIdNPI><CasePartyIdSLic>169631</CasePartyIdSLic></Prescriber><PatInfo><CasePartyId>382               </CasePartyId></PatInfo></Prescription></Invoice><Invoice><CaseOrdrId>204</CaseOrdrId><Id>999999992                                         </Id><Prescription><CaseOrdrItmId>107</CaseOrdrItmId><RxId>1118800007</RxId><Prescriber><CasePartyIdDEA>169629</CasePartyIdDEA><CasePartyIdNPI>169630</CasePartyIdNPI><CasePartyIdSLic>169631</CasePartyIdSLic></Prescriber><PatInfo><CasePartyId>382               </CasePartyId></PatInfo></Prescription></Invoice><Invoice><CaseOrdrId>205</CaseOrdrId><Id>999999991                                         </Id><Prescription><CaseOrdrItmId>108</CaseOrdrItmId><RxId>1118800006</RxId><Prescriber><CasePartyIdDEA>169629</CasePartyIdDEA><CasePartyIdNPI>169630</CasePartyIdNPI><CasePartyIdSLic>169631</CasePartyIdSLic></Prescriber><PatInfo><CasePartyId>382               </CasePartyId></PatInfo></Prescription></Invoice></Invoice></Case></Response>
    The ISSUE : <Invoice> tag repeating twice in 3 rd line . How to correct this ?

Maybe you are looking for

  • PO & Scheduling Agreement Schedule Lines

    Please help me out with this questions below:- 1. What is the use of Scheduling Agreement Schedule Lines in PO. 2. What is the use of  Reservation/dependent requirements in PO. 3.When does EKET & RSEB table update at the time of Po crration. 4.Where

  • Recent iTunes Videos Won't Play

    Here is an odd one...over the last three months, I've purchased all of the episodes to Eli Stone and loaded them on my iPod (that's a terrific show, by the way). All of the episodes view fine on my MacBook Pro running 10.4.11. The first 10 episodes a

  • Trouble adding LiveSpaces using Page Component Selector...

    Has any one had luck or run into trouble creating an ALUI portlet using the "Page Component Selector" template that comes when you install Pages? When I go to configure the portlet, the dropdown has no trouble listing the LiveSpaces, but I can't get

  • Logic Express crashes at start up!!

    I have a prob with LE at the startup it crashes when checking core audio. any help, please!!

  • Network speed seems slow

    Have Pearl 8130 (ver 4.5) for a month now and with no additional downloading(d/l) of files, ringers, etc. from original configuration. The first couple of weeks, signal and Internet requests were strong and fairly quick. Now from the same location(s)