How to format an email confirmation in DWCS3?

Hello

I'm building a site in which the user must enter personal information, download this information in a MySQL database, and in the end send a conformation of the user.

So far things work correctly, but I still can't make the system to send the confirmation email in HTML format. My code is as follows:

<? PHP

$id = $row_rsMision2010 ['ID'];

$Nombre = $row_rsMision2010 ['number'];

$Apellido = $row_rsMision2010 ["Apellido1"];

$Agencia = $row_rsMision2010 ["Agencia"];

$Direccion = $row_rsMision2010 ["address"];

$Colonia = $row_rsMision2010 ["Colonia"];

$Ciudad = $row_rsMision2010 ["City"];

$Estado = $row_rsMision2010 ["State"].

$CP = $row_rsMision2010 ["CP"];

$Lada = $row_rsMision2010 ["Lada"];

$Telefono = $row_rsMision2010 ["phone"];

$Puesto = $row_rsMision2010 ["Puesto"];

$Reserva = $row_rsMision2010 ["Reserva"];

$to = $row_rsMision2010 ["mail"];

$subject = "Reservacion Mision 2010 Las Vegas Evolution Registro Codigo";

$headers = "from: Tourism Office of Las Vegas para Mexico y Lacre.

"MIME-Version: 1.0rn.

"Content-type: text/html;" Charset = UTF - 8 ";"

$body = "< html > < body >.

"< h2 > Su registro ha sido exitosamente received in our system." «< h2 / >»

' < p > Sus datos son following registers: < /p >.

' < p > number: "$Nombre" < /p >.

' < p > Apellidos: "$Apellido" < /p >.

' Agencia < p >: < /p > "$Agencia'".

' < p > address: '$Dirección' < /p >.

' < p > Colonia: "$Colonia" < /p >.

' < p > Ciudad: < /p > "$Ciudad'".

' Estado < p >: < /p > "$Estado'".

' < p > P.C.: '$CP' < /p >.

' < p > phone: '$Lada' - '$Telefono' < /p >.

"Puesto < p >: < /p >" $Puesto' ".

' < p > Su Código unico e intransferible of admission are: "$Reserva" < /p >.

' < p > so album imprimirlo y junto con su biodiversity oficial mostrarlo knew llegada al evento! < /p >.

"< body / > < / html >"

mail ($ $subject, $body, $headers);

? >

As far as I understand it, I could be hitting something, or have a syntax error when you set the variable $body.

Could someone help me out and check out what I'm doing wrong?

Thank you for your support in advance.

Each header must appear on a separate line. You have simply concatenated them as a single string.

$headers = "De: Oficina de Turismo de Las Vegas para Mexico y Centroamerica" .
 "MIME-Version: 1.0rn" .
 "Content-type: text/html; charset=UTF-8";

This should be:

$headers = "From: Oficina de Turismo de Las Vegas para Mexico y Centroamerica\r\n" .
 "MIME-Version: 1.0\r\n" .
 "Content-type: text/html; charset=UTF-8";

Tags: Dreamweaver

