Push for pass on Passbook - push-notification

I try send push notification on Passbook by ApnsPHP library
$config['production'] = DOCROOT . '/my_cert.pm';
$config['entrust'] = DOCROOT . '/entrust_root_certification_authority_2048.pem';
$config['passphrase'] = '';
$token = $push_info->push_token;
$text = 'TEST';
$push = new ApnsPHP_Push(
ApnsPHP_Abstract::ENVIRONMENT_PRODUCTION, $config['production']
);
if ($config['passphrase'] <> '') {
$push->setProviderCertificatePassphrase($config['passphrase']);
}
$push->setRootCertificationAuthority($config['entrust']);
$message = new ApnsPHP_Message();
$message->addRecipient($token);
$push->connect();
$message->setSound();
$message->setText($text);
$push->add($message);
$push->send();
$push->disconnect();
$aErrorQueue = $push->getErrors();
if (!empty($aErrorQueue)) {
echo 'Error - ' . print_r($aErrorQueue, true);
}
Output
Wed, 20 Mar 2019 11:01:16 +0000 ApnsPHP[6467]: INFO: Trying tls://gateway.push.apple.com:2195...
Wed, 20 Mar 2019 11:01:17 +0000 ApnsPHP[6467]: INFO: Connected to tls://gateway.push.apple.com:2195.
Wed, 20 Mar 2019 11:01:17 +0000 ApnsPHP[6467]: INFO: Sending messages queue, run #1: 1 message(s) left in queue.
Wed, 20 Mar 2019 11:01:17 +0000 ApnsPHP[6467]: STATUS: Sending message ID 1 [custom identifier: unset] (1/3): 87 bytes.
Wed, 20 Mar 2019 11:01:18 +0000 ApnsPHP[6467]: INFO: Disconnected.
But device didn't try push my server (all request write in log, he is empty).
I cant understand what wrong... some ideas?

The thing is that Apple has made a change in the export of certificates for signing. Now it has a simplified mechanic: the certificate bundle (pass cert and Apple certificate) is immediately exported to "*.pem"

Related

AWS API Gateway and DynamoDb Serialization Exception Response Codes

This question resolves how to fix serializaion errors caused by a bad template, but if they are cause by input errors like a missing param, they are returned with a 200.
I'm trying to add a response template for errors using the CDK on an DynamoDb integration
read_integration_responses=[aws_apigateway.IntegrationResponse(
status_code="200",
response_templates= {"application/json":read_response_template}),
aws_apigateway.IntegrationResponse(status_code="400",
response_templates={"text/html": "Client Error"},
selection_pattern="400" )
])
The 200 works fine, but I get a 500 server error when I have an error. The logs are no help:
Fri Feb 10 21:37:37 UTC 2023 : Sending request to
https://dynamodb.us-east-1.amazonaws.com/?Action=Query Fri Feb 10
21:37:37 UTC 2023 : Received response. Status: 400, Integration
latency: 6 ms Fri Feb 10 21:37:37 UTC 2023 : Endpoint response
headers: {Server=Server, Date=Fri, 10 Feb 2023 21:37:37 GMT,
Content-Type=application/x-amz-json-1.0, Content-Length=60,
Connection=keep-alive,
x-amzn-RequestId=HB4E7S3FS0NIMM44OQRN6RPBEBVV4KQNSO5AEMVJF66Q9ASUAAJG,
x-amz-crc32=3948637019} Fri Feb 10 21:37:37 UTC 2023 : Endpoint
response body before transformations:
{"__type":"com.amazon.coral.service#SerializationException"} Fri Feb
10 21:37:37 UTC 2023 : Execution failed due to configuration error:
Output mapping refers to an invalid method response: 400 Fri Feb 10
21:37:37 UTC 2023 : Method completed with status: 500
Per the method documentation selection_pattern is a string that matches the response code.

Email header with multiple received fields: How can this happen and can this be used to fight SPAM

