Apple的iCloud阻止来自我网站的电子邮件(Apple's iCloud blocking emails from my website)
我正在开发一个Web应用程序,并且在使用最基本的功能时遇到问题,发送电子邮件。 我的电子邮件代码确实有效,我可以整天发送到gmail,yahoo和我的工作电子邮件地址。 问题是,当Web应用程序尝试发送到Apple iCloud电子邮件地址时,电子邮件永远不会成功。 我已经检查了电子邮件服务器日志,它确实发送了,这会让我相信Apple在他们到达用户之前以某种方式阻止了我的电子邮件。
系统设置
通过GoDaddy购买的域名。 我设置了一个DNS A记录,将所有访问该域名的流量转发到我们的虚拟服务器,该服务器托管在1and1
虚拟服务器是Windows 2008服务器。 我将其设置为实际发送电子邮件的电子邮件服务器,而不是通过GoDaddy进行中继。 注意:在上面,我所做的只是添加一个*。 在iis电子邮件配置中输入
下面是我的PHP测试代码,它发送到每个没有问题的地方,除了iCloud。
mail("person@me.com", "test", "this is a plain test", 'From: Site <no- reply@domainname.com>');
任何帮助将不胜感激!
I am working on a web application, and am having trouble with the most basic of functions, sending an email. My email code does work, I can send to gmail, yahoo, and my work email address all day long. The problem is that when ever the web application attempts to send to an Apple iCloud email address, the email never makes it. I've checked the email server logs, and it does send, which would lead me to believe that Apple is somehow blocking my emails before they ever reach the user.
System Setup
Domain name purchased through GoDaddy. I set up a DNS A record to forward all traffic that hits that domain name to our virtual server, which is hosted at 1and1
The virtual server is a windows 2008 server. I set it up as an email server that actually sends the email itself, as opposed to relaying through GoDaddy. Note: on the above, all i did was add a *. entry in the iis email configuration
Below is my PHP test code, that sends to every where with no problems, except iCloud.
mail("person@me.com", "test", "this is a plain test", 'From: Site <no- reply@domainname.com>');
Any help would be greatly appreciated!
原文:https://stackoverflow.com/questions/17526457
最满意答案
这里有一些代码可能很复杂但递归!
#include <stdio.h> #include <stdlib.h> #include <string.h> void sierpinsky(int N, char c[1000]){ int i=0,j,k,l,born; for(i=0;i<N;i++){printf("%c",c[i]);} printf("\n"); if(N==1){} else{ if((c[0]=='#')&&(c[1]=='#')&&(c[2]=='#')){ for (j=0;2*j<N;j++){ if(c[2*j]=='#'){ c[2*j]='#';c[2*j+1]=' '; } else{ c[2*j]=' ';c[2*j+1]=' '; } } } else if ((c[0]=='#')&&(c[1]!='#')&&(c[2]=='#')){ for (j=0;4*j<N;j++){ if(c[4*j]=='#'){ c[4*j]='#';c[4*j+1]='#';c[4*j+2]=' ';c[4*j+3]=' '; } else{ c[4*j]=' ';c[4*j+1]=' ';c[4*j+2]=' ';c[4*j+3]=' '; } } } else if ((c[0]=='#')&&(c[1]!='#')&&(c[2] !='#')){ k=0; while(c[k+1] !='#'){k++;} born = k+1; j=0; while(j<N){ if((c[j]=='#')&&(c[j+born]=='#')){ for(l=0;l<born;l++){ c[j+l]='#'; } j=j+born+1; } else if ((c[j]!='#')&&(c[j-1+born]=='#')&&(c[j-1+2*born] !='#')) { c[j-1]='#'; for(l=0;l<born;l++){ c[j+l]='#'; } j=j+born+1; } else{ c[j-1]= ' '; c[j]=' '; j++; } } } else if ((c[0] =='#')&&(c[1] =='#')&&(c[2] !='#')){ for (j=0;4*j<N;j++){ if(c[4*j]=='#'){ c[4*j]='#';c[4*j+1]=' ';c[4*j+2]=' ';c[4*j+3]=' '; } else{ c[4*j]=' ';c[4*j+1]=' ';c[4*j+2]=' ';c[4*j+3]=' '; } } } else{} sierpinsky(N-1, c); } } int main() { int i,size; scanf("%d",&size); char c[1000]; for(i=0;i<size;i++){c[i]='#';} for(i=size;i<1000;i++){c[i]='a';} sierpinsky(size, c); }
Here's some code that is perhaps complicated but recursive !
#include <stdio.h> #include <stdlib.h> #include <string.h> void sierpinsky(int N, char c[1000]){ int i=0,j,k,l,born; for(i=0;i<N;i++){printf("%c",c[i]);} printf("\n"); if(N==1){} else{ if((c[0]=='#')&&(c[1]=='#')&&(c[2]=='#')){ for (j=0;2*j<N;j++){ if(c[2*j]=='#'){ c[2*j]='#';c[2*j+1]=' '; } else{ c[2*j]=' ';c[2*j+1]=' '; } } } else if ((c[0]=='#')&&(c[1]!='#')&&(c[2]=='#')){ for (j=0;4*j<N;j++){ if(c[4*j]=='#'){ c[4*j]='#';c[4*j+1]='#';c[4*j+2]=' ';c[4*j+3]=' '; } else{ c[4*j]=' ';c[4*j+1]=' ';c[4*j+2]=' ';c[4*j+3]=' '; } } } else if ((c[0]=='#')&&(c[1]!='#')&&(c[2] !='#')){ k=0; while(c[k+1] !='#'){k++;} born = k+1; j=0; while(j<N){ if((c[j]=='#')&&(c[j+born]=='#')){ for(l=0;l<born;l++){ c[j+l]='#'; } j=j+born+1; } else if ((c[j]!='#')&&(c[j-1+born]=='#')&&(c[j-1+2*born] !='#')) { c[j-1]='#'; for(l=0;l<born;l++){ c[j+l]='#'; } j=j+born+1; } else{ c[j-1]= ' '; c[j]=' '; j++; } } } else if ((c[0] =='#')&&(c[1] =='#')&&(c[2] !='#')){ for (j=0;4*j<N;j++){ if(c[4*j]=='#'){ c[4*j]='#';c[4*j+1]=' ';c[4*j+2]=' ';c[4*j+3]=' '; } else{ c[4*j]=' ';c[4*j+1]=' ';c[4*j+2]=' ';c[4*j+3]=' '; } } } else{} sierpinsky(N-1, c); } } int main() { int i,size; scanf("%d",&size); char c[1000]; for(i=0;i<size;i++){c[i]='#';} for(i=size;i<1000;i++){c[i]='a';} sierpinsky(size, c); }
相关问答
更多-
预测三角形是否可以在C中形成3个角度(和三角形的类型)(Predict if triangle can be formed with 3 angles (and type of triangle) in C)[2022-05-20]
将您的角度作为参数传递给被调用的函数: void task2(double ang1, double ang2, double ang3) { // check what's necessary here } int main() { double ang1, ang2, ang3; // read user input // check whether angles make a triangle task2(ang1, ang2, ang3); } Pass ... -
此回复可能无法回答您的整个问题,但至少会有一些代码需要讨论。 我认为很难对块进行memcmp,因为三角形的2x2块在两个不同位置的内存中被放置为2 + 2个数据块。 Memcmp假设您的所有数据都在连续的内存中。 下面的代码有find_triangles函数,我们可以继续讨论和改进。 它将每个三角形定义为单个点,即两条线的交点。 要成为一个三角形,交点必须是1.一旦我们很容易找到可能的交点,下一个问题是该点是否真的是任何三角形和三角形的真实交点。 我将类型存储为结果中的位域。 主要功能可能不那么容易阅读,但 ...
-
这里有一些代码可能很复杂但递归! #include
#include #include void sierpinsky(int N, char c[1000]){ int i=0,j,k,l,born; for(i=0;i 如果你想绘制像素,画布可能是错误的选择。 您可以创建PhotoImage并修改单个像素。 如果你绘制每个单独的像素,它会有点慢,但如果你只为图像的每一行调用一次put方法,你就可以获得惊人的加速。 这是一个完整的例子: from tkinter import * import random import math def plotpoint(x, y): global the_image the_image.put(('#000000',), to=(x,y)) x = 0 y = 0 ...假设a,b,c是三角形的边。 因此,它必须满足这个标准: a + b> c a + c> b b + c> a 所有的标准必须是真实的。 如果其中一个是错误的,那么a,b,c将不会创建三角形。 #include#include using namespace std; int main() { int a, b, c; cin >> a >> b >> c; // check whether a, b, c can form a trian ... 在CSS中创建三角形标记(Creating a Triangle marker in CSS)[2022-03-30]
尝试这样的事情。 .mainSelected { text-align: center; position: relative; } /* this is the actual triangle */ .mainSelected:after { content: ' '; width: 0; height: 0; display: block; border-left: 6px solid transparent; border-rig ...你的外循环使i从1变为n (这意味着n行),但是每行少于n行,星数减少2而不是1.额外的行是这样的结果。 额外的行中没有星星,因为在这个循环中: for(j=i;j<=n-i+1;j++) cout<<"*"; 一旦i超过n一半大小,循环就不会打印任何星星,因为j的初始值大于j的终止条件。 Your outer loop is making i go from 1 to n (which means n rows), but there are less than n rows since eac ...如何旋转三角形?(How to rotate a triangle?)[2022-12-04]
你忘记了乘以圆的半径。 此外,由于Y轴在UIKit坐标系中指向下方,因此您必须减去而不是添加弧度并在结尾处取消y坐标。 并且你需要使用atan2只给出-pi / 2到pi / 2范围内的输出: float currentAngle = atan2f(deltaY, deltaX); float newAngle = currentAngle - radians; float radious = sqrtf(powf(deltaX, 2.0) + powf(deltaY, 2.0)); float newX ...三个点不仅确定三角形,还确定平面。 首先找到通过三个点的平面 ,然后使用平面方程求解P.的z值。 Three points determine not only a triangle, but also a plane. First find the plane that passes through the three points, then use the equation of the plane to solve for the z-value of P.有条件地用下三角形替换矩阵上三角形元素(Conditionally replace matrix upper-triangle elements with lower-triangle)[2022-01-16]
z <- matrix(c(0,1,2,0,0,1,0,0,0),nrow=3,ncol=3) z[upper.tri(z) & t(z) == 1] = 1 适合我。 注意:你的upperTriangel和lowerTriangle似乎不是基础的一部分。 您可能想要指出它们来自哪个包。 z <- matrix(c(0,1,2,0,0,1,0,0,0),nrow=3,ncol=3) z[upper.tri(z) & t(z) == 1] = 1 works for me. Note: your uppe ...相关文章
更多- Cannot expose request attribute 'website' because of an existing model object of the same name 的解决方案
- Fluid Shopping Website 开发阶段性总结——第一周
- 电子邮件的传输过程
- 邮件服务器与电子邮箱-java邮件开发1
- 解决广播风暴的方法:storm-control
- wordpress自定义后台用户联系方式 添加qq、微博、微信
- Cheatsheet: 2011 12.01 ~ 12.12
- 电子商务网站搜索架构方案
- 电子商务网站搜索架构方案
- 测试网站和电子书下载网址
最新问答
更多- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)
- 是否可以嵌套hazelcast IMaps?(Is it possible to nest hazelcast IMaps? And whick side effects can I expect? Is it a good Idea anyway?)
- UIViewAnimationOptionRepeat在两个动画之间暂停(UIViewAnimationOptionRepeat pausing in between two animations)
- 在x-kendo-template中使用Razor查询(Using Razor query within x-kendo-template)
- 在BeautifulSoup中替换文本而不转义(Replace text without escaping in BeautifulSoup)
- 如何在存根或模拟不存在的方法时配置Rspec以引发错误?(How can I configure Rspec to raise error when stubbing or mocking non-existing methods?)
- asp用javascript(asp with javascript)
- “%()s”在sql查询中的含义是什么?(What does “%()s” means in sql query?)
- 如何为其编辑的内容提供自定义UITableViewCell上下文?(How to give a custom UITableViewCell context of what it is editing?)
- c ++十进制到二进制,然后使用操作,然后回到十进制(c++ Decimal to binary, then use operation, then back to decimal)
- 以编程方式创建视频?(Create videos programmatically?)
- 无法在BeautifulSoup中正确解析数据(Unable to parse data correctly in BeautifulSoup)
- webform和mvc的区别 知乎
- 如何使用wadl2java生成REST服务模板,其中POST / PUT方法具有参数?(How do you generate REST service template with wadl2java where POST/PUT methods have parameters?)
- 我无法理解我的travis构建有什么问题(I am having trouble understanding what is wrong with my travis build)
- iOS9 Scope Bar出现在Search Bar后面或旁边(iOS9 Scope Bar appears either behind or beside Search Bar)
- 为什么开机慢上面还显示;Inetrnet,Explorer
- 有关调用远程WCF服务的超时问题(Timeout Question about Invoking a Remote WCF Service)