We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5532
    • 251 Posts
    Hi There,

    I have an eform with two email addresses in it but it will only ever send to the first address.

    Here is the call on the page:

    [!eForm? &formid=`contactForm` &to=`[email protected],[email protected]` &tpl=`contactForm` &report=`contactFormReport` &thankyou=`contactFormThanks` &mailselector=`department` &subject=`Website enquiry`!]


    Not sure where I’m going wrong but any help or suggestions would be most welcome - this is MODx 1.0.2 on eForm 1.4.4.6

    Cheers
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      What kind of server environment are you on? It’s possible that security settings on your mail server won’t allow multiple addresses. Can it send to the second address as a CC or a BCC address? Are you sure that the second address is correct? What happens if you switch them around?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 5532
        • 251 Posts
        Thanks heaps for the reply.

        Yes, I’ve swapped them around and it seems to only go to the first address in the list. Good idea re the host, I’ll talk to them and see if they have a restriction - and will look into CC and BCC as well.

        Cheers

        Ben
          • 5532
          • 251 Posts
          I’ve talked to the host and they say they don’t have any restrictions.

          Curiously, using &cc=`[email protected]` causes an error in MODx - something about wrong header information for the web server.

          Anyway &bcc=`[email protected]` worked.

          Thanks for the suggestions.