Using php to send contact mail; no mail sent redirect works

I am reteaching myself Dreamweaver after 13 years off.  I do not have any php scripting experience.  I found a tutorial on line and built a php script based on that.  http://www.everlastingsurfacesinc.com/contact.html the script is attahced to the contact.html page I can tell the html page is processing the php because I land on my thank you page but the email never gets sent.  I dont know where my error is.  If there is an easier way I am interested.  I would like to learn how to write this so I can duplicate results again on another site.
<?php
/*subject and email variables */
$emailSubject = 'Interest in Service from Website Contact';
$webMaster = '[email protected]';
/* Gathering Data Variables */
$nameField = $_POST['name'];
$emailField = $_POST['email'];
$projectField = $_POST['project'];
$timeframeField = $_POST['timeframe'];
$howdidyouhearField = $_POST['howdidyouhear'];
$commentsField = $_POST['comments'];
$body = <<<EOD
<br><hr><br>
Email: $email <br>
Name: $name <br>
Project: $project <br>
Time Frame: $timeframe <br>
How did you hear about us: $howdidyouhear <br>
Comments: $comments <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail ($webMaster,$emailSubject,$body,$headers);
/* Results rendered as HTML */
$theResults = <<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Everlasting Surfaces</title>
<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #8cb5ba;
background-repeat: repeat-x;
background-image: url(bg_background_LT.jpg);
</style>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
a:link {
color: #FFFFFF;
text-decoration: none;
a:visited {
text-decoration: none;
color: #FFFFFF;
a:hover {
text-decoration: none;
color: #000000;
a:active {
text-decoration: none;
</style>
</head>
<body>
<div id="container">
  <div id="header">
  <div id="headerphone">925-960-9778</div>
  </div>
  <div id="navbar">
    <div id='cssmenu'>
      <ul>
        <li class='active'><a href='index.html'><span>Home</span></a></li>
        <li><a href='service.html'><span>Service</span></a></li>
        <li class='has-sub'><a href='gallery.html'><span>Gallery</span></a>
          <ul>
            <li><a href='bathrooms.html'><span>Bathroom</span></a></li>
            <li><a href='kitchens.html'><span>Kitchens</span></a></li>
            <li><a href='backsplashes.html'><span>Backsplashes</span></a></li>
            <li><a href='edges.html'><span>Edges</span></a></li>
            <li class='last'><a href='otherareas.html'><span>Other Areas</span></a></li>
          </ul>
        </li>
        <li><a href='contractterms.html'><span>Contract Terms</span></a></li>
        <li><a href='testimonials.html'><span>Testimonials</span></a></li>
        <li class='has-sub'><a href='suppliers.html'><span>Suppliers</span></a>
          <ul>
            <li><a href='hanstone.html'><span>Hanstone Countertops</span></a></li>
            <li><a href='silestone.html'><span>Silestone Countertops</span></a></li>
            <li><a href='caesarstone.html'><span>CeasarStone Countertops</span></a></li>
            <li><a href='icestone.html'><span>IceStone Countertops</span></a></li>
            <li class='last'><a href='vetrazzo.html'><span>Vetrazzo Countertops</span></a></li>
          </ul>
        </li>
        <li class='last'><a href='Contactformsubmit.php'><span>Contact</span></a></li>
      </ul>
    </div>
  </div>
  <!-- InstanceBeginEditable name="maincontent" -->
<div class="container" id="thankyoupage">
  <div id="pageinfo">
    <table width="100%" border="0">
      <tr>
        <th scope="row"><img src="Photos/Kitchens/14052be299f38bdbffff8124ffffd524.jpg" alt="Thank You Photo" name="thankyouimage" width="450" height="675" id="thankyouimage" /></th>
        <td><span class="thankyoutext">Thank you so much for reaching out. <br />
          <br/>
          <span class="thankyoutextbody">Your email contact is now in our email inbox. One of our staff memebers will be in contact with you to discuss your project.</span></span></td>
        </tr>
    </table>
  </div>
</div>
<title>Everlasting Surfaces Inc</title>
<!-- InstanceEndEditable -->
  <div id="footer">
    <div class="footercontactinfo" id="footerdiv1">2245 S. Vasco Road, Ste. A Livermore, CA 94550</div>
    <div class="footernav" id="footerdiv2"><div id='cssmenu'>
<ul>
   <li class='active'><a href='index.html'><span>Home</span></a></li>
   <li><a href='service.html'><span>Service</span></a></li>
   <li><a href='contractterms.html'><span>Contract Terms</span></a></li>
   <li class='last'><a href='Contactformsubmit.php'><span>Contact</span></a></li>
</ul>
</div></div>
  </div>
</div>
</body>
<!-- InstanceEnd --></html>
EOD;
echo "$theResults";
?>

Your php variables do not match the output variables
$nameField = $_POST['name'];
So you need to add 'Field' to everyone of your output variable (marked in red):
$body = <<<EOD
<br><hr><br>
Email: $emailField <br>
Name: $nameField<br>
Project: $projectField <br>
Time Frame: $timeframeField <br>
How did you hear about us: $howdidyouhearField <br>
Comments: $commentsField <br>
EOD;
OR remove 'FIELD' from the initial set of php variables.

Similar Messages

  • Using Safari to send HTML Mail message but Mail keeps dropping images?

    I'd like to use Safari to send html Mail messages, but when I click on File>Mail Contents... Mail opens a new window but my graphics are gone. (I'm creating the html pages using MS Word for the Mac.) I get a flash of the graphics for a second, and then they are replaced by a little blue lego. Any ideas? I've tried all kinds of mail preferences but nothing seems to help.

    Figured it out (at least one way): had to load the image to a server and then add the image as a link only (uncheck "save picture with document" box).

  • Using Gmail in iPhoto and cannot find any of my groups to email.  I have at least seven or eight groups that I email, each containing over 50 addresses. Is there a way to locate my email groups using iPhoto to send out mail in Gmail? Using version 9.5.1

    Using Gmail in iPhoto and cannot find any of my groups to email.  I have at least seven or eight groups that I email, each containing over 50 addresses. Is there a way to locate my email groups using iPhoto to send out mail in Gmail? Using version 9.5.1  (902.17) OS is Mavericks 10.9.1.

    Your question and description is not very clear to me, so hopefully something here will help:
    1. Gmail is a service not an app or a place. So you need to access the service with an app - that can be iPhoto, Mail, Outlook or any other mail client, or even a Web Browser like Safari or Firefox.
    So you can't "go to GMail" as you write, but instead you go to an application set up to use the GMail service.
    2. iPhoto is not a mail client. It's a handy way to email pics to Grandma, but for what you're doing you need to use an app that supports all of the Gmail service. iPhoto doesn't. There is no way around that.
    3. How to send to groups will vary depending on what app you use to access the GMail service. All of these apps can receive photos from iPhoto, either - as in the case of Mail and Outlook, via the Share function - or, in the case of all the rest - via a Media Browser.
    For help sending to Groups using any of these other apps you need to ask omn their respective forums. But the workflow is quite simple:
    Using Mail or Outlook set in the iPhoto Prefereneces:
    1. Select the pic(s) you want to share.
    2. Choose email from the Share function
    3. Make your selections re size etc
    4. The email opens up in Mail or Outlook
    - from there you need to figure out how to use the email client.
    Using any other app:
    1. In the mail app create a new email
    2. Click on the Attach button or link
    3. Use the Media browser to select the pic(s) you want to send
    4. Attach them
    - from there you need to figure out how to use the email client.
    For help accessing your photos in iPhoto see this user tip:
    https://discussions.apple.com/docs/DOC-4491

  • BO4.1 SP2 use Publication to send e-mail

    When i use Publication to send e-mail, aproblem occurred. I want to set the subject of e-mail like   '2014-08-21  XXXXXX',but when i use placeholder(Date Time ) ,the subject of e-mail is 2014-08-21-09-16-21 XXXXXXXX.

    Hi,
    Use %SI_STARTDATE% to display date only.It will work in publication however it is not listed in the default place holders in BO.
    Regards,
    Amit

  • [php+mysql] send e-mail with custom content

    Hi all
    <br />I'm trying to send an e-mail with custom content.
    <br />I've set the MX send e-mail server behaviour so that it sends an html
    <br />template.
    <br />
    <br />no problem here.
    <br />
    <br />The problem arises when I try to put some variables in the template file.
    <br />Transaction variables work as expected and they will be sent by email.
    <br />But I cannot figure out how to include other standard variable.
    <br />I use variables to translate the page on the fly.
    <br />I have an external file containing all translations and I include it on my
    <br />translated page.
    <br />Then I output the translation using the echo command:
    <br />example:
    <br />Here is the content of the include:
    <br /><?<br /?>
    $menu["AZIENDA"]="COMPANY";
    <br />?&gt;
    <br />
    <br />In the translated page I put the related variable in the body:
    <br /><?php echo $menu["AZIENDA"] ?>
    <br />
    <br />But when I put <?php echo $menu["AZIENDA"] ?> in the template file, nothing
    <br />will be output.
    <br />
    <br />What is the right way to do this?
    <br />
    <br />TIA
    <br />
    <br />tony

    Hi,
    look here:
    Re: How to email an attachment with more than 255 characters?
    Andreas

  • Can anyone explain what the other section section in the HDD usage description is for ? I recently used iphoto to send a mail and this "other "section inrease the usage by about 1GB....any ideas why ?

    Can anyone explain what the "other" (yellow colour) section in the HDD usage description is for and what it does.It is under the about this mac section and storage option?
    I recently used iphoto to send mail with photos attached and this "other" section increased by about 1GB. The mail size was around 900KB.....any ideas ?

    Shurig wrote:
    Thanks gor replying,,,this is my first time on this site.
    Any idea why the "other" continues to increase. I have just got got my mac so no new apps installed yet only been using it for mail and web browsing. I tried the iphoto mail last night and noticed the the "other" section had increased by 1GB which I thought was rather larger. Do you know what this setion actually does ?
    Also do you know if it is possible to delete the iphoto emails.
    All of your 'stuff' that is not Music Movies Apps Backups or Photos is in Other, that means all your emails, all your files etc, why don't you just leave well enough alone, this is not windows and doesn't need tinkering with,

  • Using javamail to send automatic mails to an smtp server

    hello every body
    i'm trying to develop an application which will be implemented in a entreprise network (it's a project for my studies).
    this application will be web oriented and will consist on sending automatic mails to persons using the mail server of the entreprise.
    so i don't really know how to act, because i have to test my application by simulating the use of the mail server and i don't know how tu use a mail server for that, neither how to define the sender (because the operation will be automatic by a program), in other terms, i'm trying to send mail in a local network wich is connected to the internet.
    thanks for ur answers

    You can find "simulated" mail servers, good for
    testing, but it's probably not worth the effort.
    Just use your real mail server.
    Best would be to create an email address on your
    local mail server and use that as the From address
    for your automated mails.
    Don't forget to read the JavaMail FAQ.

  • Sending in Mail doesn't work, Entourage does, Why?

    Sending emails in Apple's Mail doesn't work, yet Microsoft Entourage does, Why?
    This is the conversation I've been having with my server tech, and they can't find the reason why I can send mail in Microsoft Entourage no problem, yet Apple Mail receives but not able to send any email what so ever..
    Very frustrating.
    Carl Pepper said:
    2008-05-09 13:16:39 (UTC-7)
    I'm having a heck of a time trying to SEND emails on the SilverSpiritHomeServices.com system.
    I'm using a Mac.
    I can do it in Microsoft Entourage, yet I can't do it in Mac Mail (this is the program I need to be able to use).
    Receiving email it works fine, just sending it only works in Entourage.
    Rackspace said:
    2008-05-09 13:16:39 (UTC-7)
    Thank you for choosing Rackspace!
    This is just a quick note to notify you that we have received your support request. A member of your Fanatical(TM) support team will address your request as soon as possible. Should you need to update this ticket, please log into your myrackspace.com account and click on the Support tab or you may call us anytime at one of the below numbers. We're glad to do what we can to help in any way possible!
    Best Regards,
    Your Fanatical™ Support Team
    Rackspace ™
    Toll Free 800.961.4454
    International 1.210.447.4000
    UK Office +44 (0)20 8734 2700
    Rackspace said:
    2008-05-09 13:38:27 (UTC-7)
    Hello,
    That definitely seems odd. Since it works fine with Entourage, that would indicate the server is working properly. Additionally, I've tested the SMTP server from here (on a Mac) and am able to connect. I do not have a valid user to send email with, but I can try it if you want to provide me with the one you are trying, temporarily.
    As always, if you have any other questions or concerns, please do not hesitate to contact us. Have a great day, and thanks for choosing Rackspace Managed Hosting!
    Scott Wade
    Linux Systems Administrator III
    Rackspace Hosting ™
    Toll Free 800.961.4454
    International 1.210.447.4000
    Carl Pepper said:
    2008-05-09 14:35:36 (UTC-7)
    The settings I have are:
    [email protected]
    mail.SilverSpiritHomeServices.com
    User Name:[email protected]
    Password: XXXXXX
    (SMTP): pop.SilverSpiritHomeServices.com
    Authentication: None
    Use Secure Sockets Layer (SSL) unchecked
    Carl Pepper said:
    2008-05-09 15:00:15 (UTC-7)
    Here is the "cheat sheet" from APPLE.COM:
    "Outgoing mail server settings
    Outgoing server hostname: __________________________
    Such as smtp.sampleserver.com
    Outgoing server port:
    25 [ ] 465 [ ] 587 [ ] Other: ____
    The outgoing mail server supports Secure Sockets Layer (SSL): Yes [ ] No [ ]
    Outgoing server authentication type:
    Password [ ] MD5 [ ] NTLM [ ] Kerberos [ ]
    Outgoing server requires a username and password: Yes [ ] No [ ]
    If yes, username: ___________________ password: _______________________
    Can these settings be used from any Internet connection?: Yes [ ] No [ ]
    If you use your ISP’s own email service (instead of a third-party such as Gmail), sometimes it may not work if you roam to another Internet access point, such as a cafe with wireless Internet. Check with your email provider that the settings they give you will work if you plan to roam."
    Rackspace said:
    2008-05-09 19:26:43 (UTC-7)
    Hello Carl,
    In your report, I notice this:
    Authentication: None
    You need to authenticate before you can send mail so, authentication is a must. To be thorough, I tested both SMTP and POP authentication with the credentials you specified:
    $ perl -MMIME::Base64 -e 'print encode_base64("\000info\@SilverSpiritHomeServices.com\000XXXXXX")'
    AGluZm9AU2lsdmVyU3Bpcml0SG9tZVNlcnZpY2VzLmNvbQBzaWx2ZXIwMA==
    $ telnet mail.SilverSpiritHomeServices.com 25
    Trying 72.3.249.33...
    Connected to SilverSpiritHomeServices.com.
    Escape character is '^]'.
    220 thepepper.com ESMTP
    EHLO RACKSPACE
    250-thepepper.com
    250-AUTH=LOGIN CRAM-MD5 PLAIN
    250-AUTH LOGIN CRAM-MD5 PLAIN
    250-STARTTLS
    250-PIPELINING
    250 8BITMIME
    AUTH PLAIN AGluZm9AU2lsdmVyU3Bpcml0SG9tZVNlcnZpY2VzLmNvbQBzaWx2ZXIwMA==
    235 go ahead
    MAIL FROM [email protected]
    250 ok
    RCPT TO [email protected]
    250 ok
    DATA
    354 go ahead
    Subject: test
    test 123
    250 ok 1210386097 qp 32576
    Now for pop:
    $ nc mail.SilverSpiritHomeServices.com 110
    +OK Hello there. <[email protected]>
    USER [email protected]
    +OK Password required.
    PASS XXXXXX
    +OK logged in.
    All worked in both tests. Please enable authentication and get back to us.
    Best Regards,
    Jared Rodriguez
    Rackspace Support
    Carl Pepper said:
    2008-05-10 15:40:13 (UTC-7)
    What kind of authentication?
    MD5
    NTLM
    GASSPI
    PASSWORD
    Rackspace said:
    2008-05-10 18:02:07 (UTC-7)
    Hello Carl,
    Your server only supports CRAM-MD5 and PLAIN authentication. You will need to use plain text authentication. I have never configured mac mail so I do not know how to configure this, you may want to speak with someone a apple support if you have trouble.
    Best Regards,
    Jared Rodriguez
    Rackspace Support
    Carl Pepper said:
    2008-05-10 18:46:15 (UTC-7)
    Which one is plain text?
    Rackspace said:
    2008-05-10 20:23:43 (UTC-7)
    Hello Carl,
    While I am not sure, you may want to try 'PASSWORD'.
    Best Regards,
    Jared Rodriguez
    Rackspace Support

    I've tried mirroring the settings from Entourage. I will take another look:
    ENTOURAGE
    *Personal Information:*
    Name: Mitch Kring
    Email Address: [email protected]
    *Receiving Mail:*
    Account ID: [email protected]
    POP Server:
    Password: XXXXXX
    [checked] Save password in my Mac OS keychain
    (nothing in the advanced receiving options is checked)
    *Sending Mail:*
    SMTP Server: pop.SilverSpiritHomeServices.com
    (nothing in the advanced receiving options is checked)
    APPLE MAIL
    Incoming Mail Server: mail.SilverSpiritHomeServices.com
    User Name: [email protected]
    Password: XXXXXX
    Outgoing Mail Server (SMTP): pop.SilverSpiritHomeServices.com
    Server Port: 465
    Authentication: Password
    User Name: [email protected]
    Password: XXXXXX
    This is all the info I can find right now..

  • Using PHP to send email via Cool Stack

    I created an HTML form that takes a user's input data and passes it to a PHP file for processing. My problem is the following: when the 2 files (html & php) are put on a test server, the email information comes through to the MS Outlook Inbox within 2 seconds. When the same 2 files are put on a production server, it takes a minimum of 5 minutes to a maximum of 30 minutes for the email information to come through to the MS Outlook Inbox. What do you think the problem could be?
    The test server is configured as follows:
    OS release: Solaris 10 11/06 s10x_u3wos_10 X86
    Load: 0
    Idle: 91%
    Using Cool Stack 1.3 by the OpenSolaris Web Stack project which includes PHP version 5.2.6 and Apache Server version 2.2.9
    The production server is configured as follows:
    OS release: Solaris 10 8/07 s10s_u4wos_12b SPARC
    Load: 1
    Idle: 66%
    Using Cool Stack 1.3 by the OpenSolaris Web Stack project which includes PHP version 5.2.6 and Apache Server version 2.2.9
    If you need more info on the servers, please let me know. Any ideas on the cause of the slow email is greatly appreciated.
    Thanks for your help.

    Hi.
    You php script send mail direct to Mail Server or use local sendmail?
    It's may be problem sendmail configuration on product server.
    Check /var/log/syslog on production server.
    Check mailq on production server immediately after submitting form.
    Regards.

  • Sending e-mails does not work

    After switching on the mail server, adding an MX record on the DNS of the server and on the web site of the domain supplier the mail server is working. That is sending and receiving locally works. Receiving external mail works as well but sending mail back does not work. The mail is sent but never arrives. The SMTP log gives the following message.
    Jan 19 23:19:10 domain.nl postfix/smtp[80282]: connect to gmail-smtp-in.l.google.com[173.194.70.26]:25: Operation timed out
    Jan 19 23:19:10 domain.nl postfix/smtp[80282]: connect to gmail-smtp-in.l.google.com[2a00:1450:4001:c02::1a]:25: No route to host
    Jan 19 23:19:10 domain.nl postfix/smtp[80282]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4010:c04::1b]:25: No route to host
    (domain.nl is not the real used domain name)
    Can anybody help.
    It is the last part of the server that does not work. Wiki's, webserver, network users, calendars, contracts are all working fine.
    Thanks in advance.

    are you on a static IP with a provider that doesn't block port 25?
    from terminal, what happens when you
         telnet gmail-smtp-in.l.google.com 25

  • PHP Form Sending E-mail without inputs in Safari

    Hi everyone. I'm having a problem and can't seem to find what the problem is. My form works fine in chrome and firefox but not safari. Below is my code. Please let me know if you can help.
    HTML Code
    <form id="form_280313" class="appnitro" method="post" action="email.php" enctype="text/html">
    <!--<div class="form_description">
    <h2>Untitled Form</h2>
    <p>This is your form description. Click here to edit.</p>
    </div>      -->
    <ul >
    <li id="li_1" >
    <label class="description" for="booked_by">Booked By: </label>
    <div>
    <input id="booked_by" name="booked_by" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>      <li id="li_16" >
    <label class="description" for="element_16_1">Proposed Rental Date </label>
    <span>
    <input id="element_16_1" name="element_16_1" class="element text" size="2" maxlength="2" value="Month" type="text"> /
    <label for="element_16_1">MM</label>
    </span>
    <span>
    <input id="element_16_2" name="element_16_2" class="element text" size="2" maxlength="2" value="Day" type="text"> /
    <label for="element_16_2">DD</label>
    </span>
    <span>
    <input id="element_16_3" name="element_16_3" class="element text" size="4" maxlength="4" value="Year" type="text">
    <label for="element_16_3">YYYY</label>
    </span>
    <span id="calendar_16">
    <img id="cal_img_16" class="datepicker" src="form/calendar.gif" alt="Pick a date.">
    </span>
    <script type="text/javascript">
    Calendar.setup({
    inputField      : "element_16_3",
    baseField : "element_16",
    displayArea : "calendar_16",
    button      : "cal_img_16",
    ifFormat      : "%B %e, %Y",
    onSelect      : selectDate
    </script>
    </li>      <li id="li_22" >
    <label class="description" for="hours">Rental Hours </label>
    <span>
    <input id="element_22_1" name="hours" class="element checkbox" type="checkbox" value="Half Day - 8am - 12pm" />
    <label class="choice" for="element_22_1">Half Day - 8am - 12pm</label>
    <input id="element_22_2" name="hours" class="element checkbox" type="checkbox" value="Half Day - 1pm - 4pm" />
    <label class="choice" for="element_22_2">Half Day - 1pm - 4pm</label>
    <input id="element_22_3" name="hours" class="element checkbox" type="checkbox" value="Full Day - 8am - 4pm" />
    <label class="choice" for="element_22_3">Full Day - 8am - 4pm</label>
    <input id="element_22_4" name="hours" class="element checkbox" type="checkbox" value="Evening after 4pm" />
    <label class="choice" for="element_22_4">Evening after 4pm</label>
    <input id="element_22_5" name="hours" class="element checkbox" type="checkbox" value="Weekend" />
    <label class="choice" for="element_22_5">Weekend</label>
    </span>
    </li>      <li id="li_2" >
    <label class="description" for="attendees">Number of Attendees </label>
    <div>
    <input id="element_2" name="attendees" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>      <li id="li_17" >
    <label class="description" for="theme">Theme of workshop </label>
    <div>
    <select class="element select medium" id="element_17" name="theme">
    <option value=""></option>
    <option value="1" selected="selected" >(Select one)</option>
    <option value="Lecture" >Lecture</option>
    <option value="Lab" >Lab</option>
    <option value="Both" >Both</option>
    </select>
    </div>
    </li>      <li id="li_3" >
    <label class="description" for="surgeon">Contact Name </label>
    <div>
    <input id="element_3" name="surgeon" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>      <li id="li_4" >
    <label class="description" for="surgeon_contact">Contact Info </label>
    <div>
    <input id="element_4" name="surgeon_contact" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>      <li id="li_5" >
    <label class="description" for="lab_procedures">Please list proposed lab procedures </label>
    <div>
    <textarea id="element_5" name="lab_procedures" class="element textarea medium"></textarea>
    </div>
    </li>      <li id="li_6" >
    <label class="description" for="specimens">Specimens (Please list if needed) </label>
    <div>
    <textarea id="element_6" name="specimens" class="element textarea medium"></textarea>
    </div>
    </li>      <li id="li_7" >
    <label class="description" for="instruments">Instrumentation </label>
    <div>
    <textarea id="element_7" name="instruments" class="element textarea medium"></textarea>
    </div>
    </li>      <li id="li_18" >
    <label class="description" for="carm">C-Arm </label>
    <div>
    <select class="element select medium" id="element_18" name="carm">
    <option value=""></option>
    <option value="1" selected="selected" >(Select one)</option>
    <option value="Yes" >Yes</option>
    <option value="No" >No</option>
    </select>
    </div>
    </li>      <li id="li_19" >
    <label class="description" for="conference_room">Conference Room </label>
    <div>
    <select class="element select medium" id="element_19" name="conference_room">
    <option value=""></option>
    <option value="1" selected="selected" >(Select one)</option>
    <option value="Yes" >Yes</option>
    <option value="No" >No</option>
    </select>
    </div>
    </li>      <li class="section_break">
    <label class="description" for="conference_room">A/V Needs </label>
    </li>      <div>
    <textarea name="avneeds" id="avneeds" cols="45" rows="5"></textarea>
    </div>
    </div>
    </li>      <li id="li_9" >
    <label class="description" for="food">Food & Beverage (if applicable) </label>
    <div>
    <textarea id="element_9" name="food" class="element textarea medium"></textarea>
    </div>
    </li>      <li id="li_14" >
    <label class="description" for="billing">Billing Address </label>
    <div>
    <input id="element_14_1" name="billing" class="element text large" value="" type="text">
    <label for="element_14_1">Street Address</label>
    </div>
    <div>
    <input id="element_14_2" name="billing1" class="element text large" value="" type="text">
    <label for="element_14_2">Address Line 2</label>
    </div>
    <div class="left">
    <input id="element_14_3" name="billing2" class="element text medium" value="" type="text">
    <label for="element_14_3">City</label>
    </div>
    <div class="right">
    <input id="element_14_4" name="billing3" class="element text medium" value="" type="text">
    <label for="element_14_4">State / Province / Region</label>
    </div>
    <div class="left">
    <input id="element_14_5" name="billing4" class="element text medium" maxlength="15" value="" type="text">
    <label for="element_14_5">Postal / Zip Code</label>
    </div>
    <div class="right">
    <select class="element select medium" id="element_14_6" name="billing5">
    <option value="" selected="selected"></option>
    <option value="Afghanistan" >Afghanistan</option>
    <option value="Albania" >Albania</option>
    <option value="Algeria" >Algeria</option>
    <option value="Andorra" >Andorra</option>
    <option value="Antigua and Barbuda" >Antigua and Barbuda</option>
    <option value="Argentina" >Argentina</option>
    <option value="Armenia" >Armenia</option>
    <option value="Australia" >Australia</option>
    <option value="Austria" >Austria</option>
    <option value="Azerbaijan" >Azerbaijan</option>
    <option value="Bahamas" >Bahamas</option>
    <option value="Bahrain" >Bahrain</option>
    <option value="Bangladesh" >Bangladesh</option>
    <option value="Barbados" >Barbados</option>
    <option value="Belarus" >Belarus</option>
    <option value="Belgium" >Belgium</option>
    <option value="Belize" >Belize</option>
    <option value="Benin" >Benin</option>
    <option value="Bhutan" >Bhutan</option>
    <option value="Bolivia" >Bolivia</option>
    <option value="Bosnia and Herzegovina" >Bosnia and Herzegovina</option>
    <option value="Botswana" >Botswana</option>
    <option value="Brazil" >Brazil</option>
    <option value="Brunei" >Brunei</option>
    <option value="Bulgaria" >Bulgaria</option>
    <option value="Burkina Faso" >Burkina Faso</option>
    <option value="Burundi" >Burundi</option>
    <option value="Cambodia" >Cambodia</option>
    <option value="Cameroon" >Cameroon</option>
    <option value="Canada" >Canada</option>
    <option value="Cape Verde" >Cape Verde</option>
    <option value="Central African Republic" >Central African Republic</option>
    <option value="Chad" >Chad</option>
    <option value="Chile" >Chile</option>
    <option value="China" >China</option>
    <option value="Colombia" >Colombia</option>
    <option value="Comoros" >Comoros</option>
    <option value="Congo" >Congo</option>
    <option value="Costa Rica" >Costa Rica</option>
    <option value="Côte d'Ivoire" >Côte d'Ivoire</option>
    <option value="Croatia" >Croatia</option>
    <option value="Cuba" >Cuba</option>
    <option value="Cyprus" >Cyprus</option>
    <option value="Czech Republic" >Czech Republic</option>
    <option value="Denmark" >Denmark</option>
    <option value="Djibouti" >Djibouti</option>
    <option value="Dominica" >Dominica</option>
    <option value="Dominican Republic" >Dominican Republic</option>
    <option value="East Timor" >East Timor</option>
    <option value="Ecuador" >Ecuador</option>
    <option value="Egypt" >Egypt</option>
    <option value="El Salvador" >El Salvador</option>
    <option value="Equatorial Guinea" >Equatorial Guinea</option>
    <option value="Eritrea" >Eritrea</option>
    <option value="Estonia" >Estonia</option>
    <option value="Ethiopia" >Ethiopia</option>
    <option value="Fiji" >Fiji</option>
    <option value="Finland" >Finland</option>
    <option value="France" >France</option>
    <option value="Gabon" >Gabon</option>
    <option value="Gambia" >Gambia</option>
    <option value="Georgia" >Georgia</option>
    <option value="Germany" >Germany</option>
    <option value="Ghana" >Ghana</option>
    <option value="Greece" >Greece</option>
    <option value="Grenada" >Grenada</option>
    <option value="Guatemala" >Guatemala</option>
    <option value="Guinea" >Guinea</option>
    <option value="Guinea-Bissau" >Guinea-Bissau</option>
    <option value="Guyana" >Guyana</option>
    <option value="Haiti" >Haiti</option>
    <option value="Honduras" >Honduras</option>
    <option value="Hong Kong" >Hong Kong</option>
    <option value="Hungary" >Hungary</option>
    <option value="Iceland" >Iceland</option>
    <option value="India" >India</option>
    <option value="Indonesia" >Indonesia</option>
    <option value="Iran" >Iran</option>
    <option value="Iraq" >Iraq</option>
    <option value="Ireland" >Ireland</option>
    <option value="Israel" >Israel</option>
    <option value="Italy" >Italy</option>
    <option value="Jamaica" >Jamaica</option>
    <option value="Japan" >Japan</option>
    <option value="Jordan" >Jordan</option>
    <option value="Kazakhstan" >Kazakhstan</option>
    <option value="Kenya" >Kenya</option>
    <option value="Kiribati" >Kiribati</option>
    <option value="North Korea" >North Korea</option>
    <option value="South Korea" >South Korea</option>
    <option value="Kuwait" >Kuwait</option>
    <option value="Kyrgyzstan" >Kyrgyzstan</option>
    <option value="Laos" >Laos</option>
    <option value="Latvia" >Latvia</option>
    <option value="Lebanon" >Lebanon</option>
    <option value="Lesotho" >Lesotho</option>
    <option value="Liberia" >Liberia</option>
    <option value="Libya" >Libya</option>
    <option value="Liechtenstein" >Liechtenstein</option>
    <option value="Lithuania" >Lithuania</option>
    <option value="Luxembourg" >Luxembourg</option>
    <option value="Macedonia" >Macedonia</option>
    <option value="Madagascar" >Madagascar</option>
    <option value="Malawi" >Malawi</option>
    <option value="Malaysia" >Malaysia</option>
    <option value="Maldives" >Maldives</option>
    <option value="Mali" >Mali</option>
    <option value="Malta" >Malta</option>
    <option value="Marshall Islands" >Marshall Islands</option>
    <option value="Mauritania" >Mauritania</option>
    <option value="Mauritius" >Mauritius</option>
    <option value="Mexico" >Mexico</option>
    <option value="Micronesia" >Micronesia</option>
    <option value="Moldova" >Moldova</option>
    <option value="Monaco" >Monaco</option>
    <option value="Mongolia" >Mongolia</option>
    <option value="Montenegro" >Montenegro</option>
    <option value="Morocco" >Morocco</option>
    <option value="Mozambique" >Mozambique</option>
    <option value="Myanmar" >Myanmar</option>
    <option value="Namibia" >Namibia</option>
    <option value="Nauru" >Nauru</option>
    <option value="Nepal" >Nepal</option>
    <option value="Netherlands" >Netherlands</option>
    <option value="New Zealand" >New Zealand</option>
    <option value="Nicaragua" >Nicaragua</option>
    <option value="Niger" >Niger</option>
    <option value="Nigeria" >Nigeria</option>
    <option value="Norway" >Norway</option>
    <option value="Oman" >Oman</option>
    <option value="Pakistan" >Pakistan</option>
    <option value="Palau" >Palau</option>
    <option value="Panama" >Panama</option>
    <option value="Papua New Guinea" >Papua New Guinea</option>
    <option value="Paraguay" >Paraguay</option>
    <option value="Peru" >Peru</option>
    <option value="Philippines" >Philippines</option>
    <option value="Poland" >Poland</option>
    <option value="Portugal" >Portugal</option>
    <option value="Puerto Rico" >Puerto Rico</option>
    <option value="Qatar" >Qatar</option>
    <option value="Romania" >Romania</option>
    <option value="Russia" >Russia</option>
    <option value="Rwanda" >Rwanda</option>
    <option value="Saint Kitts and Nevis" >Saint Kitts and Nevis</option>
    <option value="Saint Lucia" >Saint Lucia</option>
    <option value="Saint Vincent and the Grenadines" >Saint Vincent and the Grenadines</option>
    <option value="Samoa" >Samoa</option>
    <option value="San Marino" >San Marino</option>
    <option value="Sao Tome and Principe" >Sao Tome and Principe</option>
    <option value="Saudi Arabia" >Saudi Arabia</option>
    <option value="Senegal" >Senegal</option>
    <option value="Serbia and Montenegro" >Serbia and Montenegro</option>
    <option value="Seychelles" >Seychelles</option>
    <option value="Sierra Leone" >Sierra Leone</option>
    <option value="Singapore" >Singapore</option>
    <option value="Slovakia" >Slovakia</option>
    <option value="Slovenia" >Slovenia</option>
    <option value="Solomon Islands" >Solomon Islands</option>
    <option value="Somalia" >Somalia</option>
    <option value="South Africa" >South Africa</option>
    <option value="Spain" >Spain</option>
    <option value="Sri Lanka" >Sri Lanka</option>
    <option value="Sudan" >Sudan</option>
    <option value="Suriname" >Suriname</option>
    <option value="Swaziland" >Swaziland</option>
    <option value="Sweden" >Sweden</option>
    <option value="Switzerland" >Switzerland</option>
    <option value="Syria" >Syria</option>
    <option value="Taiwan" >Taiwan</option>
    <option value="Tajikistan" >Tajikistan</option>
    <option value="Tanzania" >Tanzania</option>
    <option value="Thailand" >Thailand</option>
    <option value="Togo" >Togo</option>
    <option value="Tonga" >Tonga</option>
    <option value="Trinidad and Tobago" >Trinidad and Tobago</option>
    <option value="Tunisia" >Tunisia</option>
    <option value="Turkey" >Turkey</option>
    <option value="Turkmenistan" >Turkmenistan</option>
    <option value="Tuvalu" >Tuvalu</option>
    <option value="Uganda" >Uganda</option>
    <option value="Ukraine" >Ukraine</option>
    <option value="United Arab Emirates" >United Arab Emirates</option>
    <option value="United Kingdom" >United Kingdom</option>
    <option value="United States" >United States</option>
    <option value="Uruguay" >Uruguay</option>
    <option value="Uzbekistan" >Uzbekistan</option>
    <option value="Vanuatu" >Vanuatu</option>
    <option value="Vatican City" >Vatican City</option>
    <option value="Venezuela" >Venezuela</option>
    <option value="Vietnam" >Vietnam</option>
    <option value="Yemen" >Yemen</option>
    <option value="Zambia" >Zambia</option>
    <option value="Zimbabwe" >Zimbabwe</option>
    </select>
    <label for="billing5">Country</label>
    </div>
    </li>      <li id="li_11" >
    <label class="description" for="email">Email Address </label>
    <div>
    <input id="element_11" name="email" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>      <li id="li_12" >
    <label class="description" for="phone">Phone Number </label>
    <span>
    <input id="element_12_1" name="phone" class="element text" size="3" maxlength="3" value="" type="text"> -
    <label for="element_12_1">(###)</label>
    </span>
    <span>
    <input id="element_12_2" name="phone1" class="element text" size="3" maxlength="3" value="" type="text"> -
    <label for="element_12_2">###</label>
    </span>
    <span>
    <input id="element_12_3" name="phone2" class="element text" size="4" maxlength="4" value="" type="text">
    <label for="element_12_3">####</label>
    </span>
    </li>      <li id="li_13" >
    <label class="description" for="fax">Fax Number </label>
    <span>
    <input id="element_13_1" name="fax" class="element text" size="3" maxlength="3" value="" type="text"> -
    <label for="element_13_1">(###)</label>
    </span>
    <span>
    <input id="element_13_2" name="fax1" class="element text" size="3" maxlength="3" value="" type="text"> -
    <label for="element_13_2">###</label>
    </span>
    <span>
    <input id="element_13_3" name="fax2" class="element text" size="4" maxlength="4" value="" type="text">
    <label for="element_13_3">####</label>
    </span>
    </li>      <li id="li_10" >
    <label class="description" for="confirm">Best way to confirm bookings </label>
    <div>
    <input id="element_10" name="confirm" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>
    <li class="buttons">
    <input type="hidden" name="form_id" value="280313" />
    <input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" />
    </li>
    </ul>
    </form>
    PHP CODE
    <?
    $sendTo = "[email protected]";
    $subject = "We would like to book an event at Fusion Solutions";
    $thankyou = "thanks.html";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $message = "Booked By: " .$_POST["booked_by"] . "\r\n";
    $message .= "Month: " .$_POST["element_16_1"] . "\r\n";
    $message .= "Day: " .$_POST["element_16_2"] . "\r\n";
    $message .= "Year: " .$_POST["element_16_3"] . "\r\n";
    $message .= "Rental Hours: " .$_POST["hours"] . "\r\n";
    $message .= "Number of Attendees: " .$_POST["attendees"] . "\r\n";
    $message .= "Theme of workshop: " .$_POST["theme"] . "\r\n";
    $message .= "Contact name: " .$_POST["surgeon"] . "\r\n";
    $message .= "Contact Info: " .$_POST["surgeon_contact"] . "\r\n";
    $message .= "Lab Procedures: " .$_POST["lab_procedures"] . "\r\n";
    $message .= "Specimens: " .$_POST["specimens"] . "\r\n";
    $message .= "Instrumentation: " .$_POST["instruments"] . "\r\n";
    $message .= "C-Arm: " .$_POST["carm"] . "\r\n";
    $message .= "Conference room: " .$_POST["conference_room"] . "\r\n";
    $message .= "A/V Needs: " .$_POST["avneeds"] . "\r\n";
    $message .= "Food & Beverage: " .$_POST["food"] . "\r\n";
    $message .= "Address: " .$_POST["billing"] . "\r\n";
    $message .= "Address2: " .$_POST["billing1"] . "\r\n";
    $message .= "City: " .$_POST["billing2"] . "\r\n";
    $message .= "State: " .$_POST["billing3"] . "\r\n";
    $message .= "Zip: " .$_POST["billing4"] . "\r\n";
    $message .= "Country: " .$_POST["billing5"] . "\r\n";
    $message .= "Email: " .$_POST["email"] . "\r\n";
    $message .= "Phone: " .$_POST["phone"] . "\r\n";
    $message .= "Phone: " .$_POST["phone1"] . "\r\n";
    $message .= "Phone: " .$_POST["phone2"] . "\r\n";
    $message .= "Fax: " .$_POST["fax"] . "\r\n";
    $message .= "Fax: " .$_POST["fax1"] . "\r\n";
    $message .= "Fax: " .$_POST["fax2"] . "\r\n";
    $message .= "Best way to confirm: " .$_POST["confirm"];
    mail($sendTo, $subject, $message, $headers) or die ("Failure");
    header("Location: $thankyou");
    ?>

    You could send it from the database (depending on what version you are running against), check out the UTL_SMTP package. Or look for some package written on top of it since it's no joy to use if you aren't familiar with the low level stuff. Not sure if it handles attachments, something written against the JavaMail API is probably more flexible for that

  • Use action to send e-mail and attach e-mail to docflow

    Hello guys,
    I am having troubles achieving the following:
    My task is to create an action for a specific transaction type and send out an e-mail (I already finished this part). The e-mail should be available in the transaction history of the transaction.
    I created an action profile and an action for leads and used the method call to be able to use BAdI EXEC_METHODCALL_PPF. Based on implementation CRM_COMPL_MAIL I was able to send out my e-mail with a custom mail form.
    Now the question is how can I put this e-mail to the doc flow of the business transaction (lead)?
    Does somebody have an idea how to achieve that?
    Best regards
    Sascha

    Hello,
    in the meantime I achieved the following:
    - Implemented custom method for action
    - method is triggered when a new lead is saved
    - custom method determines a mail form and creates an e-mail with function modules CRM_ERMS_MAIL_COMPOSE  and CRM_ERMS_MAIL_SEND
    - create an custom activity with a Z process type for e-mail
    - attach the activity to the lead to make it available in the transaction history
    Now I am having troubles with putting the content of the created e-mail to the activity. Can somebody help me here? I am trying to achieve that by using BOL programming and putting the content to BTHeaderTextSet and BTTextHAll of the BTOrder that I created for the activity.
    Best regards
    Sascha

  • Using PHP with Flash (contact form)

    I am trying to get a contact form on a flash site to work and
    for some reason the PHP isn't forwarding the message to my email.
    Below is the flash code I have used as well as the document I have
    saved as contact.php. Thank you so much for the help. This is the
    last thing I need to complete for the site and I just can't seem to
    get it right. Thanks.
    Flash Code For the Submit Button:
    onClipEvent (enterFrame) {
    if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
    if (this._currentframe<this._totalframes) {
    this.nextFrame();
    } else {
    if (this._currentframe>1) {
    this.prevFrame();
    on (release) {
    this._parent.getURL ("contact.php","_blank","GET");
    this._parent.name = "Your Name:";
    this._parent.email = "Your Email:";
    this._parent.phone = "Your Phone Number:";
    this._parent.text4 = "e-mail:";
    this._parent.message = "Your Message:";
    Here is what I have for Contact.php:
    <?php
    $your_name = $_GET['name'];
    $your_email = $_GET['email'];
    $your_phone = $_GET['phone'];
    $your_message = $_GET['message'];
    $recipient_email = "[email protected]";
    $subject = "from " . $your_email;
    $headers = "From: " . $your_name . "<" . $your_email .
    ">\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1';
    $content = "<html><head><title>Contact
    letter</title></head><body><br>";
    $content .= "Name: <b>" . $your_name .
    "</b><br>";
    $content .= "E-mail: <b>" . $your_email .
    "</b><br><hr><br>";
    $content .= "Phone: <b>" . $your_phone .
    "</b><br>";
    $content .= $your_message;
    $content .= "<br></body></html>";
    mail($recipient,$subject,$content,$headers);
    ?>
    <html>
    <body bgcolor="#282E2C">
    <div align="center"
    style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">
    Your message was sent. Thank you.
    </div>
    </body>
    </html>
    <script>resizeTo(300, 300)</script>

    well...that's true..I wanted "name" to be cleared when
    clicked...this version I found doesn't clear "name" when clicked,
    but it needs selected and erased manually...anyway..it's better
    then nothing...
    Reason I want this is because I'm using a design that is not
    giving me much space and I have to trick the low space with this
    option.
    If you want I can send you the fla to get a better
    picture...I believe you deserve it :)

  • HT5527 since end of Sept 2013, the mail client on my WindowsMobile 6.5 device refuses to send icloud mail.  Receiving works, sending produces the error message "check your internet connection and your account information".  Any way to fix this problem?

    remaining free space on icloud is 3.6 Gb; deleted and re-established the mail account on the device several times, following instructions from Apple KB doc <http://support.apple.com/kb/HT4864> without success.  Unfortunately, the mobile device (HTC HD2) can't be updated with a newer windows version, Android is no alternative, either.  Can anybody help???
    Cheers,   Andreas

    @Naiks, having suffered through unsuccessful synching attempts for Calendar and Contacts myself, l would suggest you try the following:
    UNINSTALL iCloud control panel from your PC. Seems silly, but do it.
    Go into Outlook, and look at the very top menu. Click FILE, then ACCOUNT SETTINGS, then click the popup box.
    You will see a list of all your email accounts. Make sure that ONE of them has a checkmark against it. If not, select the account your want as your default, and click "set as default.
    Exit out of Outlook and reboot your machine.
    Now reinstall iCloud, check CALENDAR and CONTACTS, and do as instructed when prompted.
    Reboot for good luck and now launch OUTLOOK. All that remains is to locate your iCloud Contacts and Calendar files, and make them your default.
    IMPORTANT: Don't panic if you can't find your contacts -- they're there. Click CONTACTS and you'll see you have several available contact files. Locate the one label "iCloud" in grey type. Right-click on it, select PROPERTIES, then click the Outlook Address Book tab. Check the box that says something like "Make this my default Outlook Address Book." Keep clicking "apply" and "okay" until you've exited out of the dialog box maze.
    You may have to do something similar with your Calendar files. I dd not, but if you need to, do it.
    Everything should now sync pretty seamlessly.
    I didn't have the exact same problem as you, but my dilemma was close enough. Good luck!
    Arthur P. Johnson

  • TS3899 My wife's iPhone 5 all of a sudden will only receive email from her AOL account but not send AOL mail.  Gmail works great.  Any ideas?

    My wife's iPhone 5 will receive her AOL mail however all if a sudden last week stopped sending mail via her AOL account.  Any ideas?

    For the AOL account the outgoing SMTP settings must be wrong

Maybe you are looking for