I often receive fishing /SPAM emails with multiple received fields.
First, I'd like to understand how one email header can have more than one received field.
Second, I'd like to know if I can use this to fight SPAM.
Here is an example:
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on myhosting.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=3.5 tests=HTML_MESSAGE autolearn=ham
version=3.3.2
X-Spam-ASN:
X-Original-To: my#email.rs
Delivered-To: my#email.rs
Received: from posta.abak.si (posta.abak.si [84.255.212.92])
by myhosting.com (Postfix) with ESMTPS id 522CA80DC8
for ; Wed, 8 May 2019 14:31:59 +0200 (CEST)
Authentication-Results: myhosting.com;
dmarc=none (p=NONE sp=NONE) smtp.from=mk.kema-on.net header.from=mk.kema-on.net;
spf=none (sender IP is 84.255.212.92) smtp.mailfrom=dime.mitreski#mk.kema-on.net smtp.helo=posta.abak.si
Received-SPF: none (myhosting.com: no valid SPF record)
Received: from localhost (localhost [127.0.0.1])
by posta.abak.si (Postfix) with ESMTP id 2C09E1E6A7D7
for ; Wed, 8 May 2019 14:35:06 +0200 (CEST)
Received: from posta.abak.si ([127.0.0.1])
by localhost (posta.abak.si [127.0.0.1]) (amavisd-new, port 10032)
with ESMTP id dw1MvahvfmXL for ;
Wed, 8 May 2019 14:35:05 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
by posta.abak.si (Postfix) with ESMTP id EB2B21E6A3C6
for ; Wed, 8 May 2019 14:30:12 +0200 (CEST)
X-Virus-Scanned: amavisd-new at posta.abak.si
Received: from posta.abak.si ([127.0.0.1])
by localhost (posta.abak.si [127.0.0.1]) (amavisd-new, port 10026)
with ESMTP id luUYSdWOdHLE for ;
Wed, 8 May 2019 14:30:12 +0200 (CEST)
Received: from IP-129-13.dataclub.eu (unknown [84.38.129.13])
by posta.abak.si (Postfix) with ESMTPA id B18CD1E6A7A6
for ; Wed, 8 May 2019 14:25:39 +0200 (CEST)
Content-Type: multipart/alternative; boundary="===============0253676305=="
MIME-Version: 1.0
Subject: Warning: you have (3) Undelivered messesges
To: my#email.rs
From: "Webmaster"
Date: Wed, 08 May 2019 15:25:37 +0300
Message-Id:
Message Body
Every mail server that processes an email adds its own Received field to the header. It is normal for emails to pass through several email servers when traveling across the internet from the sender's computer to the final destination.
https://www.rfc-editor.org/rfc/rfc5321#section-4.4
When an SMTP server receives a message for delivery or further
processing, it MUST insert trace ("time stamp" or "Received")
information at the beginning of the message content,
Looking at the first Received field,
Received: from IP-129-13.dataclub.eu (unknown [84.38.129.13])
by posta.abak.si (Postfix) with ESMTPA id B18CD1E6A7A6
for ; Wed, 8 May 2019 14:25:39 +0200 (CEST)
you will notice that it says which server it received the mail from (the "FROM" clause), and which server received it (the "BY" clause").
As you read through the list of Received fields in the header you posted, you will notice that they are all linked in this fashion.

Automated emails from Woocommerce marked as spam. Wrong Return path

All the automated emails sent from woocommerce from my website are marked as spam. Here is the header:
Delivered-To: fontanavideostudios#gmail.com
Received: by 10.64.118.34 with SMTP id kj2csp1351282ieb;
Thu, 2 Apr 2015 05:19:26 -0700 (PDT)
X-Received: by 10.194.176.4 with SMTP id ce4mr94751409wjc.75.1427977166190;
Thu, 02 Apr 2015 05:19:26 -0700 (PDT)
Return-Path: <racebook>
Received: from ns362512.ip-91-121-174.eu ([2001:41d0:1:ef28::1])
by mx.google.com with ESMTP id e5si8490541wjw.70.2015.04.02.05.19.25
for <fontanavideostudios#gmail.com>;
Thu, 02 Apr 2015 05:19:26 -0700 (PDT)
Received-SPF: temperror (google.com: error in processing during lookup of racebook: DNS timeout) client-ip=2001:41d0:1:ef28::1;
Authentication-Results: mx.google.com;
spf=temperror (google.com: error in processing during lookup of racebook: DNS timeout) smtp.mail=racebook;
dkim=temperror (no key for signature) header.i=#
Received: by ns362512.ip-91-121-174.eu (Postfix, from userid 504)
id EA9BA1608B; Thu, 2 Apr 2015 14:16:42 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=racebooking.net;
s=default; t=1427977002;
bh=8Bpk5qKGS/snauZWTEWdgTP8RA8IIyUciiaTtpnN268=;
h=To:Subject:Date:From;
b=uPVvgt52HbS6VIzCMagUSpBDCvF787qIleF13Yw/7E95kuXdVJSdCo5IjbUTmGuBm
TUSe7jiDf4RfGzq2BQJUnFd91RljAVJHxWscY9U/ZFqGU65MjeIIfN7jLa+/k6Aj0/
m2bULvyRjwdU1EInjtl9y3SC593kACANJPR+u8/Y=
To: fontanavideostudios#gmail.com
Subject: Puoi scaricare i files accedendo a questa pagina: https://www.racebooking.net/foto-franciacorta/mio-account/
X-PHP-Originating-Script: 504:class-phpmailer.php
Date: Thu, 2 Apr 2015 12:16:42 +0000
From: Foto Franciacorta <noreply#racebooking.net>
Message-ID: <ddc1208f249c3ad34b96dad0437c49d8#www.racebooking.net>
X-Priority: 3
X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
The cause is probably that the Return-Path is wrong. Instead of noreply#racebooking.net (correct) it is racebook, (incorrect). How can i fix it? I couldn't find any setting into Woocommerce options to fix the Return Path.
I fixed that by using this plugin which simply copies the "from" email into the Return Path

Attach files ics with cdosys and view in gmail

I'm having a problem with an attached .ics file to the email and when it is
I can do it properly but when I open the email I have an incorrect result.
If I attach the .ics file and send it via email when I open the message with gmail I will show the message preview gmail with all the information, but if I am attaching the file ics sending it to a server via object cdosys ASP me appears in an inscription in the email to go to google calendar but without having the preview
The file that I am attaching are equal, and inside of the email I can download it in the same way.
Going to see, however, the message code is known that the first (email preview) has code attached cripatato and another (email without preview) clear
![good preview][1]
![message text no preview][2]
good code
Delivered-To: pippoprovaz#gmail.com
Received: by 10.70.26.228 with SMTP id o4csp279669pdg;
Fri, 20 Feb 2015 14:13:08 -0800 (PST)
X-Received: by 10.194.48.74 with SMTP id j10mr23601760wjn.38.1424470387690;
Fri, 20 Feb 2015 14:13:07 -0800 (PST)
Return-Path: <Pippo.deProva#email.it>
Received: from emout01.email.it (emout01.email.it. [212.97.34.23])
by mx.google.com with ESMTP id eu4si4967228wib.107.2015.02.20.14.13.06
for <pippoprovaz#gmail.com>;
Fri, 20 Feb 2015 14:13:07 -0800 (PST)
Received-SPF: pass (google.com: domain of Pippo.deProva#email.it designates 212.97.34.23 as permitted sender) client-ip=212.97.34.23;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of Pippo.deProva#email.it designates 212.97.34.23 as permitted sender) smtp.mail=Pippo.deProva#email.it
Received: from emout01.email.it (localhost [127.0.0.1])
by emout01.email.it (Postfix) with ESMTP id 939E8961E5
for <pippoprovaz#gmail.com>; Fri, 20 Feb 2015 23:13:05 +0100 (CET)
Received: from 78.213.240.171 (50.34.97.212.host.static.ip.kpnqwest.it [212.97.34.50])
by emout01.email.it (Postfix) with ESMTP id 462DB961E1
for <pippoprovaz#gmail.com>; Fri, 20 Feb 2015 23:13:05 +0100 (CET)
Received: from Email-mailer ([78.213.240.171])
by 78.213.240.171 with HTTP (Wmail);
Fri, 20 Feb 2015 23:13:27 +0100
Date: Fri, 20 Feb 2015 23:13:27 +0100
To: pippoprovaz#gmail.com
From: Pippo De Prova <Pippo.deProva#email.it>
Reply-to: Pippo De Prova <Pippo.deProva#email.it>
Subject:
Message-ID: <595ec85d8657342b8e1ae7c8275139cc#78.213.240.171>
X-Priority:
X-Mailer: Webmail-Email.it [Mailer version 1.70]
X-SenderIP: 78.213.240.171
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="b1_595ec85d8657342b8e1ae7c8275139cc"
--b1_595ec85d8657342b8e1ae7c8275139cc
Content-Type: multipart/alternative;
boundary="b2_595ec85d8657342b8e1ae7c8275139cc"
--b2_595ec85d8657342b8e1ae7c8275139cc
Content-Type: text/plain; charset = "iso-8859-1"
Content-Transfer-Encoding: 8bit
--b2_595ec85d8657342b8e1ae7c8275139cc--
--b1_595ec85d8657342b8e1ae7c8275139cc
Content-Type: text/calendar; name="nonVis.ics"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="nonVis.ics"
QkVHSU46VkNBTEVOREFSClBST0RJRDpNTGVhcm5pbmcKVkVSU0lPTjoyLjAKQ0FMU0NBTEU6R1JF
R09SSUFOCk1FVEhPRDpSRVFVRVNUClgtV1ItQ0FMTkFNRTpVcGNvbWluZyBIUkVHIGFuZCBIRlNU
IGNvdXJzZXMgaW4gTUxlYXJuaW5nClgtV1ItVElNRVpPTkU6RXVyb3BlL1BhcmlzCkJFR0lOOlZU
SU1FWk9ORQpUWklEOkV1cm9wZS9QYXJpcwpYLUxJQy1MT0NBVElPTjpFdXJvcGUvUGFyaXMKQkVH
SU46REFZTElHSFQKVFpPRkZTRVRGUk9NOiswMTAwClRaT0ZGU0VUVE86KzAxMDAKVFpOQU1FOkVE
VApEVFNUQVJUOjE5NzAwMzA4VDAyMDAwMApSUlVMRTpGUkVRPVlFQVJMWTtCWU1PTlRIPTM7QllE
QVk9MlNVCkVORDpEQVlMSUdIVApCRUdJTjpTVEFOREFSRApUWk9GRlNFVEZST006KzAxMDAKVFpP
RkZTRVRUTzorMDEwMApUWk5BTUU6RVNUCkRUU1RBUlQ6MTk3MDExMDFUMDIwMDAwClJSVUxFOkZS
RVE9WUVBUkxZO0JZTU9OVEg9MTE7QllEQVk9MVNVCkVORDpTVEFOREFSRApFTkQ6VlRJTUVaT05F
ClRaTkFNRTpFU1QKVFpOQU1FOkVTVApCRUdJTjpWRVZFTlQKRFRTVEFSVDtUWklEPUV1cm9wZS9Q
YXJpczoyMDE1MDIyN1QxMDAwMDAKRFRFTkQ7VFpJRD1FdXJvcGUvUGFyaXM6MjAxNTAyMjdUMTEz
MDAwCkRUU1RBTVA6MjAxMDA1MjFUMTYyMzQxWgpVSUQ6MzQ0MDA0NTY0NDQ1NjQ1NgpDUkVBVEVE
OjIwMTAwNTIzVDE3NTY0MloKREVTQ1JJUFRJT046MzQ0MDAtNDU2NDQ0NTY0NTYgZGVzY3Jpemlv
bmUgcHJvdmEgdGVjbmljYSBodHRwOi8vd3d3LnNlcnZleGlhLml0P2lkPSAxMjEyMzEKTEFTVC1N
T0RJRklFRDoyMDEwMDQzMFQxNTM3NDVaCkxPQ0FUSU9OOiA5NSBwbGFjZSBkZSBsJ2VwaWNlYVws
IDM0NDAwTHVuZWwKU1VNTUFSWTpTZXJ2ZVhpYSBSRFYgQmFieVNpdHRlclxuClRSQU5TUDpPUEFR
VUUKU0VRVUVOQ0U6MApTVEFUVVM6Q09ORklSTUVEClVSTDpodHRwOi8vd3d3LnNlcnZleGlhLml0
P2lkPTEyMTIzMQpFTkQ6VkVWRU5UCkVORDpWQ0FMRU5EQVIK
--b1_595ec85d8657342b8e1ae7c8275139cc--
no good code
Delivered-To: deProvaPippo#gmail.com
Received: by 10.70.26.228 with SMTP id o4csp268051pdg;
Fri, 20 Feb 2015 13:47:38 -0800 (PST)
X-Received: by 10.50.111.168 with SMTP id ij8mr147639igb.43.1424468858565;
Fri, 20 Feb 2015 13:47:38 -0800 (PST)
Return-Path: <bounces+1528665-e85c-deProvaPippo=gmail.com#ssss.me>
Received: from o1.f.az.sss.net (o1.f.az.sss.net. [])
by mx.google.com with ESMTPS id t17si24017808icl.78.2015.02.20.13.47.38
for <deProvaPippo#gmail.com>
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Fri, 20 Feb 2015 13:47:38 -0800 (PST)
Received-SPF: pass (google.com: domain of bounces+1528665-e85c- deProvaPippo=gmail.com#sssss.me designates 208.117.55.132 as permitted sender) client-ip=ssss;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of bounces+1528665-e85c- deProvaPippo=gmail.com#ssss.me designates 208.117.55.132 as permitted sender) smtp.mail=bounces+1528665-e85c-deProvaPippo=gmail.com#sss.me;
dkim=pass header.i=#ssss.me
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=ssss.me;
h=from:to:subject:mime-version:content-type:content-transfer-encoding:list- unsubscribe:x-feedback-id;
s=smtpapi; bh=undMBD+qKNE1GwBLr58rPPf3HtE=; b=brSOhe4gM9ytjdpvz3
dxPTS+XUpFZIWR+Pm/gDP549JlszKm3nQOi+EJco6tfrrezqJ6IRmWec1C3hWGDW
nkHWxpU5mO4lbUJFvgb3GpfgnVEG1Lyj0ypFrZB35pYafeuI1VCMSZb2IYfDc8Z5
gAgr64ksLsp/DmawENZAW2AwI=
Received: by filter0210p1mdw1.ssss.net with SMTP id filter0210p1mdw1.16398.54E7AB74C
2015-02-20 21:47:34.764937675 +0000 UTC
Received: from RD000D3A206CCE (unknown [10.68.181.194])
by ismtpd-001 (SG) with ESMTP id 14ba8f5c6f0.1d81.486682
for <deProvaPippo#gmail.com>; Fri, 20 Feb 2015 21:47:34 +0000 (UTC)
thread-index: AdBNVtVC+8xyMDrUQMeO/WOGpGp00A==
Thread-Topic: Service RDV BabySitter
From: <info#gmail.com>
To: <deProvaPippo#gmail.com>
Subject: ServeXia RDV BabySitter
Date: Fri, 20 Feb 2015 21:47:33 -0000
Message-ID: <7CA8363974F84ACEAB51BABEB33A2143#RD000D3A206CCE>
MIME-Version: 1.0
Content-Type: application/octet-stream;
name="invite.ics"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="invite.ics"
X-Mailer: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.2.9200.16384
X-SG-EID: asLfHF183T/r3z5aDu8bv6Sekqs8eKacpuWFbt+jsTEG1Cersj6+qI8+skODIcz9/cUazbLbTk/ZCN
ZelAz/20J69ifj4AAYaUlV2LsoOIcYP05+pTPBlL5SGYvTGBGFre8RJLgksQ02LvLlQDP/qk4KDKwQ
Op6+7YM8mF/889f6Cyrs8xlT5tM2Rk2hNp3a
X-Feedback-ID: 1528665:9UZQSDSRl/NPaUcYTCjD6QDsisD+i+sNMgmjc0Vjua0=:9UZQSDSRl/NPaUcYTCjD6QDsisD +i+sNMgmjc0Vjua0=:SG
List-Unsubscribe: <https://u1528665.ct.ssss.net/wf/unsubscribe? upn=UbjGPFuTTwKzcR8eB-2FuGsc0qQAY3Hft5f-2BlmZfUg- 2FJw8vhmMxAV6OxUdoN2WJkTdVTfwKMkfCLAmTQUCan6W4oSXrF1gt0cNb2- 2BSzCxrZ1KpTWQjG9NZY3MuLB5p39StmawZs4RzAnbqX46g76iqleMHqOrRIY5SLuBVsXJ2qn7ZQS5g2 04CuRhjOwb0uqcJMdGYLro0Z4FqSi8AUTzfmh4TlbaoZA9Qs34uOW2aBYY-3D>, <mailto:unsubscribe#sss.me? subject=https://u1528665.ct.ssss.net/wf/unsubscribe*q*upn=UbjGPFuTTwKzcR8eB- 2FuGsc0qQAY3Hft5f-2BlmZfUg- 2FJw8vhmMxAV6OxUdoN2WJkTdVTfwKMkfCLAmTQUCan6W4oSXrF1gt0cNb2- 2BSzCxrZ1KpTWQjG9NZY3MuLB5p39StmawZs4RzAnbqX46g76iqleMHqOrRIY5SLuBVsXJ2qn7ZQS5g2 04CuRhjOwb0uqcJMdGYLro0Z4FqSi8AUTzfmh4TlbaoZA9Qs34uOW2aBYY-3D>
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:CANCEL
BEGIN:VEVENT
DTSTART:20150304T133000Z
DTEND:20150304T143000Z
DTSTAMP:20150216T212734Z
ORGANIZER;CN=Servexia:mailto:72fiic4ab8q2q3tm0c83snepso#group.calendar.google.com
UID:4802a399-8631-45f7-966c-9c02f73be185
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS- ACTION;CN=Lu igi Lenguito;X-NUM-GUESTS=0:mailto:nicola#gmail.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS- ACTION;CN=fa bio#gmail.com;X-NUM-GUESTS=0:mailto:fabio#gmail.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS- ACTION;CN=A drea De Prova;X-NUM-GUESTS=0:mailto:Pippo#gmail.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS- ACTION;CN=fabio#gmail.com;X-NUM-GUESTS=0:mailto:fabio#gmail.com
CREATED:20150211T150114Z
DESCRIPTION:
LAST-MODIFIED:20150216T212734Z
LOCATION:Cap Omega
SEQUENCE:1
STATUS:CANCELLED
SUMMARY:RDV - Cap Omega - Romain Lotou
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
code asp for send the
Dim iMsg
Dim iConf
Dim Flds
Dim strHTML
Const cdoSendUsingPickup = 1
set iMsg = CreateObject("CDO.Message")
set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
dim sch : sch = "http://schemas.microsoft.com/cdo/configuration/"
With Flds
.Item(sch & "sendusing") = 2
.Item(sch & "smtpserver") = "smtp.sendgrid.net"
.Item(sch & "smtpserverport") =465
.Item(sch & "smtpconnectiontimeout") = 10
.item(sch & "smtpauthenticate") = 1 'basic auth
.item(sch & "smtpusessl") = True
.item(sch & "sendusername") = "ssssssssssssss#azure.com"
.item(sch & "sendpassword") = "sssssssssss"
.Update
End With
' Build HTML for message body.
dest="prova#gmail.com"
testo=cstr(code &"-" & instcode & " " & tidyxml(gdescription) & " http://www.numero-telefono.it/?id="& instid)
mailhtml=MailTemplate(testo)
Dim iBP
With iMsg
Set .Configuration = iConf
.To = dest
if bcc <> "" then
.bcc =bcc
end if
if cc <> "" then
.cc =cc
end if
.From = "info#prova.com"
if repley <> "" then
.ReplyTo = repley
end if
.Subject = title
.HTMLBody =mailhtml
.AddAttachment (server.mappath("icalDemo.ics"))
.Send
End With
' Clean up variables.
Set iBP = Nothing
Set iMsg = Nothing
Set iConf = Nothing
Set Flds = Nothing

What PHP default_timezone_set based on?

I want to use the same time on master and slave.
I did that and has problem about date not return the same:
Server #1:
date_default_timezone_set('America/Los_Angeles');
date('r'); // => Thu, 17 Nov 2011 09:16:11 -0800
Server #2:
date_default_timezone_set('America/Los_Angeles');
date('r'); // => Thu, 17 Nov 2011 08:40:21 -0800
Server #3:
date_default_timezone_set('America/Los_Angeles');
date('r'); // => Thu, 17 Nov 2011 02:24:30 -0800
Any reason date('r') not return the same value on all server with same timezone set?
Thanks for your answer.
maybe the time is simple set wrong on the system. you could try to use a timeserver to fetch the date if you dont have enough rights.

Resources