好吧,我无法弄清楚这一点.我正在使用PHPMailer从我的域发送电子邮件 - example.com给自己.我正在给自己发送电子邮件.(测试谷歌架构标记),但电子邮件未经过身份验证.这是我用来向自己发送电子邮件的代码.
$mail = new PHPMailer();
$mail->isSMTP();
$mail->SMTPDebug = 2;
$mail->Host = 'tls://smtp.gmail.com';
$mail->Port = 587;
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'tls';
$mail->Username = 'myemail@gmail.com';
$mail->Password = '';
$mail->setFrom('myemail@gmail.com');
$mail->addAddress('myemail@gmail.com');
$mail->Subject = 'Microdata Test';
$html = '
<html>
<head>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"description": "Check this out",
"potentialAction": {
"@type": "ViewAction",
"target": "https://www.youtube.com/watch?v=eH8KwfdkSqU"
}
}
</script>
</head>
<body>
<p>
This a test for a Go-To action in Gmail.
</p>
</body>
</html>
';
$mail->msgHTML($html);
$mail->send();
Run Code Online (Sandbox Code Playgroud)
这是我的spf记录:
v …
我正在努力实现这一目标.假设我有两个数据库 - db1,db2.它们每个都有一个名为tb的表,表结构对于两者都是相同的,但记录是不同的.有没有任何优雅的方法我可以用db1.tb中的记录替换db2.tb中的所有记录.我想我可以通过php实现这一点,但我正在寻找一种优雅的方式.