Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Export Events To Outlook


Do anybody know how to export events to Outlook from a php script? I'm
making a list of events, and my idea is that when the user clicks on
the event it will be exported to his or hers Outlook-calendar. I don't
want to force the users to install any software (like a RSS-reader).




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Export Contact Information To Outlook Using PHP
I have a database with contact information in it and a PHP app where people can view the contacts and need to make a 'export to Outlook' link. I.e. someone clicks that link next to an entry and, ideally, the information would automatically be imported by Outlook. Is this possible or do I need to have it export to CSV and then have people import it?

Images Shown In Outlook Express But Not In Outlook 2003
I'm writing a php code to send email in mime format. All seams ok if I read the email with outlook express, or Thunderbird, or any webmail, but if I open the email with Outlook 2003, I can't see the images, I just see a small box (I send 1 image) with inside the path of the image. The image is embedded in the message, it's not a link.

<?php
$header = "From: Sender <sen...@domain.org>";
$header .= "CC: Altro Ricevente <blabla...@domain.net>";
$header .= "X-Mailer: Our Php";

$boundary = "==String_Boundary_x" .md5(time()). "x";
$boundary2 = "==String_Boundary2_y" .md5(time()). "y";

$header .= "MIME-Version: 1.0";
$header .= "Content-Type: multipart/related;";
$header .= " type="multipart/alternative";";
$header .= " boundary="$boundary";";

$messaggio = "If you read this, your email client doesn't support MIME";

$message .= "--$boundary";
$messag .= "Content-Type: multipart/alternative;";
$message .= " boundary="$boundary2";";

$message .= "--$boundary2";
$message .= "Content-Type: text/plain; charset="iso-8859-1"";
$message .= "Content-Transfer-Encoding: 7bit";
$message .= "Alternative message in plain text format.";

$message .= "--$boundary2";
$message .= "Content-Type: text/html; charset="iso-8859-1"";
$message .= "Content-Transfer-Encoding: 7bit";.....

Combination Of Outlook And Php - Create Stationery For MS Outlook Using PHP Engine
Some of my clients asked me to create "fancy emails" for them (aka html
formatted emails).

I know how to make a nice html document, but I had trouble creating a simple
way to provide the document to my clients so that they could use it to.

I know most of them use Outlook XP or Outlook 2003, so what I created was a
page that creates a Visual Basic script that, when saved to the desktop and
clicked (run), opens a message in outlook using the html provided.

Php Events Box
Is there a way to get the PHP code to read a line from the table and write it in a box? What I have is an events table with two columns, Date of Event & Name of Event. This is saved on a page called events.html (can be changed to .php) What I wan is on index.php I want a next event box.

So what I want for it is to read from the events page, and find when the next event is, using information on dates. I have no idea on how to start this at all.

Scheduled Events
possible to get php to execute a script at certain times a day ? or is the only way to have a list of set times in a db, and when each user comes to my site see if it has been done or not ? and do, or dont do accordingly?

Timing Events
I would like to be deleteing certain records from my database automatically after every 72hrs. I have never tried this before  but is it possible to perform actions after a certain duration of time in php ?
 

Wordpress Calendar Of Events
I want to make a "calendar of events" in a side bar of a blog.
When the mouse hover on it, it will show the users the events of that
days in a pop up window.

"The pop up window" may contains links to other sites, so it should be
wait certain time to let the user click the link....

How To Catch System Events
I have a site from which people can download files. If they cancel the downloading in-between then my page hangs. Does anyone know how to catch system events like "Cancel" in PHP ?

Events Application In PHP Or Perl
I am looking for an events registration/calendar application (open source or otherwise) written in PHP or Perl.

It would need some (or all) of the following capabilities:
1-Allow admins to create/edit/delete events including:

a) Max number of attendess
b) Event registration fees

2-Allow admins to run reports per event on the number of attendees, who has paid ,etc

3-Allow event attendees to register and pay for the event(s) via the web (Paypal).

I would prefer there be different levels of administration privileges, like full admin, reporting only, and per-event administrators.

