Php mailer, bcc and variable mailto

still need help with php script below to add bcc and additionally can you vary to maito email from the form?
/* Email Variables */
$emailSubject = 'Processing Statement';
$webMaster = '[email protected]';
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
this set up does work now. try to add email address from the form and add cc & bcc

There's really no reason to duplicate threads here. If someone knows the answer, they'll get it into your original post, since that one has more info to clarify what you are actually looking for.
http://forums.adobe.com/thread/1294223?tstart=0

Similar Messages

  • Automatic Mail bcc and reply-to address

    I just finished transferring all my archived mail from several years from Netscape Mail 7.2 to OS X Mail 2.1. There are 2 features which I used in Netscape Mail that I am unable to duplicate in OS X Mail. Is there any way to do the following automatically for each outgoing message?
    1. bcc a specific address other than myself
    2. provide a reply-to address different than the ISP addressed used to send the mail
    Thanks in advance for any help you can provide.
    Bob

    Pascal,
    Thanks for the suggestions. Unfortunately, I was unable to get either of the two approaches mentioned in your HawkWings web site link to work.
    The script approach didn't work because the link to "Cricket's web site" at mac.com is broken - the page is no longer available.
    I also tried the Terminal command approach unsuccessfully. I carefully used the "defaults write com.apple.mail UserHeaders …" command to enter my desired Reply-To and Bcc addresses, and even verified that they had been accepted using the "defaults read …" command. After shutting down and restarting Mail, the new Reply-To and Bcc addresses did not show up. Ditto after restarting the OS and then Mail.
    Any further suggestions?
    Thanks, Bob

  • Need help with PHP mail script

    I  have created a  log in system  . In that when the  user completes the  registration process an auto reply(auto-reply@domain)  will generate and  sent this to users email id regarding about the user  name and password  (Lo gin Details). After formal approval from the admin  the user will  get a user activation mail with log in link.
    But , my problem is  these are work only for mail accounts from my  domain  only(test@domain). its not send any of above mentioned details  to other  mail services like gmail or yahoo etc.
    i discussed this   with some others, they said its the problem with your mail function   configuration. but i didn't get any needful information as am a  beginner  in PHP scripting.
    i have contacted this with my  hosting service they said its the  problem with  php mail () function  and use php mailer() instead mail().
    please give me a solution for the same..
    Here am ataching my code..
    <?php
    include 'dbc.php';
    $err = array();
    if($_POST['doRegister'] == 'Register')
    foreach($_POST as $key => $value) {
        $data[$key] = filter($value);
    if(empty($data['full_name']) || strlen($data['full_name']) < 4)
    $err[] = "ERROR - Invalid name. Please enter atleast 3 or more characters for your name";
    //header("Location: register.php?msg=$err");
    //exit();
    // Validate User Name
    if (!isUserID($data['user_name'])) {
    $err[] = "ERROR - Invalid user name. It can contain alphabet, number and underscore.";
    //header("Location: register.php?msg=$err");
    //exit();
    // Validate Email
    if(!isEmail($data['usr_email'])) {
    $err[] = "ERROR - Invalid email address.";
    //header("Location: register.php?msg=$err");
    //exit();
    // Check User Passwords
    if (!checkPwd($data['pwd'],$data['pwd2'])) {
    $err[] = "ERROR - Invalid Password or mismatch. Enter 5 chars or more";
    //header("Location: register.php?msg=$err");
    //exit();
    $user_ip = $_SERVER['REMOTE_ADDR'];
    // stores sha1 of password
    $sha1pass = PwdHash($data['pwd']);
    // Automatically collects the hostname or domain  like example.com)
    $host  = $_SERVER['HTTP_HOST'];
    $host_upper = strtoupper($host);
    $path   = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
    // Generates activation code simple 4 digit number
    $activ_code = rand(1000,9999);
    $usr_email = $data['usr_email'];
    $user_name = $data['user_name'];
    $rs_duplicate = mysql_query("select count(*) as total from users where user_email='$usr_email' OR user_name='$user_name'") or die(mysql_error());
    list($total) = mysql_fetch_row($rs_duplicate);
    if ($total > 0)
    $err[] = "ERROR - The username/email already exists. Please try again with different username and email.";
    if(empty($err)) {
    $sql_insert = "INSERT into `users`
                  (`full_name`,`user_email`,`pwd`,`address`,`tel`,`fax`,`website`,`date`,`users_ip`,`activa tion_code`,`country`,`user_name`
                VALUES
                ('$data[full_name]','$usr_email','$sha1pass','$data[address]','$data[tel]','$data[fax]',' $data[web]'
                ,now(),'$user_ip','$activ_code','$data[country]','$user_name'
    mysql_query($sql_insert,$link) or die("Insertion Failed:" . mysql_error());
    $user_id = mysql_insert_id($link); 
    $md5_id = md5($user_id);
    mysql_query("update users set md5_id='$md5_id' where id='$user_id'");
    //    echo "<h3>Thank You</h3> We received your submission.";
    if($user_registration)  {
    $a_link = "
    *****ACTIVATION LINK*****\n
    http://$host$path/activate.php?user=$md5_id&activ_code=$activ_code
    } else {
    $a_link =
    "Your account is *PENDING APPROVAL* and will be soon activated the administrator.
    $message =
    "Hello \n
    Thank you for registering with us. Here are your login details...\n
    User ID: $user_name
    Email: $usr_email \n
    Passwd: $data[pwd] \n
    $a_link
    Thank You
    Administrator
    $host_upper
    THIS IS AN AUTOMATED RESPONSE.
    ***DO NOT RESPOND TO THIS EMAIL****
        mail($usr_email, "Login Details", $message,
        "From: \"Member Registration\" <auto-reply@$host>\r\n" .
         "X-Mailer: PHP/" . phpversion());
      header("Location: thankyou.php"); 
      exit();
    ?>

    I  have created a  log in system  . In that when the  user completes the  registration process an auto reply(auto-reply@domain)  will generate and  sent this to users email id regarding about the user  name and password  (Lo gin Details). After formal approval from the admin  the user will  get a user activation mail with log in link.
    But , my problem is  these are work only for mail accounts from my  domain  only(test@domain). its not send any of above mentioned details  to other  mail services like gmail or yahoo etc.
    i discussed this   with some others, they said its the problem with your mail function   configuration. but i didn't get any needful information as am a  beginner  in PHP scripting.
    i have contacted this with my  hosting service they said its the  problem with  php mail () function  and use php mailer() instead mail().
    please give me a solution for the same..
    Here am ataching my code..
    <?php
    include 'dbc.php';
    $err = array();
    if($_POST['doRegister'] == 'Register')
    foreach($_POST as $key => $value) {
        $data[$key] = filter($value);
    if(empty($data['full_name']) || strlen($data['full_name']) < 4)
    $err[] = "ERROR - Invalid name. Please enter atleast 3 or more characters for your name";
    //header("Location: register.php?msg=$err");
    //exit();
    // Validate User Name
    if (!isUserID($data['user_name'])) {
    $err[] = "ERROR - Invalid user name. It can contain alphabet, number and underscore.";
    //header("Location: register.php?msg=$err");
    //exit();
    // Validate Email
    if(!isEmail($data['usr_email'])) {
    $err[] = "ERROR - Invalid email address.";
    //header("Location: register.php?msg=$err");
    //exit();
    // Check User Passwords
    if (!checkPwd($data['pwd'],$data['pwd2'])) {
    $err[] = "ERROR - Invalid Password or mismatch. Enter 5 chars or more";
    //header("Location: register.php?msg=$err");
    //exit();
    $user_ip = $_SERVER['REMOTE_ADDR'];
    // stores sha1 of password
    $sha1pass = PwdHash($data['pwd']);
    // Automatically collects the hostname or domain  like example.com)
    $host  = $_SERVER['HTTP_HOST'];
    $host_upper = strtoupper($host);
    $path   = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
    // Generates activation code simple 4 digit number
    $activ_code = rand(1000,9999);
    $usr_email = $data['usr_email'];
    $user_name = $data['user_name'];
    $rs_duplicate = mysql_query("select count(*) as total from users where user_email='$usr_email' OR user_name='$user_name'") or die(mysql_error());
    list($total) = mysql_fetch_row($rs_duplicate);
    if ($total > 0)
    $err[] = "ERROR - The username/email already exists. Please try again with different username and email.";
    if(empty($err)) {
    $sql_insert = "INSERT into `users`
                  (`full_name`,`user_email`,`pwd`,`address`,`tel`,`fax`,`website`,`date`,`users_ip`,`activa tion_code`,`country`,`user_name`
                VALUES
                ('$data[full_name]','$usr_email','$sha1pass','$data[address]','$data[tel]','$data[fax]',' $data[web]'
                ,now(),'$user_ip','$activ_code','$data[country]','$user_name'
    mysql_query($sql_insert,$link) or die("Insertion Failed:" . mysql_error());
    $user_id = mysql_insert_id($link); 
    $md5_id = md5($user_id);
    mysql_query("update users set md5_id='$md5_id' where id='$user_id'");
    //    echo "<h3>Thank You</h3> We received your submission.";
    if($user_registration)  {
    $a_link = "
    *****ACTIVATION LINK*****\n
    http://$host$path/activate.php?user=$md5_id&activ_code=$activ_code
    } else {
    $a_link =
    "Your account is *PENDING APPROVAL* and will be soon activated the administrator.
    $message =
    "Hello \n
    Thank you for registering with us. Here are your login details...\n
    User ID: $user_name
    Email: $usr_email \n
    Passwd: $data[pwd] \n
    $a_link
    Thank You
    Administrator
    $host_upper
    THIS IS AN AUTOMATED RESPONSE.
    ***DO NOT RESPOND TO THIS EMAIL****
        mail($usr_email, "Login Details", $message,
        "From: \"Member Registration\" <auto-reply@$host>\r\n" .
         "X-Mailer: PHP/" . phpversion());
      header("Location: thankyou.php"); 
      exit();
    ?>

  • SMTP Authorization code for PHP Mail Form

    Can anyone help me in figuring out the correct way to incorporate the SMTP authentication into a form? I am having a lot of trouble in getting my forms to send with this format. My code for my php action page is below. I have my correct information where i included *******. Please let me know what i have wrong.
    CODE STARTS HERE
    <?php
    //new function
    $to = "*******";
    $nameto = "LTL Freight Shop";
    $from = "*******";
    $namefrom = "LTL Freight Shop";
    $subject = "Account Request";
    authSendEmail($from, $namefrom, $to, $nameto, $subject, $message);
    ?>
    <?php
    $recipient  = "*******";
    //$subject = "Account Request";
    $companyname = check_input($_POST['CompanyName'], "Enter your company name");
    $firstname  = check_input($_POST['FirstName'], "Enter your first name");
    $lastname  = check_input($_POST['LastName'], "Enter your last name");
    $phone  = check_input($_POST['PhoneNumber'], "Enter your phone number");
    $fax  = check_input($_POST['FaxNumber']);
    $email  = check_input($_POST['Email'], "Enter your email");
    $address  = check_input($_POST['StreetAddress'], "Enter your address");
    $city  = check_input($_POST['City'], "Enter your city");
    $state  = check_input($_POST['State'], "Enter your state");
    $zipcode  = check_input($_POST['ZipCode'], "Enter your zip code");
    $country  = check_input($_POST['Country'], "Enter your country");
    $yearsinbusiness  = check_input($_POST['YearsinBusiness'], "Enter your years in business");
    $typeofindustry  = check_input($_POST['TypeofIndustry'], "Enter your type of industry");
    $multiplelocations    = check_input($_POST['MultipleLocations']);
    $numberoflocations  = check_input($_POST['LocationsCount']);
    $ltl  = check_input($_POST['ServicesLTL']);
    $ftl  = check_input($_POST['ServicesFTL']);
    $domesticparcel  = check_input($_POST['ServicesDomesticParcel']);
    $intlparcel  = check_input($_POST['ServicesInternationalParcel']);
    $airfreight  = check_input($_POST['ServicesAirFreight']);
    $oceanfreight  = check_input($_POST['ServicesOceanFreight']);
    $other  = check_input($_POST['ServicesOther']);
    $none  = check_input($_POST['ServicesNone']);
    $volume  = check_input($_POST['TypicalVolume'], "Enter your typical volume");
    $carrier  = check_input($_POST['CurrentCarrier'], "Enter your current carrier");
    $class  = check_input($_POST['AverageClass'], "Enter your average class");
    $weight  = check_input($_POST['AverageWeight'], "Enter your average weight");
    $process   = check_input($_POST['Process']);
    $hearabout = check_input($_POST['HearAbout']);
    $comments = check_input($_POST['Comments']);
    if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
        show_error("E-mail address not valid");
    $message = "You have received an account request from:
    Company Name: $companyname
    First Name: $firstname
    Last Name: $lastname
    Phone Number: $phone
    Fax Number: $fax
    E-mail: $email
    Street Address: $address
    City: $city
    State: $state
    Zip Code: $zipcode
    Country: $country
    Years in Business: $yearsinbusiness
    Type of Industry: $typeofindustry
    Multiple Locations: $multiplelocations
    Number of Locations: $numberoflocations
    Services they use: $ltl, $ftl, $domesticparcel, $intlparcel, $airfreight, $oceanfreight, $other, $none
    Typical Volume: $volume
    Current Carrier: $carrier
    Average Class: $class
    Average Weight: $weight
    How they currently process: $process
    How they heard about us: $hearabout
    Comments: $comments
    End of message
    //ini_set("SMTP","smtp.emailsrvr.com");
    //ini_set("SMTP_PORT", 25);
    //ini_set("sendmail_from","*******");
    //mail($recipient, $subject, $message);
    function check_input($data, $problem='')
        $data = trim($data);
        $data = stripslashes($data);
        $data = htmlspecialchars($data);
        if ($problem && strlen($data) == 0)
            show_error($problem);
        return $data;
    function authSendEmail($from, $namefrom, $to, $nameto, $subject, $message)
    $smtpServer = "smtp.emailsrvr.com";
    $port = "25";
    $timeout = "30";
    $username = "********";
    $password = "********";
    $localhost = "smtp.emailsrvr.com";
    $newLine = "\r\n";
    $smtpConnect = fsockopen($smtpServer, $port, $errno, $errstr, $timeout);
    $smtpResponse = fgets($smtpConnect, 515);
    if(empty($smtpConnect))
    $output = "Failed to connect: $smtpResponse";
    return $output;
    else
    $logArray['connection'] = "Connected: $smtpResponse";
    fputs($smtpConnect,"AUTH LOGIN" . $newLine);
    $smtpResponse = fgets($smtpConnect, 515);
    $logArray['authrequest'] = "$smtpResponse";
    fputs($smtpConnect, base64_encode($username) . $newLine);
    $smtpResponse = fgets($smtpConnect, 515);
    $logArray['authusername'] = "$smtpResponse";
    fputs($smtpConnect, base64_encode($password) . $newLine);
    $smtpResponse = fgets($smtpConnect, 515);
    $logArray['authpassword'] = "$smtpResponse";
    fputs($smtpConnect, "HELO $localhost" . $newLine);
    $smtpResponse = fgets($smtpConnect, 515);
    $logArray['heloresponse'] = "$smtpResponse";
    fputs($smtpConnect, "MAIL FROM: $from" . $newLine);
    $smtpResponse = fgets($smtpConnect, 515);
    $logArray['mailfromresponse'] = "$smtpResponse";
    fputs($smtpConnect, "RCPT TO: $to" . $newLine);
    $smtpResponse = fgets($smtpConnect, 515);
    $logArray['mailtoresponse'] = "$smtpResponse";
    fputs($smtpConnect, "DATA" . $newLine);
    $smtpResponse = fgets($smtpConnect, 515);
    $logArray['data1response'] = "$smtpResponse";
    $headers = "MIME-Version: 1.0" . $newLine;
    $headers .= "Content-type: text/html; charset=iso-8859-1" . $newLine;
    $headers .= "To: $nameto <$to>" . $newLine;
    $headers .= "From: $namefrom <$from>" . $newLine;
    fputs($smtpConnect, "To: $to\nFrom: $from\nSubject: $subject\n$headers\n\n$message\n.\n");
    $smtpResponse = fgets($smtpConnect, 515);
    $logArray['data2response'] = "$smtpResponse";
    fputs($smtpConnect,"QUIT" . $newLine);
    $smtpResponse = fgets($smtpConnect, 515);
    $logArray['quitresponse'] = "$smtpResponse";
    function show_error($myError)
    ?>
        <html>
        <body>
        <b>Please correct the following error:</b><br />
        <?php echo $myError; ?>
        </body>
        </html>
    <?php
    exit();
    ?>

    I have tried the standard PHP mail function and it doesnt seem to work. Here is my most recent warning or error message.
    Warning: mail() [function.mail]: SMTP server response: 554 5.7.1 <*****>: Sender address rejected: Access denied in D:\inetpub\vhosts\ltlfreightshop.com\httpdocs\requestaccount.php on line 78
    I had the standard mailing set up but it wouldnt ever send and when i set up just the form, it requires the default email client. Am i wrong to assume that i need the SMTP authentication?
    I am not sure about the sockets being enabled. We currently outsource our web hosting and email hosting. I cannot find the phpinfo(), where would this be?
    Thanks,
    Ben

  • AppleScript to list mail accounts and store in a variable

    Greetings,
    I'm new to AppleScript and am reading a book on it that I dusted off but I thought I'd post my question here before I reinvent a wheel.
    Goal:
    -- Create an AppleScript which gives me a list of all the accounts in Mail.app and then gives me the choice to disable, enable, or toggle those accounts.
    Issue:
    -- I know how to make AppleScript show me a list of the accounts in Mail, but I want that list to become a variable so I can then apply the disable, enable, or toggle options to that variable.
    Side note:
    -- A script exists that does what I'm looking for Enable | Disable Accounts.  Saddly this freeware script is set to read only so I can't open it to check the code.  I'll be using my final script in a business environment so I need to see what the code is doing before I deploy it, lest it be doing naughty things like forwarding private information elsewhere etc.
    Thoughts / guidance appreciated.

    This script should do the trick for starters, though it lacks the kind of finesse you could get with an XCode project and a dedicated interface.
    tell application "Mail"
              set {accountNameList, accountEnabledList} to {name, enabled} of every account
              set displayList to {}
              repeat with i from 1 to count of accountNameList
                        set end of displayList to item i of accountNameList & " (" & item i of accountEnabledList & ")"
              end repeat
              set toggles to choose from list displayList
              repeat with thisAccount in toggles
                        set accountName to first word of thisAccount
                        set enabled of account accountName to not enabled of account accountName
              end repeat
    end tell

  • Need help with PHP mail script [was: Can someone please help me?]

    I'm trying to collect data from a form and email it.  I'm using form2mail.php and the problem is that the email is not collecting the form info and it has the same email address in the From: and To: lines. I'm really stuck and would appreciate any help.
    Here is the HTML code:
    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Contact Us</title>
    <style type="text/css">
    <!--
    .style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
    .style2 {
    font-size: 14px;
    color: #000000;
    body {
    background-color: #FFFFFF;
    body,td,th {
    color: #CC3300;
    .style3 {font-size: 14px; font-weight: bold; }
    .style6 {font-size: 18px}
    .style7 {font-size: 16px}
    .style8 {font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; }
    .style9 {font-size: 16px; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; }
    .style10 {color: #000000}
    -->
    </style>
    </head>
    <body>
    <div align="center"><img src="nav2.jpg" alt="nav bar" width="698" height="91" border="0" usemap="#Map2" />
      <map name="Map2" id="Map2">
      <area shape="rect" coords="560,9,684,38" href="accessories.html" />
    <area shape="rect" coords="456,8,548,38" href="contact.html" />
    <area shape="rect" coords="305,8,435,40" href="photog.html" />
    <area shape="rect" coords="187,9,283,39" href="services.html" />
    <area shape="rect" coords="81,10,167,39" href="aboutus.html" />
    <area shape="rect" coords="5,10,68,39" href="index.html" />
    </map>
      <map name="Map" id="Map">
        <area shape="rect" coords="9,9,69,39" href="index.html" />
        <area shape="rect" coords="83,11,165,39" href="aboutus.html" />
        <area shape="rect" coords="182,9,285,38" href="services.html" />
        <area shape="rect" coords="436,14,560,37" href="contact.html" />
        <area shape="rect" coords="563,14,682,38" href="accessories.html" />
      </map>
    </div>
    <p> </p>
    <form id="TheForm" name="TheForm" action="form2mail.php" method="post">
      <p align="center" class="style2">P<span class="style1">lease fill out form below for a &quot;free no obligation quote&quot; then click submit.</span></p>
      <p align="center" class="style3">(*Required Information)</p>
      <div align="center">
        <pre><strong><span class="style8">*Contact Name</span> </strong><input name="name" type="text" id="name" />
    <span class="style8"><strong>
    Business Name </strong></span><input name="bn" type="text" id="bn" />
    <span class="style8"><strong>*Phone Number <input type="text" name="first" size="3" onFocus="this.value='';"
        onKeyup="checkNumber(this.value); autoTab(this, document.TheForm.second);" maxlength="3" value="###" /> - <input type="text" name="second" size="3" onFocus="this.value='';" onKeyup="checkNumber(this.value); autoTab(this, document.TheForm.third);" maxlength="3" value="###" /> - <input type="text" name="third" size="4" onFocus="this.value='';" onKeyup="checkNumber(this.value); autoTab(this, document.TheForm.fourth);" maxlength="4" value="####"/> </strong></span>
    <strong><span class="style1">*</span><span class="style8">Email Address</span> <input name="email" type="text" id="email" />     </strong> </pre>
        <label><span class="style9">*Re-enter to confirm</span>
        <input name="emx" type="text" id="emx" /></label><br /><br /><span class="style9">
    <label></label>
        </span>
        <p><span class="style9">*Best time to call </span>
          <select name="name1[]" multiple size="1" >
            <option>8am-9am</option>
            <option>9am-10am</option>
            <option>10am-11am</option>
            <option>11am-12pm</option>
            <option>12pm-1pm</option>
            <option>1pm-2pm</option>
            <option>2pm-3pm</option>
            <option>3pm-4pm</option>
            <option>4pm-5pm</option>
            <option>5pm-6pm</option>
            <option>6pm-7pm</option>
            <option>7pm-8pm</option>
          </select>
          <br />
          <br />
          <span class="style9">Type of Location</span>
          <select name="name2[]" multiple size="1" >
            <option>Residential</option>
            <option>Commercial</option>
          </select>
          <br />
          <br />
            <span class="style1"><br />
            <strong><br />
              <span class="style6">*Type of Services Requested:</span></strong><br />
            </span><strong><span class="style10">(check all that apply)</span><br />
                </strong><br />
                <span class="style7"><span class="style1"><strong>Janitorial cleaning</strong></span>
                <input type="checkbox" name="checkbox[]" value="checkbox" multiple/>
                <br />
                </span><strong><br />
                  <span class="style8">Mobile Auto Detailing</span>
                <input type="checkbox" name="checkbox2[]" value="checkbox" multiple/>
                <br />
                <br />
                  </strong><span class="style9">Moving/Hauling</span>
          <input type="checkbox" name="checkbox3[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Pressure washing</span>
          <input type="checkbox" name="checkbox4[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Window washing</span>
          <input type="checkbox" name="checkbox5[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Window Tinting</span>
          <input type="checkbox" name="checkbox6[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Boat cleaning</span>
          <input type="checkbox" name="checkbox7[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">RV cleaning</span>
          <input type="checkbox" name="checkbox8[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Motorcycle cleaning</span>
          <input type="checkbox" name="checkbox9[]" value="checkbox" multiple/>
          <br />
          <br />
          <br />
          <br />
          <input name="SB"  type="button" class="style9" value="Submit" onClick="sendOff();">
        </p>
      </div></label>
      <script language="JavaScript1.2">
    // (C) 2000 www.CodeLifter.com
    // http://www.codelifter.com
    // Free for all users, but leave in this  header
    var good;
    function checkEmailAddress(field) {
    // Note: The next expression must be all on one line...
    //       allow no spaces, linefeeds, or carriage returns!
    var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org) |(\..{2,2}))$)\b/gi);
    if (goodEmail){
       good = true
    } else {
       alert('Please enter a valid e-mail address.')
       field.focus()
       field.select()
       good = false
    function autoTab(startPoint,endPoint){
    if (startPoint.getAttribute&&startPoint.value.length==startPoint.getAttribute("max length"))
    endPoint.focus();
    function checkNumber(phoneNumber){
    var x=phoneNumber;
    var phoneNumber=/(^\d+$)|(^\d+\.\d+$)/
    if (phoneNumber.test(x))
    testResult=true
    else{
    alert("Please enter a valid number.")
    phoneNumber.focus();
    phoneNumber.value="";
    testResult=false
    return (testResult)
    function sendOff(){
       namecheck = document.TheForm.name.value   
       if (namecheck.length <1) {
          alert('Please enter your name.')
          return
       good = false
       checkEmailAddress(document.TheForm.email)
       if ((document.TheForm.email.value ==
            document.TheForm.emx.value)&&(good)){
          // This is where you put your action
          // if name and email addresses are good.
          // We show an alert box, here; but you can
          // use a window.location= 'http://address'
          // to call a subsequent html page,
          // or a Perl script, etc.
          window.location= 'form2mail.php';
       if ((document.TheForm.email.value !=
              document.TheForm.emx.value)&&(good)){
              alert('Both e-mail address entries must match.')
    </script>
    </form>
    <p> </p>
    </body>
    </html>
    and here is the form2mail.php:
    <?php
    # You can use this script to submit your forms or to receive orders by email.
    $MailToAddress = "[email protected]"; // your email address
    $redirectURL = "http://www.chucksmobile.com/thankyou.html"; // the URL of the thank you page.
    $MailSubject = "[Customer Contact Info]"; // the subject of the email
    $sendHTML = FALSE; //set to "false" to receive Plain TEXT e-mail
    $serverCheck = FALSE; // if, for some reason you can't send e-mails, set this to "false"
    # copyright 2006 Web4Future.com =================== READ THIS ===================================================
    # If you are asking for a name and an email address in your form, you can name the input fields "name" and "email".
    # If you do this, the message will apear to come from that email address and you can simply click the reply button to answer it.
    # To block an IP, simply add it to the blockip.txt text file.
    # CHMOD 777 the blockip.txt file (run "CHMOD 777 blockip.txt", without the double quotes)
    # This is needed because the script tries to block the IP that tried to hack it
    # If you have a multiple selection box or multiple checkboxes, you MUST name the multiple list box or checkbox as "name[]" instead of just "name"
    # you must also add "multiple" at the end of the tag like this: <select name="myselectname[]" multiple>
    # you have to do the same with checkboxes
    Web4Future Easiest Form2Mail (GPL).
    Copyright (C) 1998-2006 Web4Future.com All Rights Reserved.
    http://www.Web4Future.com/
    This script was written by George L. & Calin S. from Web4Future.com
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    # DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING ===================================================
    $w4fver =  "2.2";
    $ip = ($_SERVER['HTTP_X_FORWARDED_FOR'] == "" ? $_SERVER['REMOTE_ADDR'] : $_SERVER['HTTP_X_FORWARDED_FOR']);
    //function blockIP
    function blockip($ip) {
    $handle = @fopen("blockip.txt", 'a');
    @fwrite($handle, $ip."\n");
    @fclose($handle);
    $w4fx = stristr(file_get_contents('blockip.txt'),getenv('REMOTE_ADDR'));
    if ($serverCheck) {
    if (preg_match ("/".str_replace("www.", "", $_SERVER["SERVER_NAME"])."/i", $_SERVER["HTTP_REFERER"])) { $w4fy = TRUE; } else { $w4fy = FALSE; }
    } else { $w4fy = TRUE; }
    if (($w4fy === TRUE) && ($w4fx === FALSE)) {
    $w4fMessage = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></head><body><font face=3Dverdana size=3D2>";
    if (count($_GET) >0) {
    reset($_GET);
    while(list($key, $val) = each($_GET)) {
      $GLOBALS[$key] = $val;
      if (is_array($val)) {
       $w4fMessage .= "<b>$key:</b> ";
       foreach ($val as $vala) {
        $vala =stripslashes($vala);
        $vala = htmlspecialchars($vala);
        if (trim($vala)) { if (stristr($vala,"Content-Type:") || stristr($vala,"MIME-Version") || stristr($vala,"Content-Transfer-Encoding") || stristr($vala,"bcc:")) { blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }
        $w4fMessage .= "$vala, ";
       $w4fMessage .= "<br>\n";
      else {
       $val = stripslashes($val);
       if (trim($val)) { if (stristr($val,"Content-Type:") || stristr($val,"MIME-Version") || stristr($val,"Content-Transfer-Encoding") || stristr($val,"bcc:")) { blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }
       if (($key == "Submit") || ($key == "submit")) { } 
       else {  if ($val == "") { $w4fMessage .= "$key: - <br>\n"; }
         else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; }
    } // end while
    }//end if
    else {
    reset($_POST);
    while(list($key, $val) = each($_POST)) {
      $GLOBALS[$key] = $val;
      if (is_array($val)) {
       $w4fMessage .= "<b>$key:</b> ";
       foreach ($val as $vala) {
        $vala =stripslashes($vala);
        $vala = htmlspecialchars($vala);
        if (trim($vala)) { if (stristr($vala,"Content-Type:") || stristr($vala,"MIME-Version") || stristr($vala,"Content-Transfer-Encoding") || stristr($vala,"bcc:")) {blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }   
        $w4fMessage .= "$vala, ";
       $w4fMessage .= "<br>\n";
      else {
       $val = stripslashes($val);
       if (trim($val)) { if (stristr($val,"Content-Type:") || stristr($val,"MIME-Version") || stristr($val,"Content-Transfer-Encoding") || stristr($val,"bcc:")) {blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }
       if (($key == "Submit") || ($key == "submit")) { } 
       else {  if ($val == "") { $w4fMessage .= "$key: - <br>\n"; }
         else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; }
    } // end while
    }//end else
    $w4fMessage .= "<font size=3D1><br><br>\n Sender IP: ".$ip."</font></font></body></html>";
        $w4f_what = array("/To:/i", "/Cc:/i", "/Bcc:/i","/Content-Type:/i","/\n/");
    $name = preg_replace($w4f_what, "", $name);
    $email = preg_replace($w4f_what, "", $email);
    if (!$email) {$email = $MailToAddress;}
    $mailHeader = "From: $name <$email>\r\n";
    $mailHeader .= "Reply-To: $name <$email>\r\n";
    $mailHeader .= "Message-ID: <". md5(rand()."".time()) ."@". ereg_replace("www.","",$_SERVER["SERVER_NAME"]) .">\r\n";
    $mailHeader .= "MIME-Version: 1.0\r\n";
    if ($sendHTML) {
      $mailHeader .= "Content-Type: multipart/alternative;";  
      $mailHeader .= "  boundary=\"----=_NextPart_000_000E_01C5256B.0AEFE730\"\r\n";    
    $mailHeader .= "X-Priority: 3\r\n";
    $mailHeader .= "X-Mailer: PHP/" . phpversion()."\r\n";
    $mailHeader .= "X-MimeOLE: Produced By Web4Future Easiest Form2Mail $w4fver\r\n";
    if ($sendHTML) {
      $mailMessage = "This is a multi-part message in MIME format.\r\n\r\n";
      $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n";
      $mailMessage .= "Content-Type: text/plain;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";  
      $mailMessage .= trim(strip_tags($w4fMessage))."\r\n\r\n";  
      $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n";  
      $mailMessage .= "Content-Type: text/html;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";  
      $mailMessage .= "$w4fMessage\r\n\r\n";  
      $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730--\r\n";  
    if ($sendHTML === FALSE) {
      $mailHeader .= "Content-Type: text/plain;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";  
      $mailMessage .= trim(strip_tags($w4fMessage))."\r\n\r\n";  
    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader)) { echo "Error sending e-mail!";}
    else { header("Location: ".$redirectURL); }
    } else { echo "<center><font face=verdana size=3 color=red><b>ILLEGAL EXECUTION DETECTED!</b></font></center>";}
    ?>
    Thanks in advance,
    Glenn
    [Subject line edited by moderator to indicate nature of request]

    Using PHP to process an online form and send the input by email is very simple. The mail() function takes a minimum of three arguments, namely: the address the mail is being sent to, the subject line, and the body of the email as a single string. The reason some people use scripts like form2mail.php is because they don't have the knowledge or patience to validate the user input to make sure it's safe to send.
    Rather than attempt to trawl through your complex form looking for the problems, I would suggest starting with a couple of simple tests.
    First of all, create a PHP page called mailtest.php containing the following script:
    <?php
    $to = '[email protected]'; // use your own email address
    $subject = 'PHP mail test';
    $message = 'This is a test of the mail() function.';
    $sent = mail($to, $subject, $message);
    if ($sent) {
      echo 'Mail was sent';
    } else {
      echo 'Problem sending mail';
    ?>
    Save the script, upload it to your server, and load it into a browser. If you see "Mail is sent", you're in business. If not, it probably means that the hosting company insists on the fifth argument being supplied to mail(). This is your email address preceded by -f. Change the line of code that sends the mail to this:
    $sent = mail($to, $subject, $message, null, '[email protected]');
    Obviously, replace "[email protected]" with your own email address.
    If this results in the mail being sent successfully, you will need to adapt the code in form2mail.php to accept the fifth parameter. You need to change the following line, which is a few lines from the end of the script:
    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader))
    Change it to this:
    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader, '[email protected]'))
    Again, use your own email address instead of "[email protected]".
    Once you have determined whether you need the fifth argument, test form2mail.php with a very simple form like this:
    <form id="form1" name="form1" method="post" action="form2mail.php">
      <p>
        <label for="name">Name:</label>
        <input type="text" name="name" id="name" />
      </p>
      <p>
        <label for="email">Email:</label>
        <input type="text" name="email" id="email" />
      </p>
      <p>
        <label>
          <input type="checkbox" name="options[]" value="boat cleaning" id="options_0" />
          Boat cleaning</label>
        <br />
        <label>
          <input type="checkbox" name="options[]" value="RV cleaning" id="options_1" />
          RV cleaning</label>
        <br />
        <label>
          <input type="checkbox" name="options[]" value="motorcycle cleaning" id="options_2" />
          Motorcycle cleaning</label>
      </p>
      <p>
        <input type="submit" name="send" id="send" value="Submit" />
      </p>
    </form>
    If that works, you can start to make the form more complex and add back your JavaScript validation.

  • .php mailer HELP!?

    I was wondering if someone with a little more experience could take a moment to look this over for me. I created a html form that corresponds with the .php file below and for the most part it works perfectly. The only flow is that it sends me one email with all of the info from the form and then also another blank duplicate email. Any idea what's causing this? Could it be from my server?
    <?php
    /* Subject and Email Variables */
    $emailSubject = 'Website Reservation Request';
    $webMaster = '[email protected]';
    /* Gathering Data Variables */
    $name = $_POST['name'];
    $email = $_POST['email'];
    $telephone = $_POST['telephone'];
    $besttime = $_POST['besttime'];
    $address = $_POST['address'];
    $sitetype = $_POST['sitetype'];
    $rentaltype = $_POST['rentaltype'];
    $startmonth =$_POST['startmonth'];
    $startday =$_POST['startday'];
    $endmonth =$_POST['endmonth'];
    $endday =$_POST['endday'];
    $pet = $_POST['pet'];
    $description = $_POST['description'];
    $comments = $_POST['comments'];
    $adults = $_POST['adults'];
    $children = $_POST['children'];
    $locater = $_POST['locater'];
    $body = <<<EOD
    <br><br><strong>
    Name: </strong>$name <br><br>
    <strong>Email: </strong>$email <br><br>
    <strong>Telephone: </strong>$telephone <br><br>
    <strong>Best time to contact: </strong>$besttime <br>
    <br>
    <strong>Address: </strong>$address <br>
    <br>
    <strong>Site Type: </strong>$sitetype <br><br>
    <strong>Rental Type: </strong>$rentaltype <br>
    <br><strong>Number of Guests: </strong>$adults Adults, $children Children <br>
    <strong><br><strong>Number of Pets: </strong>$pet <br>
    Dates: </strong>$startmonth $startday to $endmonth $endday <br>
    <br>
    <strong>Equipment Description: </strong>$description <br>
    <br><strong>How did you hear about us: </strong>$locater <br>
    <br>
    <strong>Additional Comments: </strong>$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
    EOD;
    echo "$theResults";
    ?>

    Impossible to say based on what has been posted here. If you look at the following section of code, it looks as though the forum software has swallowed part of your code:
    /* Results rendered as HTML */
    $theResults = <<<EOD
    EOD;
    echo "$theResults";
    See the following post for instructions on how to post code: http://forums.adobe.com/thread/427712.
    However, from what's visible so far, there should be no reason for a second email.

  • ?php mail.. position question

    Fairly standard question that I have noticed lots of .asp
    comments on forum.
    I have a registration form that inserts a record and then
    re-directs to a register success page.
    I also want the registersuccess page (or alternatively form
    page) to automatically send an e-mail to me, including certain
    information entered into the form fields - namely the unique
    identifier (email address). This I can set as a hyperlink to allow
    me to connect directly to that record on-line.
    I've sussed that this is the line I want to use in the
    registersuccess page:
    <?php mail ("[email protected]", "There is a new Site
    Registration", $email);?>
    Call me stupid but I cannot work out how to propogate
    "$email" from a form field variable in the previous page if no
    information is being passed from the previous page.
    I have tried to include ?EMAIL=<?php echo
    $POST_VARS['emailtextfield'];?> into the redirection address
    when the form is submitted but I get an error.
    I am now trying to find out where I can put my "mail" code in
    the first form page but am having great difficulty as it is now
    complicated by form checks and duplicate checks.
    Can anyone help?

    On 22 Mar 2007 in macromedia.dreamweaver.appdev,
    RichardODreamweaver
    wrote:
    > I am now trying to find out where I can put my "mail"
    code in the
    > first form page but am having great difficulty as it is
    now
    > complicated by form checks and duplicate checks.
    In the script which processes the form (<form
    method="POST"
    action="thisisthefileyouwant.php">), find where the insert
    behavior
    ends. Just after that, you put your code to send the email to
    you.
    The visitor's entered email will still be in
    $_POST['emailFieldName'].
    So:
    <?php
    // Code to insert data ends here
    $to = '[email protected]';
    $subject = 'Record inserted';
    $body = 'This record was inserted: EMail: ' .
    $_POST['emailFieldName'];
    mail($to, $subject, $body);
    ?>
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/contact.php

  • How do i change the path of data ajax false from returning to homepage, when using a PHP mail form in jquery mobile?

    I have a put a php mail form in the quote page of my mobile site. However when i send the form it returns to the route page rather than the quote page, i have used the data ajax false action as i dont want to send via ajax. i have left the thanks page blank as i want it to remain on the same page showing sent or declined message.  Can someone help please? 
    <?php
    // OPTIONS - PLEASE CONFIGURE THESE BEFORE USE!
    $yourEmail = "[email protected]"; // the email address you wish to receive these mails through
    $yourWebsite = "www.firstcalltransport.co.uk"; // the name of your website
    $thanksPage = ''; // URL to 'thanks for sending mail' page; leave empty to keep message on the same page
    $maxPoints = 4; // max points a person can hit before it refuses to submit - recommend 4
    $requiredFields = "name,email,collection,delivery,comments"; // names of the fields you'd like to be required as a minimum, separate each field with a comma
    // DO NOT EDIT BELOW HERE
    $error_msg = array();
    $result = null;
    $requiredFields = explode(",", $requiredFields);
    function clean($data) {
      $data = trim(stripslashes(strip_tags($data)));
      return $data;
    function isBot() {
      $bots = array("Indy", "Blaiz", "Java", "libwww-perl", "Python", "OutfoxBot", "User-Agent", "PycURL", "AlphaServer", "T8Abot", "Syntryx", "WinHttp", "WebBandit", "nicebot", "Teoma", "alexa", "froogle", "inktomi", "looksmart", "URL_Spider_SQL", "Firefly", "NationalDirectory", "Ask Jeeves", "TECNOSEEK", "InfoSeek", "WebFindBot", "girafabot", "crawler", "www.galaxy.com", "Googlebot", "Scooter", "Slurp", "appie", "FAST", "WebBug", "Spade", "ZyBorg", "rabaz");
      foreach ($bots as $bot)
      if (stripos($_SERVER['HTTP_USER_AGENT'], $bot) !== false)
      return true;
      if (empty($_SERVER['HTTP_USER_AGENT']) || $_SERVER['HTTP_USER_AGENT'] == " ")
      return true;
      return false;
    if ($_SERVER['REQUEST_METHOD'] == "POST") {
      if (isBot() !== false)
      $error_msg[] = "No bots please! UA reported as: ".$_SERVER['HTTP_USER_AGENT'];
      // lets check a few things - not enough to trigger an error on their own, but worth assigning a spam score..
      // score quickly adds up therefore allowing genuine users with 'accidental' score through but cutting out real spam
      $points = (int)0;
      foreach ($badwords as $word)
      if (
      strpos(strtolower($_POST['comments']), $word) !== false ||
      strpos(strtolower($_POST['name']), $word) !== false
      $points += 2;
      if (strpos($_POST['comments'], "http://") !== false || strpos($_POST['comments'], "www.") !== false)
      $points += 2;
      if (isset($_POST['nojs']))
      $points += 1;
      if (preg_match("/(<.*>)/i", $_POST['comments']))
      $points += 2;
      if (strlen($_POST['name']) < 3)
      $points += 1;
      if (strlen($_POST['comments']) < 15 || strlen($_POST['comments'] > 1500))
      $points += 2;
      if (preg_match("/[bcdfghjklmnpqrstvwxyz]{7,}/i", $_POST['comments']))
      $points += 1;
      // end score assignments
      foreach($requiredFields as $field) {
      trim($_POST[$field]);
      if (!isset($_POST[$field]) || empty($_POST[$field]) && array_pop($error_msg) != "Please fill in all the required fields and submit again.\r\n")
      $error_msg[] = "Please fill in all the required fields and submit again.";
      if (!empty($_POST['name']) && !preg_match("/^[a-zA-Z-'\s]*$/", stripslashes($_POST['name'])))
      $error_msg[] = "The name field must not contain special characters.\r\n";
      if (!empty($_POST['email']) && !preg_match('/^([a-z0-9])(([-a-z0-9._])*([a-z0-9]))*\@([a-z0-9])(([a-z0-9-])*([a-z0-9]))+ ' . '(\.([a-z0-9])([-a-z0-9_-])?([a-z0-9])+)+$/i', strtolower($_POST['email'])))
      $error_msg[] = "That is not a valid e-mail address.\r\n";
      if (!empty($_POST['url']) && !preg_match('/^(http|https):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\ /?/i', $_POST['url']))
      $error_msg[] = "Invalid website url.\r\n";
      if ($error_msg == NULL && $points <= $maxPoints) {
      $subject = "Automatic Form Email";
      $message = "You received this e-mail message through your website: \n\n";
      foreach ($_POST as $key => $val) {
      if (is_array($val)) {
      foreach ($val as $subval) {
      $message .= ucwords($key) . ": " . clean($subval) . "\r\n";
      } else {
      $message .= ucwords($key) . ": " . clean($val) . "\r\n";
      $message .= "\r\n";
      $message .= 'IP: '.$_SERVER['REMOTE_ADDR']."\r\n";
      $message .= 'Browser: '.$_SERVER['HTTP_USER_AGENT']."\r\n";
      $message .= 'Points: '.$points;
      if (strstr($_SERVER['SERVER_SOFTWARE'], "Win")) {
      $headers   = "From: $yourEmail\r\n";
      } else {
      $headers   = "From: $yourWebsite <$yourEmail>\r\n";
      $headers  .= "Reply-To: {$_POST['email']}\r\n";
      if (mail($yourEmail,$subject,$message,$headers)) {
      if (!empty($thanksPage)) {
      header("Location: $thanksPage");
      exit;
      } else {
      $result = 'Your mail was successfully sent.';
      $disable = true;
      } else {
      $error_msg[] = 'Your mail could not be sent this time. ['.$points.']';
      } else {
      if (empty($error_msg))
      $error_msg[] = 'Your mail looks too much like spam, and could not be sent this time. ['.$points.']';
    function get_data($var) {
      if (isset($_POST[$var]))
      echo htmlspecialchars($_POST[$var]);
    ?>
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="CSS/stylesheetnew.css" rel="stylesheet" type="text/css">
    <link href="../jquery-mobile/jquery.mobile-1.0a3.min.css" rel="stylesheet" type="text/css">
    <script src="../jquery-mobile/jquery-1.5.min.js" type="text/javascript"></script>
    <script src="../jquery-mobile/jquery.mobile-1.0a3.min.js" type="text/javascript"></script>
    <style type="text/css">
      p.error, p.success {
      font-weight: bold;
      padding: 10px;
      border: 1px solid;
      p.error {
      background: #ffc0c0;
      color: #F00;
      p.success {
      background: #b3ff69;
      color: #4fa000;
    </style>
    </head>
    <body>
    <div data-role="page" id="home">
      <div data-role="header" data-position="fixed">
       <h1>FIRSTCALL TRANSPORT</h1>
    </div>
        <div data-role="navbar" data-position="fixed">
                                    <ul>
                                      <li><a href="#about">About</a></li>
                                      <li><a href="#services">Services</a></li>
                                      <li><a href="#contact">Contact</a></li>
                                      <li><a href="#quote">Quote</a></li>
                                    </ul>
      </div>
      <div data-role="content"> </div>
         <div data-role="footer" data-position="fixed" > </div>
    </div>
    </div>
    <div data-role="page" id="quote">
      <div data-role="header" data-position="fixed">
        <h1>GET A QUOTE</h1>
      </div>
      <div data-role="content">
       <?php
    if (!empty($error_msg)) {
      echo '<p class="error">ERROR: '. implode("<br />", $error_msg) . "</p>";
    if ($result != NULL) {
      echo '<p class="success">'. $result . "</p>";
    ?>
    <form action="<?php echo basename(__FILE__); ?>" method="post" data-ajax="false"  >
    <noscript>
      <p><input type="hidden" name="nojs" id="nojs" /></p>
    </noscript>
    <p>
      <label for="name">Name: *</label>
      <input type="text" name="name" id="name" value="<?php get_data("name"); ?>" /><br />
      <label for="email">E-mail: *</label>
      <input type="text" name="email" id="email" value="<?php get_data("email"); ?>" /><br />
            <label for="company">Company:</label>
      <input type="text" name="company" id="company" value="<?php get_data("company"); ?>" /><br />
      <label for="collection">Collection: *</label>
      <input type="text" name="collection" id="collection" value="<?php get_data("collection"); ?>" /><br />
        <label for="delivery">Delivery: *</label>
      <input type="text" name="delivery" id="delivery" value="<?php get_data("delivery"); ?>" /><br />
      <label for="comments">Message: *</label>
      <textarea name="comments" id="comments" rows="5" cols="20"><?php get_data("comments"); ?></textarea><br />
      <input type="submit" name="submit" id="submit" value="Send" <?php if (isset($disable) && $disable === true) echo ' disabled="disabled"'; ?> />
    </p>
    </form>  </div>
         <div data-role="footer" >  </div>
      </div>
      </div>           
    </body>
    </html>

    My wife has left me for four weeks, favouring to be with our son who lives 4,000 km away. I now have to cook for myself and the steaks taste horrible. What am I doing wrong?
    If you do not know what I have (not) done to make the steak taste horrible, my question is as hard to answer as your question above.
    Please give us more info like giving us the code that sends the page to the homepage rather than to the previous page.

  • PHP mail() function not working

    Hello, I am having a problem sending mail with php while hosting my own website with apache on my mac. First of all I would like to note that I do not have a large background with web hosting and php. Everything that I did so far was just suggestions from online articles and other forums, so please include detail with any answers.
    I have apache started, and my website hosted just fine. I can also view php pages so I know php is running too. My problem is using the php mail() function.
    I have a simple form in my site who's action attribute is set to results.php. In the results.php file I have the mail() function (along with html code displaying "thank you...blah blah blah") sending info from the form to my email address. I never get an error on the php side, but my mail never gets sent.
    Is there some type of setting in a config file that need to be turned on or changed?
    Here is what I have done/modified so far from my research from online articles. i dont know what some of them mean, but followed the steps correctly:
    Edited the /etc/hostconfig file and added the line MAILSERVER=-YES-
    Edited the /etc/postfix/main.cf file and uncommented the #myhostname = ...line and made it "myhostname = localhost" (without quotes)
    Edited the php.ini file to the following - The line under where it says
    ; For unix only. You may supply arguments as well (default: "sendmail -t -i")
    Sendmail_path = usr/sbin/sendmail -t -i
    I opened the mail.log file and here are some entries from the other day:
    Code:
    Jul 9 08:16:50 new-host postfix/master[689]: daemon started -- version 2.4.3, configuration /etc/postfix
    Jul 9 08:16:50 new-host postfix/qmgr[691]: 4B4DC2E8331: from=<[email protected]>, size=323, nrcpt=1 (queue active)
    Jul 9 08:16:50 new-host postfix/qmgr[691]: 7A8242EE3C0: from=<[email protected]>, size=280, nrcpt=1 (queue active)
    Jul 9 08:16:50 new-host postfix/qmgr[691]: B1C052EE3C4: from=<[email protected]>, size=280, nrcpt=1 (queue active)
    Jul 9 08:16:50 new-host postfix/qmgr[691]: C281C2EE3C5: from=<[email protected]>, size=327, nrcpt=1 (queue active)
    Jul 9 08:16:50 new-host postfix/smtp[694]: 4B4DC2E8331: to=<[email protected]>, relay=relay.verizon.net[206.46.232.11]:25, delay=213262, delays=213261/0.05/0.86/0, dsn=4.0.0, status=deferred (host relay.verizon.net[206.46.232.11] refused to talk to me: 571 Email from 74.102.108.224 is currently blocked by Verizon Online's anti-spam system. The email sender or Email Service Provider may visit http://www.verizon.net/whitelist and request removal of the block. 100709)
    Jul 9 08:16:51 new-host postfix/pickup[690]: 0F5D22EE4DB: uid=70 from=<_www>
    Jul 9 08:16:51 new-host postfix/cleanup[692]: 0F5D22EE4DB: message-id=<20100709121651.0F5D22EE4DB@localhost>
    Jul 9 08:16:51 new-host postfix/qmgr[691]: 0F5D22EE4DB: from=<[email protected]>, size=333, nrcpt=1 (queue active)
    Jul 9 08:16:51 new-host postfix/smtp[695]: 7A8242EE3C0: to=<[email protected]>, relay=relay.verizon.net[206.46.232.11]:25, delay=27074, delays=27073/0.02/1.1/0, dsn=4.0.0, status=deferred (host relay.verizon.net[206.46.232.11] refused to talk to me: 571 Email from 74.102.108.224 is currently blocked by Verizon Online's anti-spam system. The email sender or Email Service Provider may visit http://www.verizon.net/whitelist and request removal of the block. 100709)
    Jul 9 08:16:51 new-host postfix/smtp[697]: C281C2EE3C5: to=<[email protected]>, relay=relay.verizon.net[206.46.232.11]:25, delay=26817, delays=26816/0.02/1.1/0, dsn=4.0.0, status=deferred (host relay.verizon.net[206.46.232.11] refused to talk to me: 571 Email from 74.102.108.224 is currently blocked by Verizon Online's anti-spam system. The email sender or Email Service Provider may visit http://www.verizon.net/whitelist and request removal of the block. 100709)
    Jul 9 08:16:51 new-host postfix/smtp[696]: B1C052EE3C4: to=<[email protected]>, relay=relay.verizon.net[206.46.232.11]:25, delay=27174, delays=27173/0.01/1.1/0, dsn=4.0.0, status=deferred (host relay.verizon.net[206.46.232.11] refused to talk to me: 571 Email from 74.102.108.224 is currently blocked by Verizon Online's anti-spam system. The email sender or Email Service Provider may visit http://www.verizon.net/whitelist and request removal of the block. 100709)
    Jul 9 08:17:23 new-host postfix/smtp[694]: connect to mx1.comcast.net[76.96.62.116]: Operation timed out (port 25)
    Jul 9 08:17:50 new-host postfix/master[689]: master exit time has arrived
    Any other suggestions on how to get this to work? I have also created a simple php file that sends mail without retreiving info from a form and also tried using several different email addresses to send to and from, but still nothing

    Edited the /etc/postfix/main.cf file and uncommented the #myhostname = ...line and made it "myhostname = localhost" (without quotes) Change that to mail.yourispname.com Then run sudo postfix reload and see if it sends mail. The reason being, is that you don't have a fully qualified domain name.
    And make that reflective in your mail() function file/template.
    Message was edited by: doug pennington

  • Why doesn't JavaMail work, but PHP mailer does?

    I am trying to use JavaMail to send emails from my webserver. I've plugged in the host and the addresses are valid, but I am getting 550 errors. I've searched and found that I should change a setting on my mail server to allow relays from my webserver. However, we have a PHP mailer working on our webserver now, so presumably that relay is already in there. Why does the PHP work but the JavaMail doesn't?

    Can you turn on session debugging and post the protocol trace that shows the failure?
    The error codes alone are not enough, you usually need to look at the message included
    with the error code.
    Also, have you found the JavaMail FAQ?

  • Forms 6i, open default mail client and add attachment to message

    Hi,
    I would like to use some functionality in my forms application. I want call some action, that opens default mail client in windows platform and add some attachment to message. I want to do this for my reports. I am exporting reports to PDF files. I am using oracle forms / reports 6.0.8.12.1 version. And I cant use build-in PDF export functionality, because exported PDF files are in old PDF version and I have problem with Czech charakters. So I am using my own virtual PDF printer for printing reports. A now I would like to send report as mail attachment. I know that there is this functionality in report preview. When I click button with letter image (showed on screenshot at http://img20.imagevenue.com/img.php?image=00067_screen_122_899lo.JPG) the default mail client is opened in this is created new messages with report (eps) in attachment.
    That is what i need. Only open default mail client and add own attachment to message.
    I found only one solution for Outlook, but I need open default mail client (for example Mozilla Thunderbird etc.)
    Can You help me? Or send some solution how it is solved in report previewer?
    Thank you.

    Hi,
    metalink Note 47498.1 "Programmatically Sending a Fax/Email via Microsoft Exchange" may be a good documentation for you. Have a look in there.
    regards,
    Heike

  • My App store doesn´t work under my user. Everything is ok if I start with a guest user. I have a Yosemite MacBook Pro. How can I solve this? Because I'm unable to open the App Store, Mail, Contacts and so on. Please can you help me.

    My App store doesn´t work under my user. Everything is ok if I start with a guest user. I have a Yosemite MacBook Pro. How can I solve this? Because I'm unable to open the App Store, Mail, Contacts and so on. Please can you help me.

    Here it is. Hope that helps. Thank You.
    28/01/15 21:57:12,043 com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.
    28/01/15 21:57:12,043 secinitd[257]: unable to get AddressBook lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718d251b0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.AddressBookLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,044 secinitd[257]: unable to get Calendars lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718d25ec0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.CalendarLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,046 App Store[1494]: libcoreservices: _dirhelper: 523: mkdir: path=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/com.apple.appstore/ modes[1]=0700: Permission denied
    28/01/15 21:57:12,051 secinitd[257]: unable to get AddressBook lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718c407a0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.AddressBookLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,051 secinitd[257]: unable to get Calendars lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718c41440 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.CalendarLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,053 CalendarAgent[1495]: libcoreservices: _dirhelper: 523: mkdir: path=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/com.apple.CalendarAgent/ modes[1]=0700: Permission denied
    28/01/15 21:57:12,056 com.apple.xpc.launchd[1]: (com.apple.ReportCrash[1497]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash
    28/01/15 21:57:12,427 com.apple.xpc.launchd[1]: (com.apple.appstore.18776[1494]) Service exited due to signal: Illegal instruction: 4
    28/01/15 21:57:12,472 ReportCrash[1497]: Saved crash report for App Store[1494] version 2.0 (376.6.2) to /Users/HV/Library/Logs/DiagnosticReports/App Store_2015-01-28-215712_MacBook-Pro-de-HV.crash
    28/01/15 21:57:12,485 ReportCrash[1497]: Removing excessive log: file:///Users/HV/Library/Logs/DiagnosticReports/App%20Store_2015-01-27-212748_M acBook-Pro-de-HV.crash
    28/01/15 21:57:12,505 AddressBookSourceSync[1498]: Could not get real path for Address Book lock folder: open() for F_GETPATH failed.
    28/01/15 21:57:12,506 AddressBookSourceSync[1498]: *** Assertion failure in -[ABProcessSharedLock initWithLockFilePath:localLock:fileServices:], /SourceCache/AddressBook/AddressBook-1563/Framework/AddressBookUI/ABProcessShar edLock.m:57
    28/01/15 21:57:12,507 AddressBookSourceSync[1498]: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: lockFilePath != nil'
    *** First throw call stack:
      0   CoreFoundation                      0x00007fff8951a66c __exceptionPreprocess + 172
      1   libobjc.A.dylib                     0x00007fff8a6fb76e objc_exception_throw + 43
      2   CoreFoundation                      0x00007fff8951a44a +[NSException raise:format:arguments:] + 106
      3   Foundation                          0x00007fff8decc3a9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
      4   AddressBook                         0x00007fff8b9a1c0d -[ABProcessSharedLock initWithLockFilePath:localLock:fileServices:] + 144
      5   AddressBook                         0x00007fff8ba97f79 +[ABProcessSharedLock recursiveSharedLockWithLockFilePath:] + 97
      6   AddressBook                         0x00007fff8b9a15a2 +[ABAddressBook initializeFileLock] + 84
      7   AddressBook                         0x00007fff8b99e443 -[ABAddressBook nts_InitDefaultContactManager] + 153
      8   AddressBook                         0x00007fff8b99e35b +[ABAddressBook nts_SharedAddressBook] + 72
      9   AddressBook                         0x00007fff8b99e273 +[ABAddressBook nts_CreateSharedAddressBook] + 48
      10  AddressBook                         0x00007fff8b99e0df +[ABAddressBook sharedAddressBook] + 67
      11  AddressBook                         0x00007fff8b99d3a1 +[ABAddressBook addressBookWithDatabaseDirectory:options:] + 54
      12  AddressBook                         0x00007fff8ba87370 -[PHXSource addressBook] + 146
      13  CardDAVPlugin                       0x00000001096cbfd0 -[PHXCardDAVSource addressBook] + 47
      14  AddressBookSourceSync               0x00000001075ca28e AddressBookSourceSync + 8846
      15  AddressBook                         0x00007fff8b9a4d2e __55-[NSArray(ABArrayAdditions) abArrayWithResultsOfBlock:]_block_invoke + 16
      16  CoreFoundation                      0x00007fff8943b385 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 133
      17  CoreFoundation                      0x00007fff8943aa89 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 313
      18  AddressBook                         0x00007fff8b9a4d04 -[NSArray(ABArrayAdditions) abArrayWithResultsOfBlock:] + 168
      19  AddressBook                         0x00007fff8b9a4c46 -[NSArray(ABArrayAdditions) _abMap:] + 91
      20  AddressBookSourceSync               0x00000001075ca05e AddressBookSourceSync + 8286
      21  AddressBookSourceSync               0x00000001075ca4fb AddressBookSourceSync + 9467
      22  libdyld.dylib                       0x00007fff933045c9 start + 1
      23  ???                                 0x0000000000000001 0x0 + 1
    28/01/15 21:57:12,606 secinitd[257]: unable to get AddressBook lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718f369d0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.AddressBookLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,607 secinitd[257]: unable to get Calendars lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718f375a0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.CalendarLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,609 LaterAgent[1500]: libcoreservices: _dirhelper: 523: mkdir: path=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/com.apple.lateragent/ modes[1]=0700: Permission denied
    28/01/15 21:57:12,619 Problem Reporter[1499]: Failed to connect (_imageWell) outlet from (ProblemReportWindowController) to (NSImageView): missing setter or instance variable
    28/01/15 21:57:12,682 com.apple.xpc.launchd[1]: (com.apple.CalendarAgent[1495]) Service exited due to signal: Illegal instruction: 4
    28/01/15 21:57:12,682 com.apple.xpc.launchd[1]: (com.apple.CalendarAgent) Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
    28/01/15 21:57:12,713 ReportCrash[1497]: Saved crash report for CalendarAgent[1495] version 8.0 (316) to /Users/HV/Library/Logs/DiagnosticReports/CalendarAgent_2015-01-28-215712_MacBoo k-Pro-de-HV.crash
    28/01/15 21:57:12,746 ReportCrash[1497]: Removing excessive log: file:///Users/HV/Library/Logs/DiagnosticReports/CalendarAgent_2015-01-28-215343 _MacBook-Pro-de-HV.crash
    28/01/15 21:57:12,043 com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.
    28/01/15 21:57:12,043 secinitd[257]: unable to get AddressBook lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718d251b0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.AddressBookLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,044 secinitd[257]: unable to get Calendars lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718d25ec0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.CalendarLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,046 App Store[1494]: libcoreservices: _dirhelper: 523: mkdir: path=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/com.apple.appstore/ modes[1]=0700: Permission denied
    28/01/15 21:57:12,051 secinitd[257]: unable to get AddressBook lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718c407a0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.AddressBookLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,051 secinitd[257]: unable to get Calendars lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718c41440 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.CalendarLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,053 CalendarAgent[1495]: libcoreservices: _dirhelper: 523: mkdir: path=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/com.apple.CalendarAgent/ modes[1]=0700: Permission denied
    28/01/15 21:57:12,056 com.apple.xpc.launchd[1]: (com.apple.ReportCrash[1497]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash
    28/01/15 21:57:12,427 com.apple.xpc.launchd[1]: (com.apple.appstore.18776[1494]) Service exited due to signal: Illegal instruction: 4
    28/01/15 21:57:12,472 ReportCrash[1497]: Saved crash report for App Store[1494] version 2.0 (376.6.2) to /Users/HV/Library/Logs/DiagnosticReports/App Store_2015-01-28-215712_MacBook-Pro-de-HV.crash
    28/01/15 21:57:12,485 ReportCrash[1497]: Removing excessive log: file:///Users/HV/Library/Logs/DiagnosticReports/App%20Store_2015-01-27-212748_M acBook-Pro-de-HV.crash
    28/01/15 21:57:12,505 AddressBookSourceSync[1498]: Could not get real path for Address Book lock folder: open() for F_GETPATH failed.
    28/01/15 21:57:12,506 AddressBookSourceSync[1498]: *** Assertion failure in -[ABProcessSharedLock initWithLockFilePath:localLock:fileServices:], /SourceCache/AddressBook/AddressBook-1563/Framework/AddressBookUI/ABProcessShar edLock.m:57
    28/01/15 21:57:12,507 AddressBookSourceSync[1498]: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: lockFilePath != nil'
    *** First throw call stack:
      0   CoreFoundation                      0x00007fff8951a66c __exceptionPreprocess + 172
      1   libobjc.A.dylib                     0x00007fff8a6fb76e objc_exception_throw + 43
      2   CoreFoundation                      0x00007fff8951a44a +[NSException raise:format:arguments:] + 106
      3   Foundation                          0x00007fff8decc3a9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
      4   AddressBook                         0x00007fff8b9a1c0d -[ABProcessSharedLock initWithLockFilePath:localLock:fileServices:] + 144
      5   AddressBook                         0x00007fff8ba97f79 +[ABProcessSharedLock recursiveSharedLockWithLockFilePath:] + 97
      6   AddressBook                         0x00007fff8b9a15a2 +[ABAddressBook initializeFileLock] + 84
      7   AddressBook                         0x00007fff8b99e443 -[ABAddressBook nts_InitDefaultContactManager] + 153
      8   AddressBook                         0x00007fff8b99e35b +[ABAddressBook nts_SharedAddressBook] + 72
      9   AddressBook                         0x00007fff8b99e273 +[ABAddressBook nts_CreateSharedAddressBook] + 48
      10  AddressBook                         0x00007fff8b99e0df +[ABAddressBook sharedAddressBook] + 67
      11  AddressBook                         0x00007fff8b99d3a1 +[ABAddressBook addressBookWithDatabaseDirectory:options:] + 54
      12  AddressBook                         0x00007fff8ba87370 -[PHXSource addressBook] + 146
      13  CardDAVPlugin                       0x00000001096cbfd0 -[PHXCardDAVSource addressBook] + 47
      14  AddressBookSourceSync               0x00000001075ca28e AddressBookSourceSync + 8846
      15  AddressBook                         0x00007fff8b9a4d2e __55-[NSArray(ABArrayAdditions) abArrayWithResultsOfBlock:]_block_invoke + 16
      16  CoreFoundation                      0x00007fff8943b385 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 133
      17  CoreFoundation                      0x00007fff8943aa89 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 313
      18  AddressBook                         0x00007fff8b9a4d04 -[NSArray(ABArrayAdditions) abArrayWithResultsOfBlock:] + 168
      19  AddressBook                         0x00007fff8b9a4c46 -[NSArray(ABArrayAdditions) _abMap:] + 91
      20  AddressBookSourceSync               0x00000001075ca05e AddressBookSourceSync + 8286
      21  AddressBookSourceSync               0x00000001075ca4fb AddressBookSourceSync + 9467
      22  libdyld.dylib                       0x00007fff933045c9 start + 1
      23  ???                                 0x0000000000000001 0x0 + 1
    28/01/15 21:57:12,606 secinitd[257]: unable to get AddressBook lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718f369d0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.AddressBookLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,607 secinitd[257]: unable to get Calendars lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718f375a0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.CalendarLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,609 LaterAgent[1500]: libcoreservices: _dirhelper: 523: mkdir: path=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/com.apple.lateragent/ modes[1]=0700: Permission denied
    28/01/15 21:57:12,619 Problem Reporter[1499]: Failed to connect (_imageWell) outlet from (ProblemReportWindowController) to (NSImageView): missing setter or instance variable
    28/01/15 21:57:12,682 com.apple.xpc.launchd[1]: (com.apple.CalendarAgent[1495]) Service exited due to signal: Illegal instruction: 4
    28/01/15 21:57:12,682 com.apple.xpc.launchd[1]: (com.apple.CalendarAgent) Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
    28/01/15 21:57:12,713 ReportCrash[1497]: Saved crash report for CalendarAgent[1495] version 8.0 (316) to /Users/HV/Library/Logs/DiagnosticReports/CalendarAgent_2015-01-28-215712_MacBoo k-Pro-de-HV.crash
    28/01/15 21:57:12,746 ReportCrash[1497]: Removing excessive log: file:///Users/HV/Library/Logs/DiagnosticReports/CalendarAgent_2015-01-28-215343 _MacBook-Pro-de-HV.crash
    28/01/15 21:57:12,043 com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.
    28/01/15 21:57:12,043 secinitd[257]: unable to get AddressBook lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718d251b0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.AddressBookLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,044 secinitd[257]: unable to get Calendars lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718d25ec0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.CalendarLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,046 App Store[1494]: libcoreservices: _dirhelper: 523: mkdir: path=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/com.apple.appstore/ modes[1]=0700: Permission denied
    28/01/15 21:57:12,051 secinitd[257]: unable to get AddressBook lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718c407a0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.AddressBookLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,051 secinitd[257]: unable to get Calendars lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718c41440 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.CalendarLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,053 CalendarAgent[1495]: libcoreservices: _dirhelper: 523: mkdir: path=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/com.apple.CalendarAgent/ modes[1]=0700: Permission denied
    28/01/15 21:57:12,056 com.apple.xpc.launchd[1]: (com.apple.ReportCrash[1497]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash
    28/01/15 21:57:12,427 com.apple.xpc.launchd[1]: (com.apple.appstore.18776[1494]) Service exited due to signal: Illegal instruction: 4
    28/01/15 21:57:12,472 ReportCrash[1497]: Saved crash report for App Store[1494] version 2.0 (376.6.2) to /Users/HV/Library/Logs/DiagnosticReports/App Store_2015-01-28-215712_MacBook-Pro-de-HV.crash
    28/01/15 21:57:12,485 ReportCrash[1497]: Removing excessive log: file:///Users/HV/Library/Logs/DiagnosticReports/App%20Store_2015-01-27-212748_M acBook-Pro-de-HV.crash
    28/01/15 21:57:12,505 AddressBookSourceSync[1498]: Could not get real path for Address Book lock folder: open() for F_GETPATH failed.
    28/01/15 21:57:12,506 AddressBookSourceSync[1498]: *** Assertion failure in -[ABProcessSharedLock initWithLockFilePath:localLock:fileServices:], /SourceCache/AddressBook/AddressBook-1563/Framework/AddressBookUI/ABProcessShar edLock.m:57
    28/01/15 21:57:12,507 AddressBookSourceSync[1498]: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: lockFilePath != nil'
    *** First throw call stack:
      0   CoreFoundation                      0x00007fff8951a66c __exceptionPreprocess + 172
      1   libobjc.A.dylib                     0x00007fff8a6fb76e objc_exception_throw + 43
      2   CoreFoundation                      0x00007fff8951a44a +[NSException raise:format:arguments:] + 106
      3   Foundation                          0x00007fff8decc3a9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
      4   AddressBook                         0x00007fff8b9a1c0d -[ABProcessSharedLock initWithLockFilePath:localLock:fileServices:] + 144
      5   AddressBook                         0x00007fff8ba97f79 +[ABProcessSharedLock recursiveSharedLockWithLockFilePath:] + 97
      6   AddressBook                         0x00007fff8b9a15a2 +[ABAddressBook initializeFileLock] + 84
      7   AddressBook                         0x00007fff8b99e443 -[ABAddressBook nts_InitDefaultContactManager] + 153
      8   AddressBook                         0x00007fff8b99e35b +[ABAddressBook nts_SharedAddressBook] + 72
      9   AddressBook                         0x00007fff8b99e273 +[ABAddressBook nts_CreateSharedAddressBook] + 48
      10  AddressBook                         0x00007fff8b99e0df +[ABAddressBook sharedAddressBook] + 67
      11  AddressBook                         0x00007fff8b99d3a1 +[ABAddressBook addressBookWithDatabaseDirectory:options:] + 54
      12  AddressBook                         0x00007fff8ba87370 -[PHXSource addressBook] + 146
      13  CardDAVPlugin                       0x00000001096cbfd0 -[PHXCardDAVSource addressBook] + 47
      14  AddressBookSourceSync               0x00000001075ca28e AddressBookSourceSync + 8846
      15  AddressBook                         0x00007fff8b9a4d2e __55-[NSArray(ABArrayAdditions) abArrayWithResultsOfBlock:]_block_invoke + 16
      16  CoreFoundation                      0x00007fff8943b385 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 133
      17  CoreFoundation                      0x00007fff8943aa89 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 313
      18  AddressBook                         0x00007fff8b9a4d04 -[NSArray(ABArrayAdditions) abArrayWithResultsOfBlock:] + 168
      19  AddressBook                         0x00007fff8b9a4c46 -[NSArray(ABArrayAdditions) _abMap:] + 91
      20  AddressBookSourceSync               0x00000001075ca05e AddressBookSourceSync + 8286
      21  AddressBookSourceSync               0x00000001075ca4fb AddressBookSourceSync + 9467
      22  libdyld.dylib                       0x00007fff933045c9 start + 1
      23  ???                                 0x0000000000000001 0x0 + 1
    28/01/15 21:57:12,606 secinitd[257]: unable to get AddressBook lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718f369d0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.AddressBookLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,607 secinitd[257]: unable to get Calendars lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718f375a0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.CalendarLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    28/01/15 21:57:12,609 LaterAgent[1500]: libcoreservices: _dirhelper: 523: mkdir: path=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/com.apple.lateragent/ modes[1]=0700: Permission denied
    28/01/15 21:57:12,619 Problem Reporter[1499]: Failed to connect (_imageWell) outlet from (ProblemReportWindowController) to (NSImageView): missing setter or instance variable
    28/01/15 21:57:12,682 com.apple.xpc.launchd[1]: (com.apple.CalendarAgent[1495]) Service exited due to signal: Illegal instruction: 4
    28/01/15 21:57:12,682 com.apple.xpc.launchd[1]: (com.apple.CalendarAgent) Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
    28/01/15 21:57:12,713 ReportCrash[1497]: Saved crash report for CalendarAgent[1495] version 8.0 (316) to /Users/HV/Library/Logs/DiagnosticReports/CalendarAgent_2015-01-28-215712_MacBoo k-Pro-de-HV.crash
    28/01/15 21:57:12,746 ReportCrash[1497]: Removing excessive log: file:///Users/HV/Library/Logs/DiagnosticReports/CalendarAgent_2015-01-28-215343 _MacBook-Pro-de-HV.crash
    Jan 28 21:57:12 MBP-de-HV com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): The _DirtyJetsamMemoryLimit key is not available on this platform.
    Jan 28 21:57:12 MBP-de-HV.lan secinitd[257]: unable to get AddressBook lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718d251b0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.AddressBookLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    Jan 28 21:57:12 MBP-de-HV.lan secinitd[257]: unable to get Calendars lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718d25ec0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.CalendarLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    Jan 28 21:57:12 MBP-de-HV App Store[1494]: libcoreservices: _dirhelper: 523: mkdir: path=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/com.apple.appstore/ modes[1]=0700: Permission denied
    Jan 28 21:57:12 MBP-de-HV.lan secinitd[257]: unable to get AddressBook lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718c407a0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.AddressBookLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    Jan 28 21:57:12 MBP-de-HV.lan secinitd[257]: unable to get Calendars lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718c41440 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.CalendarLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    Jan 28 21:57:12 MBP-de-HV CalendarAgent[1495]: libcoreservices: _dirhelper: 523: mkdir: path=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/com.apple.CalendarAgent/ modes[1]=0700: Permission denied
    Jan 28 21:57:12 MBP-de-HV com.apple.xpc.launchd[1] (com.apple.ReportCrash[1497]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash
    Jan 28 21:57:12 MBP-de-HV com.apple.xpc.launchd[1] (com.apple.appstore.18776[1494]): Service exited due to signal: Illegal instruction: 4
    Jan 28 21:57:12 MBP-de-HV.lan ReportCrash[1497]: Saved crash report for App Store[1494] version 2.0 (376.6.2) to /Users/HV/Library/Logs/DiagnosticReports/App Store_2015-01-28-215712_MacBook-Pro-de-HV.crash
    Jan 28 21:57:12 MBP-de-HV.lan ReportCrash[1497]: Removing excessive log: file:///Users/HV/Library/Logs/DiagnosticReports/App%20Store_2015-01-27-212748_M acBook-Pro-de-HV.crash
    Jan 28 21:57:12 MBP-de-HV.lan AddressBookSourceSync[1498]: Could not get real path for Address Book lock folder: open() for F_GETPATH failed.
    Jan 28 21:57:12 MBP-de-HV.lan AddressBookSourceSync[1498]: *** Assertion failure in -[ABProcessSharedLock initWithLockFilePath:localLock:fileServices:], /SourceCache/AddressBook/AddressBook-1563/Framework/AddressBookUI/ABProcessShar edLock.m:57
    Jan 28 21:57:12 MBP-de-HV.lan AddressBookSourceSync[1498]: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: lockFilePath != nil'
      *** First throw call stack:
      0   CoreFoundation                      0x00007fff8951a66c __exceptionPreprocess + 172
      1   libobjc.A.dylib                     0x00007fff8a6fb76e objc_exception_throw + 43
      2   CoreFoundation                      0x00007fff8951a44a +[NSException raise:format:arguments:] + 106
      3   Foundation                          0x00007fff8decc3a9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
      4   AddressBook                         0x00007fff8b9a1c0d -[ABProcessSharedLock initWithLockFilePath:localLock:fileServices:] + 144
      5   AddressBook                         0x00007fff8ba97f79 +[ABProcessSharedLock recursiveSharedLockWithLockFilePath:] + 97
      6   AddressBook                         0x00007fff8b9a15a2 +[ABAddressBook initializeFileLock] + 84
      7   AddressBook                         0x00007fff8b99e443 -[ABAddressBook nts_InitDefaultContactManager] + 153
      8   AddressBook                         0x00007fff8b99e35b +[ABAddressBook nts_SharedAddressBook] + 72
      9   AddressBook                         0x00007fff8b99e273 +[ABAddressBook nts_CreateSharedAddressBook] + 48
      10  AddressBook                         0x00007fff8b99e0df +[ABAddressBook sharedAddressBook] + 67
      11  AddressBook                         0x00007fff8b99d3a1 +[ABAddressBook addressBookWithDatabaseDirectory:options:] + 54
      12  AddressBook                         0x00007fff8ba87370 -[PHXSource addressBook] + 146
      13  CardDAVPlugin                       0x00000001096cbfd0 -[PHXCardDAVSource addressBook] + 47
      14  AddressBookSourceSync               0x00000001075ca28e AddressBookSourceSync + 8846
      15  AddressBook                         0x00007fff8b9a4d2e __55-[NSArray(ABArrayAdditions) abArrayWithResultsOfBlock:]_block_invoke + 16
      16  CoreFoundation                      0x00007fff8943b385 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 133
      17  CoreFoundation                      0x00007fff8943aa89 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 313
      18  AddressBook                         0x00007fff8b9a4d04 -[NSArray(ABArrayAdditions) abArrayWithResultsOfBlock:] + 168
      19  AddressBook                         0x00007fff8b9a4c46 -[NSArray(ABArrayAdditions) _abMap:] + 91
      20  AddressBookSourceSync               0x00000001075ca05e AddressBookSourceSync + 8286
      21  AddressBookSourceSync               0x00000001075ca4fb AddressBookSourceSync + 9467
      22  libdyld.dylib                       0x00007fff933045c9 start + 1
      23  ???                                 0x0000000000000001 0x0 + 1
    Jan 28 21:57:12 MBP-de-HV.lan secinitd[257]: unable to get AddressBook lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718f369d0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.AddressBookLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    Jan 28 21:57:12 MBP-de-HV.lan secinitd[257]: unable to get Calendars lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718f375a0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.CalendarLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    Jan 28 21:57:12 MBP-de-HV LaterAgent[1500]: libcoreservices: _dirhelper: 523: mkdir: path=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/com.apple.lateragent/ modes[1]=0700: Permission denied
    Jan 28 21:57:12 MBP-de-HV.lan Problem Reporter[1499]: Failed to connect (_imageWell) outlet from (ProblemReportWindowController) to (NSImageView): missing setter or instance variable
    Jan 28 21:57:12 MBP-de-HV com.apple.xpc.launchd[1] (com.apple.CalendarAgent[1495]): Service exited due to signal: Illegal instruction: 4
    Jan 28 21:57:12 MBP-de-HV com.apple.xpc.launchd[1] (com.apple.CalendarAgent): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
    Jan 28 21:57:12 MBP-de-HV.lan ReportCrash[1497]: Saved crash report for CalendarAgent[1495] version 8.0 (316) to /Users/HV/Library/Logs/DiagnosticReports/CalendarAgent_2015-01-28-215712_MacBoo k-Pro-de-HV.crash
    Jan 28 21:57:12 MBP-de-HV.lan ReportCrash[1497]: Removing excessive log: file:///Users/HV/Library/Logs/DiagnosticReports/CalendarAgent_2015-01-28-215343 _MacBook-Pro-de-HV.crash
    Jan 28 21:57:13 MBP-de-HV com.apple.xpc.launchd[1] (com.apple.lateragent[1500]): Service exited due to signal: Illegal instruction: 4
    Jan 28 21:57:13 MBP-de-HV com.apple.xpc.launchd[1] (com.apple.lateragent): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
    Jan 28 21:57:13 MBP-de-HV.lan ReportCrash[1497]: Saved crash report for LaterAgent[1500] version ??? to /Users/HV/Library/Logs/DiagnosticReports/LaterAgent_2015-01-28-215713_MacBook-P ro-de-HV.crash
    Jan 28 21:57:13 MBP-de-HV.lan ReportCrash[1497]: Removing excessive log: file:///Users/HV/Library/Logs/DiagnosticReports/LaterAgent_2015-01-28-215345_Ma cBook-Pro-de-HV.crash
    Jan 28 21:57:13 MBP-de-HV com.apple.xpc.launchd[1] (com.apple.AddressBook.SourceSync[1498]): Service exited due to signal: Abort trap: 6
    Jan 28 21:57:13 MBP-de-HV com.apple.xpc.launchd[1] (com.apple.AddressBook.SourceSync): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
    Jan 28 21:57:13 MBP-de-HV.lan ReportCrash[1497]: Saved crash report for AddressBookSourceSync[1498] version 9.0 (1563) to /Users/HV/Library/Logs/DiagnosticReports/AddressBookSourceSync_2015-01-28-21571 3_MacBook-Pro-de-HV.crash
    Jan 28 21:57:13 MBP-de-HV.lan ReportCrash[1497]: Removing excessive log: file:///Users/HV/Library/Logs/DiagnosticReports/AddressBookSourceSync_2015-01-2 8-215344_MacBook-Pro-de-HV.crash
    Jan 28 21:57:14 MBP-de-HV com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): The _DirtyJetsamMemoryLimit key is not available on this platform.
    Jan 28 21:57:14 MBP-de-HV.lan secinitd[257]: unable to get AddressBook lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718c34510 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.AddressBookLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    Jan 28 21:57:14 MBP-de-HV.lan secinitd[257]: unable to get Calendars lock folder path: Error Domain=NSPOSIXErrorDomain Code=13 "open() for F_GETPATH failed." UserInfo=0x7fd718c350c0 {NSFilePath=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/.CalendarLocks, NSLocalizedDescription=open() for F_GETPATH failed.}
    Jan 28 21:57:14 MBP-de-HV soagent[1507]: libcoreservices: _dirhelper: 523: mkdir: path=/var/folders/c8/njtxl9js6ns7351s5m_n6sn80000gn/T/com.apple.soagent/ modes[1]=0700: Permission denied
    Jan 28 21:57:14 --- last message repeated 1 time ---
    Jan 28 21:57:14 MBP-de-HV.lan soagent[1507]: Could not get real path for Address Book lock folder: open() for F_GETPATH failed.
    Jan 28 21:57:14 MBP-de-HV.lan soagent[1507]: *** Assertion failure in -[ABProcessSharedLock initWithLockFilePath:localLock:fileServices:], /SourceCache/AddressBook/AddressBook-1563/Framework/AddressBookUI/ABProcessShar edLock.m:57
    Jan 28 21:57:14 MBP-de-HV.lan soagent[1507]: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: lockFilePath != nil'
      *** First throw call stack:
      0   CoreFoundation                      0x00007fff8951a66c __exceptionPreprocess + 172
      1   libobjc.A.dylib                     0x00007fff8a6fb76e objc_exception_throw + 43
      2   CoreFoundation                      0x00007fff8951a44a +[NSException raise:format:arguments:] + 106
      3   Foundation                          0x00007fff8decc3a9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
      4   AddressBook                         0x00007fff8b9a1c0d -[ABProcessSharedLock initWithLockFilePath:localLock:fileServices:] + 144
      5   AddressBook                         0x00007fff8ba97f79 +[ABProcessSharedLock recursiveSharedLockWithLockFilePath:] + 97
      6   AddressBook                         0x00007fff8b9a15a2 +[ABAddressBook initializeFileLock] + 84
      7   AddressBook                         0x00007fff8b99e443 -[ABAddressBook nts_InitDefaultContactManager] + 153
      8   AddressBook                         0x00007fff8b99e35b +[ABAddressBook nts_SharedAddressBook] + 72
      9   AddressBook                         0x00007fff8b99e273 +[ABAddressBook nts_CreateSharedAddressBook] + 48
      10  AddressBook                         0x00007fff8b99e0df +[ABAddressBook sharedAddressBook] + 67
      11  IMCore                              0x00007fff9509b80b IMTranscriptChatItemEqual + 176400
      12  libdispatch.dylib                   0x00007fff93103c13 _dispatch_client_callout + 8
      13  libdispatch.dylib                   0x00007fff93103b26 dispatch_once_f + 117
      14  IMCore                              0x00007fff950524eb OBJC_METACLASS_$_IMSPIMessage + 455538043
      15  IMCore                              0x00007fff95087650 IMTranscriptChatItemEqual + 94037
      16  libdispatch.dylib                   0x00007fff93103c13 _dispatch_client_callout + 8
      17  libdispatch.dylib                   0x00007fff93103b26 dispatch_once_f + 117
      18  IMCore                              0x00007fff95086964 IMTranscriptChatItemEqual + 90729
      19  IMCore                              0x00007fff9508827b IMTranscriptChatItemEqual + 97152
      20  IMCore                              0x00007fff95052f76 OBJC_METACLASS_$_IMSPIMessage + 455540742
      21  IMCore                              0x00007fff9508a88f IMTranscriptChatItemEqual + 106900
      22  CoreFoundation                      0x00007fff894648a6 ___forwarding___ + 518
      23  CoreFoundation                      0x00007fff89464618 _CF_forwarding_prep_0 + 120
      24  IMCore                              0x00007fff95088146 IMTranscriptChatItemEqual + 96843
      25  IMCore                              0x00007fff9508843e IMTranscriptChatItemEqual + 97603
      26  IMCore                              0x00007fff950885fc IMTranscriptChatItemEqual + 98049
      27  IMCore                              0x00007fff9508887d IMTranscriptChatItemEqual + 98690
      28  MessagesHelperKit                   0x0000000101661dae MessagesHelperKit + 7598
      29  libdispatch.dylib                   0x00007fff93103c13 _dispatch_client_callout + 8
      30  libdispatch.dylib                   0x00007fff93103b26 dispatch_once_f + 117
      31  libobjc.A.dylib                     0x00007fff8a6f41b5 _class_initialize + 649
      32  libobjc.A.dylib                     0x00007fff8a6f3f7f _class_initialize + 83
      33  libobjc.A.dylib                     0x00007fff8a704777 lookUpImpOrForward + 322
      34  libobjc.A.dylib                     0x00007fff8a6ee1ac objc_msgSend + 236
      35  Foundation                          0x00007fff8de18669 -[NSBundle loadAndReturnError:] + 693
      36  MessagesHelperKit                   0x0000000101664045 MessagesHelperKit + 16453
      37  libdispatch.dylib                   0x00007fff93108323 _dispatch_call_block_and_release + 12
      38  libdispatch.dylib                   0x00007fff93103c13 _dispatch_client_callout + 8
      39  libdispatch.dylib                   0x00007fff9310fcbf _dispatch_main_queue_callback_4CF + 861
      40  CoreFoundation                      0x00007fff8946dc79 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
      41  CoreFoundation                      0x00007fff8942a30f __CFRunLoopRun + 2159
      42  CoreFoundation                      0x00007fff89429858 CFRunLoopRunSpecific + 296
      43  Foundation                          0x00007fff8de43849 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278
      44  Foundation                          0x00007fff8df3f24f -[NSRunLoop(NSRunLoop) run] + 74
      45  soagent                             0x0000000101656be5 soagent + 3045
      46  libdyld.dylib                       0x00007fff933045c9 start + 1
    Jan 28 21:57:14 MBP-de-HV com.apple.xpc.launchd[1] (com.amazon.music[1506]): Service exited with abnormal code: 1
    Jan 28 21:57:14 MBP-de-HV com.apple.xpc.launchd[1] (com.amazon.music): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
    Jan 28 21:57:14 MBP-de-HV.lan com.apple.dock.extra[288]: SOHelperCenter main connection interrupted
    Jan 28 21:57:14 MBP-de-HV com.apple.xpc.launchd[1] (com.apple.soagent[1507]): Service exited due to signal: Abort trap: 6
    Jan 28 21:57:14 MBP-de-HV.lan ReportCrash[1497]: Saved crash report for soagent[1507] version ??? to /Users/HV/Library/Logs/DiagnosticReports/soagent_2015-01-28-215714_MacBook-Pro- de-HV.crash
    Jan 28 21:57:14 MBP-de-HV.lan ReportCrash[1497]: Removing excessive log: file:///Users/HV/Library/Logs/DiagnosticReports/soagent_2015-01-28-215346_MacBo ok-Pro-de-HV.crash

  • How to get PHP mail() function to WORK?

    The topic title speaks for itself. I only want the exact following code to actually send an e-mail, just as it does on any external server:
    <?php
    mail(<i>an e-mail address</i>, <i>a subject</i>, <i>some text</i>);
    ?>
    Is it possible?
    I have the sendmail_path set to /usr/sbin/sendmail -t -i in php.ini, and MAILSERVER=-YES- in hostconfig.
    I would like to avoid using sendmail's -f option if possible (this does not work for all e-mail addresses anyway).
    Mac mini Core Duo   Mac OS X (10.4.7)  

    Hi Neithan,
       If, as your profile indicates, you are using Tiger, you are using postfix when you use the "sendmail" command. Sendmail is no longer installed but postfix comes with an "emulator" to keep legacy stuff from breaking. It's still a good command line method for sending mail.
       I'm not sure if setting MAILSERVER=-YES- causes postfix to listen on the smtp port or just for local connections. However, I thought that local connections were sufficient to send mail. Try it and if it doesn't work use Postfix Enabler. Just remember that changing the hostconfig file doesn't take effect until the next reboot. (or run of SystemStarter)
       Also remember that most ISPs don't accept mail from unrecognized machines anymore.
    Gary
    ~~~~
       Money isn't everything -- but it's a long way ahead of
       what comes next.
             -- Sir Edmond Stockdale

  • Script that enables mail users and kicks out two csv files

    I am working on a script that will mainly be used as a scheduled task to enabled mailuser by calling the update-recipient command. 
    But before it calls that command it will get for various issues that can cause errors.
    Missing PrimarySMTP
    Display name having a space at front or back.
    The external email address being blank.
    I have IF statements setup to check for those and then call a function that will save into an array the issue for that user. 
    Here is the script
    <#
    .SYNOPSIS
    Enable-MailUsers Synced Mail Users in the Exchange environment
    THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE
    RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.
    Version .9, 30 June 2014
    .DESCRIPTION
    This script mail-enables Synced Mail Users and creates a CSV report of mail users that were enabled.
    The following is shown:
    * Report Generation Time
    .PARAMETER SendMail
    Send Mail after completion. Set to $True to enable. If enabled, -MailFrom, -MailTo, -MailServer are mandatory
    .PARAMETER MailFrom
    Email address to send from. Passed directly to Send-MailMessage as -From
    .PARAMETER MailTo
    Email address to send to. Passed directly to Send-MailMessage as -To
    .PARAMETER MailServer
    SMTP Mail server to attempt to send through. Passed directly to Send-MailMessage as -SmtpServer
    .PARAMETER ScheduleAs
    Attempt to schedule the command just executed for 10PM nightly. Specify the username here, schtasks (under the hood) will ask for a password later.
    .EXAMPLE
    Generate the HTML report
    .\Enable-MailUsers.ps1 -SendMail -MailFrom [email protected] -MailTo [email protected] -MailServer ex1.contoso.com -ScheduleAs SvcAccount
    #>
    param(
    [parameter(Position=0,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Send Mail ($True/$False)')][bool]$SendMail=$false,
    [parameter(Position=1,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Mail From')][string]$MailFrom,
    [parameter(Position=2,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Mail To')]$MailTo,
    [parameter(Position=3,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Mail Server')][string]$MailServer,
    [parameter(Position=4,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Schedule as user')][string]$ScheduleAs
    # Sub Function to neatly update progress
    function _UpProg1
    param($PercentComplete,$Status,$Stage)
    $TotalStages=5
    Write-Progress -id 1 -activity "Mail enabled Objects" -status $Status -percentComplete (($PercentComplete/$TotalStages)+(1/$TotalStages*$Stage*100))
    #Sub Function create ErrObject output
    function _ErrObject{
    Param($name,
    $errStatus
    If(!$err){
    Write-Host "error detected"
    $script:err = $True
    $ErrObject = New-Object -TypeName PSObject
    $Errobject | Add-Member -Name 'Name' -MemberType Noteproperty -Value $Name
    $Errobject | Add-Member -Name 'Comment' -MemberType Noteproperty -Value $errStatus
    $script:ErrOutput += $ErrObject
    # 1. Initial Startup
    # 1.0 Check Powershell Version
    if ((Get-Host).Version.Major -eq 1)
    throw "Powershell Version 1 not supported";
    # 1.1 Check Exchange Management Shell, attempt to load
    if (!(Get-Command Get-ExchangeServer -ErrorAction SilentlyContinue))
    if (Test-Path "D:\Exchsrvr\bin\RemoteExchange.ps1")
    . 'D:\Exchsrvr\bin\RemoteExchange.ps1'
    Connect-ExchangeServer -auto
    } elseif (Test-Path "D:\Exchsrvr\bin\Exchange.ps1") {
    Add-PSSnapIn Microsoft.Exchange.Management.PowerShell.Admin
    .'D:\Exchsrvr\bin\Exchange.ps1'
    } else {
    throw "Exchange Management Shell cannot be loaded"
    # 1.2 Check if -SendMail parameter set and if so check -MailFrom, -MailTo and -MailServer are set
    if ($SendMail)
    if (!$MailFrom -or !$MailTo -or !$MailServer)
    throw "If -SendMail specified, you must also specify -MailFrom, -MailTo and -MailServer"
    # 1.3 Check Exchange Management Shell Version
    if ((Get-PSSnapin -Name Microsoft.Exchange.Management.PowerShell.Admin -ErrorAction SilentlyContinue))
    $E2010 = $false;
    if (Get-ExchangeServer | Where {$_.AdminDisplayVersion.Major -gt 14})
    Write-Warning "Exchange 2010 or higher detected. You'll get better results if you run this script from an Exchange 2010/2013 management shell"
    }else{
    $E2010 = $true
    $localserver = get-exchangeserver $Env:computername
    $localversion = $localserver.admindisplayversion.major
    if ($localversion -eq 15) { $E2013 = $true }
    #Get date
    $filedate = get-date -uformat "%m-%d-%Y"
    $filedate = $filedate.ToString().Replace("0", "")
    #Get the valid users that are not mail-enabled
    _UpProg1 1 "Getting User List" 1
    #$Users = Get-mailuser -ResultSize unlimited -OrganizationalUnit "R0018.COLLABORATION.ECS.HP.COM/Accounts/AbbVienet/Users" | ?{$_.legacyexchangeDN -eq ""}
    $i = 0
    $output = @()
    $errOutput = @()
    $err = $False
    #2 Process users
    ForEach ($User in $Users){
    $i++
    _UpProg1 ($i/$Users.Count*100) "Updating Recipients" 2
    If ($user.ExternalEmailAddress -eq $null){
    _ErrObject $user.Name, "Missing External Email Address"
    ElseIf($user.DisplayName -NotLike "* "){
    _ErrObject $user.Name, "DisplayName contains a trailing space"
    ElseIf($user.DisplayName -NotLike "_*"){
    _ErrObject $user.Name, "DisplayName contains a Leading space"
    ElseIf($user.PrimarySmtpAddress -eq $null){
    _ErrObject $user.Name, "Missing Primary SMTP address"
    Else{
    #Disable EmailAddressPolicy on these users
    Set-Mailuser $User.Name -EmailAddressPolicyEnabled $false
    #pass to Update-recipient
    Update-Recipient $User.Name
    $LEDN = Get-MailUser $User.Name | Select {$_.LegacyExchangeDN}
    If ($LEDN -ne ""){
    $object = New-Object -TypeName PSObject
    $X500 = "x500:" + $LEDN.'$_.LegacyExchangeDN'
    $object | Add-Member -Name 'Name' -MemberType Noteproperty -Value $User.Name
    $object | Add-Member -Name 'x500' -MemberType Noteproperty -Value $X500
    $output += $object
    #Creating CSVFile Output
    _UpProg1 99 "Outputting CSV file 3" 3
    $CSVFile = "c:\scripts\Mail-enable\Mailenabled_$((Get-Date).ToString('MM-dd-yyyy_hh-mm-ss')).csv"
    If($err){
    $ErrCSVFile = "c:\scripts\Mail-enable\ProblemUsers_$((Get-Date).ToString('MM-dd-yyyy_hh-mm-ss')).csv"
    $errOutput | Select-Object Name, Comment | ConvertTo-CSV -NoTypeInformation > $ErrCSVFIle
    $Output | ConvertTo-Csv -NoTypeInformation > $CSVFile
    if ($SendMail)
    _UpProg1 95 "Sending mail message.." 4
    If($err){
    Send-MailMessage -Attachments $CSVFile,$ErrCSVFile -To $MailTo -From $MailFrom -Subject "Enable Mail Users Script" -BodyAsHtml $Output -SmtpServer $MailServer
    Else{
    Send-MailMessage -Attachments $CSVFile -To $MailTo -From $MailFrom -Subject "Enable Mail Users Script" -BodyAsHtml $Output -SmtpServer $MailServer
    if ($ScheduleAs)
    _UpProg1 99 "Attempting to Schedule Task.." 4
    $dir=(split-path -parent $myinvocation.mycommand.definition)
    $params=""
    if ($SendMail)
    $params+=' -SendMail:$true'
    $params+=" -MailFrom:$MailFrom -MailTo:$MailTo -MailServer:$MailServer"
    $task = "powershell -c \""pushd $dir; $($myinvocation.mycommand.definition) $params\"""
    Write-Output "Attempting to schedule task as $($ScheduleAs)..."
    Write-Output "Task to schedule: $($task)"
    schtasks /Create /RU $ScheduleAs /RP /SC DAILY /ST 22:00 /TN "Enable Mail Users" /TR $task
    The Problem is that when I look at the $errOutput I see things but when I pipe the $erroutput to convertTo-CSV I get this within the CSV file. I think its because I an calling a function to do the updating. But not sure.
    Jeff C

    Hi Jeff,
    Any updates? If you have any other questions, please feel free to let me know.
    A little clarification to the script:
    function _ErrObject{
    Param($name,
    $errStatus
    If(!$err){
    Write-Host "error detected"
    $script:err = $True
    $ErrObject = New-Object -TypeName PSObject
    $Errobject | Add-Member -Name 'Name' -MemberType Noteproperty -Value $Name
    $Errobject | Add-Member -Name 'Comment' -MemberType Noteproperty -Value $errStatus
    $script:ErrOutput += $ErrObject
    $errOutput = @()
    _ErrObject Name, "Missing External Email Address"
    $errOutput
    _ErrObject Name "Missing External Email Address"
    $errOutput
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

Maybe you are looking for

  • Does Oracle 8.1.5 Run On Tru64 Unix 5.1

    Does Oracle 8.1.7 Run On Tru64 Unix 5.1 We plan to upgrade the OS and Oracle in two steps. 1. First weekend - upgrade the operating system from Tru64 4.0d to Tru64 5.1. 2. Second weekend - upgrade Oracle from 8.1.5 to 8.1.7 Questions: 1. Will Oracle

  • How to transfer pricing data from SO (VA01) to PO (ME31N)

    Dear Friends, So far my finance people are raising bills on my vendors through FB60 and FB70 transactions. Now I want to link this process through SD. I have succeded in creating the Service purchase requition and Service entry sheet  from my sales o

  • Portal Content Navigation

    Hi I am in the process of building a new Portal for a client and at present I am very new to the Product although have already built a basic one. One of the requirements is that they want to hold documentation (in the form of Word and Adobe docs) on

  • OPEN DATASET code

    Hi all, I have the following code to output data. OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE encoding default. my question is what the format of output file should be? Is there any specific requirement? And if I run this code successfully, I shoul

  • HT4157 How do I get charges removed from my credit card?

    How do I get charges removed from,my credit card?  I was charged three times for my cellular plan.