Email to different addresses

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Email to different addresses

    Hi, I am designing a site for a company with dealers in different countries.
    For each product I have a 'request info' form with name, address, email address
    and country fields. At present the form simly sends the email out to my
    address, but I need it to send to the relevant country dealer. This should be
    automatically chosen by the option the user selects in the 'country' drop-down
    list. How do I go about doing this? Thanks, Ben Kay

    benkayuk Guest

  2. Similar Questions and Discussions

    1. Using CFTHROW to catch invalid email addresses
      I'm working on a helpdesk system that sends notification emails to users and support consultants whenever they updated certain fields in the forms....
    2. collecting email addresses
      hi. I have a preview site up for my flash site that I am still building, but im wondering how to set up the preview so that people can enter their...
    3. What is the best way to send an email to ALL addresses in a dbase?
      I have an access 2002 dbase that contains a contact table. It is about 200 records and grows everyday. How could I send an email to ALL contacts at...
    4. hiding email addresses
      Could you tell me how to avoid having automated programs pick up the email addresses on your website so we avoid receiving so much junkmail? ...
  3. #2

    Default Re: Email to different addresses

    Hi

    for sending the mail from where you are getting the maild id's.

    i think for this you are using some query like "select * from table".
    then if you want to send to the countries which is selected by the user then
    give where condition like this
    where country='#form.country#'

    :cool;

    vkunirs Guest

  4. #3

    Default Re: Email to different addresses

    Not sure I fully follow......is this even something that has to be done with Coldfusion? Or can it be done without server input?

    Ben
    benkayuk Guest

  5. #4

    Default Re: Email to different addresses

    This will be done using Coldfusion.

    U will do something like this:

    fetch the email id using query

    select * from tblName where country = #form.txtCountry#

    Now this queryname.emailaddress in the "to" of cfmail like

    <cfmail to="qryname.Email" from="admin@yourcompany.com" subject="jksdf">
    body of the email
    </cfmail>

    Tom CF Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139