The most important features are the ability to pay via the website via PayPal and the admin capabilities.

Displaying Events In A Calendar
I have a calendar that I would like to display some events on. The events are stored in a database but I do not think I am getting the information in the right place and displaying like it should be. I cannot seem to get an event to display on the exact date that it should be displayed on. I can get one event for a whole week but that, of course, is not right. Code:

Events Calander And Date Conversion
I have been working on an events calander program that needs to be in chronological order by date. The fields I have are id, date, event and event discription. The problem I have is that the event date needs to be displayed in this format 09/21/03. However, when I simply sort by date 02/21/04 would display before 03/21/01. How could I sort by date and display the date in the 00/00/00 format.

Automatic Display Of Events Each Week
I know how to display a list of upcoming events from a SQL database, but am wanting to display the events based on the date, eg. events happening this week only. Could someone tell me how to do this or point me in the right direction please?

Events Calendar Using MySQL Database
I have a mySQL table listing all the regular events that happen each month for a group according to schedules like, every Sunday or every other Saturday*. How can I make a visual monthly calendar out of this? Basically, I need to produce a list of dates for each of the events happening in a given month. That's where I'm stumped.

Multiple Dates For Recurring Events
how I could add multiple dates for the same activity that recurs many times in an events calendar?  Now I am creating an entirely separate entry for each event; it all works fine, but it's mighty tedious! Code:

Code Relating To Button Events....
I have one screen that has multiple buttons/images for varying actions. How do I trap which button/image was clicked in order to carry out the related code events?

Do I utilise the value of each button, or the name of each button to identify, and then 'select' the result? Should they all be type=submit?

Web Calendar Group/individual View Events?
There seem to be a lot of web calendars out there and I am having a tough time sorting out which ones to even try - a lot of the more popular ones were created 2 or 3 years ago.
Can anyone recommend a good one that uses php and mysql preferably?

One of the main uses would be for family to indicate their holidays so all in the family can see. Thus, it would require a group/public feature that allows users to see all "public" holidays or just their own holidays.

OnUnload (check If Variable Is Set) Events To Detect Browser
I'm building a website using PHP/JavaScript/HTML. I am using sessions. I need to find out how to do two tasks.

1. Log the time when the user is done using the website. I am using the onLoad (set a variable) and onUnload (check if variable is set) events to detect browser close. But this doesnt let the page to be refreshed or the 'Back' button to be used. (I am ensuring that the time is not logged when the user clicks a hyperlink by resetting the variable.) Is there a way to let the user use the back button and refresh without logging him out?

2. I need to make sure that only one user logs into the site using a username. What is the best way to do this? I have the usernames stored in a database. DO I set and reset a flag when a user logs in or out?

Sample Month At A Time Code For Events Calendar
I am in the process of rewriting one of my first PHP scripts, an event
calendar, and wanted to share the code that is the core of the new
calendar. My current/previous calendar processed data dates only, this
code is intended to use more thrifty event descriptions (3rd saturday,
last tuesday, etc.) as well as traditional one-of dates.

The core here here is quite spartan, no table logic or or db cruft
included

<?php
//sample code to generate american calendar format for a given month
// i,e. start of sunday on or before the 1st end on te saturday on or
after the last day.
// makes use of mktime's cool liberal calculation of dates.

// Set sample month and year values:
$mn = date("m");
$yr = date("Y");

// Start calendar logic:

$firstday = date("w",mktime(0,0,0,$mn,1,$yr));// Get first day of
target month (0=sum 6=set)

$numdays = date("t",mktime(0,0,0,$mn,1,$yr));// Number of days in
target month

