您好,欢迎访问一九零五行业门户网

PHP 发送 outlook 约会邮件

<?php $to = "other@xxxx.net"; $from = "me@xxxx.net"; $subj = "my test subject"; $msg = "this is the email body"; $header = "from: " . $from . "\r\n" . "mime-version: 1.0\r\n" . "content-type: text/calendar;method=request"; $txt_msg = "this is my text message, to be attached\r\n" . "not much to it, eh."; //various ways to creat a new, random uid $cal_uid = "{" . uniqid(mt_rand(), true) . "}"; $cal_uid = "{" . date('ymd').'t'.date('his')."-".rand()."@mydomain.com}"; $cal_uid = com_create_guid(); $cal_msg = "begin:vcalendar prodid:-//microsoft corporation//outlook 11.0 mimedir//en version:2.0 method:request begin:vevent organizer:mailto:name dtstart:20090901t170000z dtend:20090901t035959z uid:" . $cal_uid . " location:my meeting location transp:opaque sequence:0 dtstamp:20060309t045649z categories:meeting description:meeting description, line 1 of 2.\nline 2 of 2.\n\n summary:meeting subject priority:5 x-microsoft-cdo-importance:1 class:public begin:valarm trigger:-pt3d action:display description:reminder end:valarm begin:vtimezone tzid:us/central end:vtimezone end:vevent end:vcalendar"; if (mail($to, $subj, $cal_msg, $header, "")) { echo "test email sent"; } else { echo "test email failed"; } ?>
其它类似信息

推荐信息