Similar Questions

  • How to format an email notification

    Hi guys

    I created a simple form and I want to change the format of the notification by e-mail of the user. For the time being is to show:

    Dear xxx,

    Thank you for reaching out to us through our Web site; as soon as we can, we will be in touch.

    Summary of submitting a web form:

    Where can I find this email template? There is nothing in the e-mails from the system?

    Thank you

    Micha

    Hey there,

    In the web form in the admin - top buttom "autoresponder" is what your after.

  • HOW CAN I TRANSFER EMAILS E NOW WE HAVE 'OUTLOOK' ALSO GET AN ADDRESS FROM MY CONTACT WITHOUT NEUTROPHILIA ALL AND DELETE WHAT I DON, T WANT TO. IF NOT CAN I GO BACK TO THE OLD FORMAT

    "" HOW DO I SEND EMAILS USING THE NEW FORMAT "LOOK."

    "" HOW DO I SEND EMAILS USING THE NEW FORMAT "LOOK."

    Open the message, click "Actions".

    ALSO TO GET AN ADDRESS FROM MY CONTACT WITHOUT NEUTROPHILIA ALL AND DELETE WHAT I DON, T WANT TO

    I don't understand what you mean by that. Please give us more accurate and detailed information.

    If you click the "gear" in the bar of one of the options menu is to go back to Hotmail.

  • I just bought CC for photography, but I have received no email confirmation and show anything in my order, how long it usually takes?

    Hi, I just bought CC for photography but I have received no email confirmation and nothing shows in my orders after payment Page loading for more than 30 minutes, and the amount was already deducted from my bank account, so I reloaded the page and I checked my orders but still nothing appears

    any idea on this issue?

    Thank you all

    The order number is 9864447459. She is always treated as the authorized payment but has yet to be resolved.

    Concerning

    Baudier

  • Windows 7 keeps restarting; How to format my PC?

    * Original title: windows 7 ultimate

    Hello guys! I was a bit on the computer, but to format PC is difficult for me to learn... my windows7 always restarts. I want to learn how to format the PC. but sad to say that I have no software to install windows7 ultimate, MS and others... can anyone help me find these software to download? and all the software necessary for installation... THANK YOU AND GODBLESS US ALL!

    Step 1: How to download official Windows 10 ISO files

    Step 2: how: perform a customized Windows installation

    Step 3:

    Recover personal files from the Windows.old folder, such as pictures of Documents and Windows Live Mail emails in Windows 10

    After you have installed Windows 10

  • How to block unwanted emails on iphone5s

    I want to know how to block unwanted emails on an iPhone.

    There is no filtering in the messaging application native iOS. You need to filter your mail at the level of the server if possible.

  • How to get different email addresses all in the same folder

    I keep asking, but he answered before and my Inbox (I guess as local folders) used to accept emails from my two different accounts. Now, they come in two different boxes which is annoying. How do I get emails from my two email addresses to arrive in the same Inbox, have the same sent box, etc.. ?

    I assume you mean the e-mail pop accounts
    Only POP email accounts can use a global Inbox.

    Quit Thunderbird to access the server mode "offline."
    Click the blue screen two located lower left status bar.
    It will be two black screen offline icon.

    All files out of all email pop email accounts and put them in folders in the "local folders".
    Delete the emails you want.
    Empty Junk and deleted mail folders (for example: right click on the junk mail folder - chute)
    Right-click on each folder and select 'Compact' or ' file > Compact folders

    When pop email account files are completely empty and compact
    "Tools" > "Account settings" > "Server settings" for the pop email account
    Click on the button "Advanced".
    Select: "Inbox for the account of different" and "global Inbox (local folders).
    Click on 'OK '.

    Now, you must check all of the following points to ensure they point to the correct location. Choose so 'Copies and files '.
    "Tools" > "Account settings" > "Copies & folders" for pop e-mail account
    Look at the records of destination for 'Envoy', 'Projects' and 'Templates '.
    Make sure that the messages of each will be stored in your "Local folders" folder locations

    then check Junk - click on "Parameters of Junk" check that the folder selected for junk e-mail messages is the one you want to use in the "local folders".

    Do the same for other POP email accounts

    Click OK to save the changes to account settings.

    Do not go back online - you don't need to download anything.
    Restart Thunderbird immediately.

    When it restarts, it should restart in mode online or maybe ask you.
    If you restart offline, it is not important, just trade back after reboot:
    Click on the screen icon black two located lower left status bar.
    It will be two icon blue screen when it is online.

    This should remove the e-mail account in the left pane of the folder and redirect the mail on behalf of local folders.

  • Disk utility seems different in El Capitan - how to format a Seagate HDD to my MacBookPro which now operates under El Capitan?

    Disk utility seems different in El Capitan - how to format a Seagate HDD to my MacBookPro which now operates under El Capitan?

    There is a sharing on the top button. Select the Seagate to reformat.

  • How to format an external hard drive in el capitan

    How to format an external hard drive in el capitan?

    I have a new iMac and bought a WD 2 TB hard drive. The manual says that I have to reformat the hard disk to use it with OS X.

    I opened the disk utility program, but there is no button to format the hard drive.

    How can I manage to reformat the hard drive?

    Select the external drive, and then click clear. Format Mac OS Extended journaled. If you want the drive to be bootable partition with the Guid partition scheme.

  • Anyone know how I can put a confirmation of reading on my outlook for mac 2011?

    Anyone know how I can put a confirmation of reading on my outlook for mac 2011?

    Right click on the message, and then select Mark > as unread on the shortcut menu.

  • How can I print email to android Samsung Galaxy 3?

    I have a Samsung galaxy 3 and a wireless HP officejet 6600 printer. EPrint app is loaded on my phone. I can print from the web, photos and documents. I can't print and send the content. Does anyone know how to print an email from android phone?

    Thank you.

    Great idea thx! And thx for taking the time to help me.

  • How can I send emails with outlook express from firefox

    How can I send emails with outlook express from firefox

    See change the program used to open e-mail links for how to configure Firefox to use Outlook Express.

  • How to format the HDD on my Satellite C855 1GQ

    I have a Toshiba Satellite C855 1GQ.
    How to format my HARD drive for your help thanks.

    Hello

    I don't know what you want to do exactly. HARD disk can be formatted before installing original recovery image that you got with your machine but also if you want to install the version of the OS.

    If you created the recovery disc you can format the HARD drive by using one of the available options (erase the hard drive) - http://aps2.toshiba-tro.de/kb0/HTD1303440001R02.htm
    In the case you want to use the installation of Microsoft at the beginning of the installation disc disc HARD current will be shown. You have the option to delete existing partitions, create new partitions and install the Windows operating system.

    Please let us know what you want to do exactly.

  • How to format Mac Pro 12-Core OS Original 2012?

    My friend has a Mac Pro 12-Core 2012 is the model MD771LL/A. I know it's 4 years but how I format it to its original operating system?

    The original was v10.8 for Mac OS X Lion of the mountains.

    Do I need a product key? To reformat?

    Click here and follow the instructions. No product or other authentication key is needed during the restoration of the original OS.

    (138791)

  • Flash DRIVE with U3 software-> how to format?

    Hello
    I use a Toshiba USB key, including the U3 software. This key is very slow.
    I can't remove the U3 sotfware. Could you explain how to format this key or remove U3 software
    Concerning

    Hello

    That would you say, do a right-click on the USB and choose the format.

    Will be before doing this check in the task manager what background process belongs to the U3 software and disable this process.
    Then try formatting the external device