$daystop = $numdays+(6-date("w",mktime(0,0,0,$mn+1,0,$yr)));//
Adjusted last saturday of calendar page (on or after last day of month

//start with american first sunday on or before start of month of
calendar page and end on daystop (saturday)
for($daynum = 1 - $firstday; $daynum <= $daystop; $daynum++) {

//need working date timestamp to work out details of the calendar
$wkdate = mktime(0,0,0,$mn,$daynum,$yr);//the first of the month -
unix value

$wdy = date("w",$wkdate);//day of the week (0 sun - 6 sat)
$wmn = date("m",$wkdate);//month
$wdt = date("d",$wkdate);//date

$wdte = date("D, m/d/Y",$wkdate);//date string of current date "Day,
mm/dd/yyyy"

Auto Delete Date Based Calendar Events
Out of both wanting to improve my PHP skills and necessity, I created my own small CMS for a non-profit site I am involved with. One of the features I have is an event calendar where other users can submit  events, which then go into a "holding tank" until I can approve or deleted them. It's working great and everyone is loving it... but I have discovered one issue. When the date of the event passes, I have to log into the admin area and manually remove it. I am actually not deleting it from the database but changing a field variable and archiving it for our records.

I have been trying the past few days to come up with the necessary PHP to automatically check the current date (today's date) against all the calendar events and remove ones that have already happened. I could then hook this up to a CHRON action in my hosting CPanel and call it a day - at least that is how it all plays out in my head. 

I imagine in order to point me in the right direction you will need some information about my database.

Php, Outlook 2k3
I have a php script that grabs user information from a form and
sends me an email when an order has been placed. how do I make the
default 'reply-to' address the email address of the customer? I'm
hoping to click 'reply' within outlook 2003 and not have to type in
each user's email for every order.

PHP And Outlook
I have an application part of which sends an email with attachment. I
have implemented this in php, BUT now the customer wants it to appear in
his Outlook email application (so he can amend defaults etc.)
I cannot find a way to get outlook to accept the attachment using the
mailto:
Is there another way? Can it be done, or is it inhibited by Outlook?

Outlook And PHP
Does anyone know how to update Microsoft Outlook dynamically?

i.e.  when their calendar is updated on a website, the next time they look at Outlook it will update with the new events...

If you don't know the complete solution or have any clues as to how to accomplish this, please let me know.  Any and all information (hints) is desired as I am pretty stumped with this one.

Including Outlook
IN MS outlook we have a thing set up so people can sceaduale the use of rooms/equiment is there a way to access this information from an intranet page? or at least have something that would open the persons outlook up into that area of outlook. It's just everyone seems to find it to complicated to hit the clock button then find "#*$!x" in the menu. You can tell them over and over agaibn this is how you request for this piece of equipment but they just don't get it. Bad thing is they don't use it then come back an hour before they need it and expect it to be there and waiting for them regrdless of someone else needing it.

Email For Outlook
I have gathered a list of emails and concatenated them into a string, for the purpose of using them to send emails out. I don't want to use the mail(), because I just want MS Outlook to open and put the list of emails stored in a var in the CC box.

This way the user can put whatever information they need into the email and click send and it will send it. Is it possible to put it into the CC box or is it just better for the user to use the mailto code in HTML.

Getting Data From Outlook
retriveing data (appointments) from Outlook and to show it
on my php-webpage. I found a link on the net (look below), but I don't got
the right settings in registry on my pc, missing the "Mapi.session" line. Is
there some application I have to install to get this up and working? Or are
there other ways to get data from Outlook?

PHP To Microsoft Outlook
Is it possible to send meeting notifications to microsoft outlook through php? I guess it would be sort of an e-mail sent to an individual telling them they have been invited to attend an event and the event info is automatically added to thier outlook calender or something?

PHP COM - Problems With Automating Outlook
I have been reading through some examples on using PHP with Outlook. I have been trying to get this simple example working, but its starting to really puzzle me. PHP Code:

Voting In Outlook 2003
I am tring to get my web page on the click of a button to generate a
mail from a person to a manager of a department, with voting buttons,
so that when the manager approves the request the relevant information
gets passed to HR. Is this possible in PHP? i understand the use of
mail() and so a message could be drawn up, however th inclusion of
votin buttons is the tricky bit!

Reading Outlook Attachments
Does anyone know of a class which will read outlook email messages. I
need to be able to scan outlook for "non-read" e-mails with a specific
subject and then save the attachments and mark the e-mail as "read". I
tried working with the am outlook application COM object but could
not get it to work.

If you have another way to do what I want, without human intervention,
I'm open for suggestions. I't goes without saying I want to be able to
do it form or with PHP.

PHP Email Attachments & Outlook XP
I was curious to know if anyone was experienced any difficulty in receiving PHP generated emails with file attachments using Outllook XP as their mail client. I have used PHPMailer, as well as other classes to accomplish this functionality, and has worked just fine in all other clients, except my client just updated their software to XP... I thought perhaps the encoding could be slightly different, any thoughts?

How To Collect MS Outlook Contacts
I need to create one module for my upcoming project. Module is, In my project, If a user wants to send mail, i need to  collect that particular user's MS Outlook contacts and display it into his  page.  To do this, is there any open source available?

Using COM Objects Or Importing To Outlook
I've been asked to look at developing a web-based system for tracking forms.  In itself, it is fairly simple.  However, one item they want to look at is Outlook integration for tasks.  We use an internal exchange server and I have read about being able to use COM objects to write tasks for Outlook from PHP.

However, I'm having difficulty with this part. The script I do have is timing out and documentation on using COM objects is fairly sparse. Should I be looking at something other than PHP? Code:

Mail(), Html & Outlook
I see that a while ago people had the same problems as me (http://www.phpbuilder.com/board/show...eadid=10240258), but I see no answers anywhere, so here goes:

I am sending E-Mail from a form on my website using the php mail(). The problem is that when I send it as html, outlook has problems. Here are the headers I'm using:


$headers  = "From: $name <$email>";
$headers .= "Reply-To: $email ";
$headers .= "MIME-Version: 1.0";
$headers .= "Content-type: text/html;";

When I do this, the E-Mail looks fine in squirrelmail (a webmail program www.squirrelmail.org), but in outlook...instead of getting a nicely formatted html message, I get a message that starts with "Content-type: text/html;" then continues on in plaintext, showing me all the html tags, etc. I tried switching some of the headers around, and if I switch the mime & content-type headers, I see html in BOTH E-Mail programs, but outlook starts the message off with "MIME-Version: 1.0" which I suppose is the lesser of 2 evils, but there is no reason that I should have to see that. Does anyone have a solution?

Export To CSV
There are some text fields that I am exporting to CSV contain comma in it. And so when I open the csv file, everything is shifted.

e.g. "Apple, Banana, Orange", "Excellent", "12345"

gives me 5 columns instead of 3 in the csv: Apple Banana Orange Excellent 12345 How can I solve this problem?

PHP Export > Csv
I have got a page on a site that I'm working on. As you can see there are 3 drop down menu's which are dynamicaly driven by 3 tables within my database. On selection of the lists, you are taken to the same page (show if statement - dreamweaver) which shows you the record count. This is based on your criteria!

At this point. I would like to export the query results into a .csv file. Now I have looked across the forums and found a few things and tried to implement them into my site, all of which are bringing up an empty page. Possibly because my search queries are dynamic?

Php->HTML Email: Outlook Cache?
I'm sending out a newsletter via PHP that sends HTML code. Within that code I have a tracking image that reports if the email was opened. (fairly common reporting)

Anyway, if you open the HTML email once, it counts it as opened. If you open it twice, it does not count that. I've tried adding NO CACHE type options to the HTML email itself with no luck. Is it something maybe on the PHP side?

I'd think everytime outlook opened that email it would reload the tracking image, but maybe not. Has anyone else run into this? Is there a workaround either client or server-side?

Scrip For Sending An EMail Via PHP And Outlook
our configuration is as following described:

- OS: Windows 2000
- Apache server 1.3
- Php 3.8
- MS outlook client 2000

_and_ no SMTP server available in the whole intranet.

We are looking for a php script for sending eMail with help of the
above named outlook client.

Send Mail From Outlook Web Access
I've got RH9 Linux with default PHP.

Is there a way to send email on Linux to an Exchange Server from PHP
and/or other tools when there is *NOT* SMTP access?

Has anyone figured out a way to use PHP to get inside an OWA (Microsoft
Outlook Web Access) website to send email that way?

The reason I ask is because my corporate office is going to do away
with our rogue SMTP server access and force everything through Exchange
Server. This makes it hard for our batch scripts on the Linux server to
relay to internal email accounts that a job has failed or other errors.

Mail() To Outlook, No Carriage Returns
I'm sending normal text email, but in Outlook all the carriage returns
are ignored. The text comes from MySQL database, and I've tried

str_replace("
", "
", $dr['email_template']);

I also tried sending header Content-type: text/plain but still no luck,
still the email comes through as one big line.

I'm sure this must be a common thing but I can't immediately find an
answer through Google.

Export Sql Code
Can I use a php script to move a database from a db on my local machine to a db on a server..

How exactly would it be structured, and what commands would I have to use?

I'm also looking into using mysql to export the code and content from the db on my computer and then import it using phpMyAdmin on the server, but I still havent found out how to do that after searching these forums and reading through the mysql manual.

Import And Export
Anyone could give me some tips about coding an import and export php script
with mysql ?

Export Any File
I want to export a mysql query into text, cvs, or excel file, I was looking and I found the headers to do this, but when I open the saved file appears all the page, I mean save the data but also save all the page. Code:

CSV Export Thing
I am looking at the fputcsv function for something that I need. In summary,
this is what I want to do:

1. Go through a table
2. Get all the columns and put them into an array
3. write the array to a CSV file
4. Go to the next row
5. Append the table row into the CSV file
6. Repeat for each row in the table

The php site shows this:

<?php

$list = array (
'aaa,bbb,ccc,dddd',
ì«,456,789',
'"aaa","bbb"'
);

$fp = fopen('file.csv', 'w');

foreach ($list as $line) {
fputcsv($fp, split(',', $line));
}

fclose($fp);
?>

I'm assuming that I need the 'a+' mode for opening the file and not 'w'?

I'm ashamed to say that I have no idea how to loop through the table and put
the columns into the array.

What I'm coming up with at the moment is this:

<?php do {

$list = array (
'
$row_Recordset1['firstname'],
$row_Recordset1['lastname'],
$row_Recordset1['email'],
$row_Recordset1['telephone']'
'
);

$fp = fopen('/path/to/the/file.csv', 'a+');

foreach ($list as $line) {
fputcsv($fp, split(',', $line));
}

fclose($fp);

Export Excel
i have created a page that export in excel format some recordsets
extract from a database, i pass to that page the sql query string via
get

example:
href="export_excel.php?sql=<?=$sql?>"

it works fine but in the address bar and in the title bar (with
Explorer) it write the sql string that i pass to the page and i don't
like it

how can i solve that problem?

Export To Excel
I've been trying to export MySQL data to an excel / CSV file, and I have it pretty much populating the Excel properly with the data; however, the Excel sheet also includes the entire HTML formatting + CSS/JS coding before the export code. I've tried getting rid of it with strip_tags, to no avail. Is it because the export code is to the middle of the file? I tried to move it into the header, but that didn't work either. Any ideas? Code:

Synchronize Contacts With Apps Like Outlook And Ical
i would like to be able to sync contact details with ical (mac) and
outlook for a website im doing, does anyone know how to do this, if its
possible? for example file formats, ways of sending data to the apps?
are there any good online resouces regarding this?

Send Mail To Outlook From Http://localhost
Does anyone know how to set up a script to send mails from http://localhost to your local mail client (Outlook, to be exact).

Read E-mail Addresses From Outlook Express
how to read email addresses from outlook express (from local hard disk) It will be great if you help me to read e-mail addresses from and folders (of outlook Express) like Send, input, output etc).

Sending Mail From Php And Correct MS Outlook Receive
In my MS Outlook I use global address book to handling contacts.
When I send email from Outlook to myself and double click on sender I
get information about me from my global address book.

When I use php mail() function to sending messages and then double
click on sender I get specificity message email window only.

How do I have to prepare header at mail() function (for example: FROM:
?) that after send and double click on sender in Outlook I get
information about sender from Outlook global address book ?


Copyright © 2005-08 www.BigResource.com, All rights reserved