Jump to content

Connexion

Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Connexion's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Well you were pretty close. Thank You for the help HuggieBear. Here is what I ended up with. [code] <?php $attachtest = $mail->AddAttachment("/jobphotos/{$image_list[0]}", "$image_list[0]"); if ($attachtest == false){   echo "Didn't like this line\n"; } ?> [/code]
  2. Hello, I have been working on this for a couple days on and off and have tried to find my problem but havent been able to figure it out. I am getting the email with a jpg attachment but cant open it, it gives me an error CANNOT DETERMINE FILE TYPE. Any help would be apreciated. Thanks [code] $image_part = $Tech."_".$FirstName."_".$LastName."_".$CompletionDate."_".$HTTP_POST_FILES['Pic1']['name']; $image_list[0] = $image_part; require("phpmailer/class.phpmailer.php"); $mail = new PHPMailer(); $mail->From    = "myaddress@connexioncomm.com"; $mail->FromName = $From; $mail->Subject = $FirstName." ".$LastName; $mail->Host    = "mail.jobtrackonline.com"; $mail->Mailer  = "sendmail";     // HTML body     $body  = "Hello <font size=\"4\">" . "</font>, <p>";     $body .= "Photos have been uploaded for ".$FirstName." ".$LastName."<p>";     $body .= "Sincerely, <br>";     $body .= "Connexion Communications, LLC";     $mail->Body    = $body;     $mail->AltBody = $text_body;     $mail->AddAddress("myaddress@charter.net", "John Doe");     $mail->AddStringAttachment("http://aerocomm.jobtrackonline.com/jobphotos/".$image_list[0],$image_list[0]");     if(!$mail->Send())         echo "There has been a mail error sending to " . $row["email"] . "<br>";     // Clear all addresses and attachments for next loop     $mail->ClearAddresses();     $mail->ClearAttachments(); [/code]
  3. Thank you ryanlwh, I got it with your direction.
  4. I am having a problem with mktime. My payroll week runs from Friday through Thursday and paydate is on Friday 2 weeks later I have the enddate set but am having problems getting the mktime calculate the paydate to print on paychecks. If the payroll week is within the same month as the payday it works fine but when the paydate is in the next month it isn't calcualted right. Thanks for any help you can give. I have been messing with this for days now and can not figure it out. <?php session_start(); //Start Session header("Cache-control: private"); //IE 6 Fix $PayStart = $_SESSION['StartDate']; $PayStart = date('F j, Y', strtotime($PayStart)); $PayDate1 = $_SESSION['EndDate']; $PayDate1 = date("F j, Y", mktime(0, 0, 0, date("m"), date("d")+'14', date("Y")));
  5. I am wanting to convert a number ie: 1249.51 into a word format like One thousand two hundred forty nine and 51/100. Can anyone help? Thank You
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.