Dynamic To, Dynamic FromName, Dynamic FromEmail

xp452 14 Sep, 2010
Hello everyone and first of all I'd like to say THANK YOU for the ChronoForms!

I have a problem with the Dynamic forms. So here is the code of my form:


<div class="form_item">
  <div class="form_element cf_heading">
    <h2 class="cf_text">Обратная связь</h2>
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_text"> <span class="cf_text">Пожалуйста, заполните все обязательные поля формы и нажмите кнопку «Отправить».</span> </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_dropdown">
    <label class="cf_label" style="width: 150px;">Кому (получатель)*:</label>
    <select class="cf_inputbox validate-selection" id="select_8" size="1" title=""  name="mailto">
    <option value="">Выберите получателя</option>
<option value="1@xxxxxxx.net">Директор</option>
<option value="2@xxxxxxx.net">Коммерческий отдел</option>
<option value="3@xxxxxxx.net">Главный инженер</option>
<option value="4@xxxxxxx.net">Проектирование</option>
<option value="5@xxxxxxx.net">Вентиляция и кондиционирование</option>
<option value="6@xxxxxxx.net">Отопление и водоснабжение</option>
<option value="7@xxxxxxx.net">Служба управления персоналом</option>
<option value="8@xxxxxxx.net">Тест</option>

    </select>
    
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Ваше имя*:</label>
    <input class="cf_inputbox required" maxlength="150" size="30" title="" id="text_2" name="fromname" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Ваш email*:</label>
    <input class="cf_inputbox required validate-email" maxlength="150" size="30" title="" id="text_3" name="fromemail" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Ваш телефон:</label>
    <input class="cf_inputbox" maxlength="150" size="30" title="" id="text_7" name="fromphone" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textarea">
    <label class="cf_label" style="width: 150px;">Ваше сообщение*:</label>
    <textarea class="cf_inputbox required" rows="10" id="text_5" title="" cols="30" name="message"></textarea>
    
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_button">
    <input value="Отправить" name="button_6" type="submit" />
  </div>
  <div class="cfclear"> </div>
</div>



Here is the Email template:


Dynamic To: {mailto}
Subject: Message from user
Dynamic Fromname: {fromname}
Dynamic Fromemail: {fromemail}


The problem is that {fromemail} and {fromname} doesn't getting in the phpmailer. Here is the dummy version of email:


E-mail message

From: []
To:
CC:
BCC:
Subject: Сообщение от пользователя сайта xxxxxxx.net
Сообщение от пользователя сайта xxxxxxx.net
Отправитель: MyName
Email*: 123@mail.ru
Телефон: 1111111111
Сообщение*: 11111111

Submitted by 77.105.184.46

Files: 


As you can see, fields To and From are clear. Nothing goes from my email form to this fields.
Here is the debugger message:


   1. Form passed first SPAM check OK
   2. Form passed the submissions limit (if enabled) OK
   3. Form passed the Image verification (if enabled) OK
   4. Form passed the server side validation (if enabled) OK
   5. $_POST Array: Array ( [mailto] => realatc@gmail.com [fromname] => MyName [fromemail] => 123@mail.ru [fromphone] => 1111111111 [message] => 11111111 [button_6] => Отправить [becc19bbcf9641f5e181724af3c0b9a9] => 1 [1cf1] => 21e2458ffd5626ba83096f95c66782be [chronoformname] => feedback )
   6. $_FILES Array: Array ( )
   7. Form passed the plugins step (if enabled) OK
   8. An email has been SENT successfully from (Пользователь сайта)mail@xxxxxxx.net to mail@xxxxxxx.net
   9. An email has been SENT successfully from () to
  10. Debug End


The question is How to send data from the form to the fields To and Name using Dynamic fields?
GreyHead 14 Sep, 2010
Hi xp452,

Please use just the input name e.g. email in the Dynamic Boxes with no brackets or quotes.

Bob

PS I strongly recommend that you do *not* use the Dynamic From Email element in your Email Setups. Using this often results in your emails being marked as spam and dropped into a spam filter. Instead use the static From Email with an address that matches the site domain name and use Dynamic ReplyTo Email for the user email. The result is the same but with a much better chance of good delivery.
xp452 14 Sep, 2010

Hi xp452,

Please use just the input name e.g. email in the Dynamic Boxes with no brackets or quotes.

Bob


Thank you very much, Bob!
May i buy a beer for you?
;)
This topic is locked and no more replies can be posted.