Maybe you are looking for

  • Could not find Adobe Shockwave Download

    The add-on integration FF 26 said shockwave must be upgraded. By clicking on 'update now' sending me to the Adobe shockwave download page that is labeled STEP 1 out of 3. I click on 'Install now' and are sent to a generic Adobe page which is obviousl

  • Need parts for Satellite U400-14 b

    Anyone know where I can get a new screen - data cable from motherboard?I need to fix a laptop of parents and this is the part I need, it burned.

  • iMessage works do not correctly on mac and macbook

    Hello! Randomly, IMessage decided to stop sending messages to my macbook. I get messages on my phone, but every time I try to send whatever it says "undeliverable message". I spent under preferences and checked to send messages from my account ID app

  • Stuck on Windows Resume Loader quick screen with USB keyboard, so I can't answer

    Windows Vista has not recovered to sleep, so I turned off computer and rebooted.  Now, I get the message Windows resume Loader "The last attempt to resume the system from its previous location failed. Attempt to retake?  Continue with the system summ

  • BlackBerry smartphones can not connect BlackBerry Pearl 9105 for PC

    Hello world I have the following problem: After using my BB Pearl 9105 for almost 3 years, I can not connect to PC more (I still menu with choice of 3 options on my smartphone when I connect, but when I click on that option "usb" or "charge", the men