Hello,

My application is in PHP.
I use the below code to send invitation-

    <?php
    $message="
    BEGIN:VCALENDAR
    VERSION:2.0
    CALSCALE:GREGORIAN
    METHOD:REQUEST
    BEGIN:VEVENT
    DTSTART:20130901T121000Z
    DTEND:20130901T131000Z
    DTSTAMP:20110525T075116Z
    ORGANIZER;CN=From Name:mailto:from email id
    UID:12345678
    ATTENDEE;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Sample:emailaddress@testemail.com
    DESCRIPTION:Test the first invite
    LOCATION: Test Location
    SEQUENCE:0
    STATUS:CONFIRMED
    SUMMARY:Test the first icalendar invitation
    TRANSP:OPAQUE
    END:VEVENT
    END:VCALENDAR";
    /*headers*/
    $headers = "From: From Name <From Mail>\n";
    $headers .= "MIME-Version: 1.0\n";
    $headers .= "Content-Type: text/calendar; method=REQUEST;\n";
    $headers .= ' charset="UTF-8"';
    $headers .= "\n";
    $headers .= "Content-Transfer-Encoding: 7bit";
    /*mail content*/
    $subject = "Meeting Subject";
    $subject = html_entity_decode($subject, ENT_QUOTES, 'UTF-8');
    /*mail send*/
    if(mail("emailaddress@testemail.com", $subject, $message, $headers))
    {
    echo "Your request has been sent";
    }else {
    echo "error";
    }
    ?>

Now problem is,
we use google_apps for mailing, but application is not moved on google.
so when the invitation is created on application mail goes to (g)mail,
but when I reschedule it,
it do not overwrite that previous invitation.
So what extra code should I add in my send invitation code?

Please help.
I dont have any info about gmail event generation code.
Ready for RND!
Have not got anything applicatable to my condition.
Hope am clear with my question.

Member Avatar for diafol

we use google_apps for mailing, but application is not moved on google.

What does this mean?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.