我正在尝试发送自动电子邮件(真正需要的商业原因 - 不是垃圾邮件!).类似于下面的代码用于与另一个邮件服务提供商合作,但客户已经转移到"outlook.com",他们现在得到:
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was not authenticated
Run Code Online (Sandbox Code Playgroud)
当然这个(C#)代码应该工作:
private void Send_Click(object sender, EventArgs e)
{
MailMessage message = null;
try
{
message = new MailMessage(From, To);
message.Subject = "Update Request Session from " + From;
message.CC.Add(Cc);
message.Body = "Test message: please ignore.";
message.IsBodyHtml = false;
SmtpClient client = new SmtpClient("smtp.outlook.com", 587);
client.Credentials = new System.Net.NetworkCredential(From, Password);
client.UseDefaultCredentials = false;
client.DeliveryMethod = SmtpDeliveryMethod.Network; …
Run Code Online (Sandbox Code Playgroud) 有谁知道我应该使用什么Exchange OWA URL通过DavMail连接到Office 365?尝试:
https://portal.microsoftonline.com/
https://pod51013.outlook.com/ews/exchange.asmx
https://pod51013.outlook.com/owa/
Run Code Online (Sandbox Code Playgroud)
非常感谢
我创建了一个非常简单的html电子邮件. http://staging.xhtml-lab.com/mailtest/
它在所有电子邮件客户端都运行正常,但hotmail.com/outlook.com除外
在Hotmail电子邮件中保持对齐,它应保持居中对齐.
我已经按照emailology.org的建议添加了以下代码,但它没有任何效果.
<style type=“text/css”>
/**This is to overwrite Hotmail’s Embedded CSS************/
table {border-collapse:separate;}
a, a:link, a:visited {text-decoration: none; color: #00788a}
a:hover {text-decoration: underline;}
h2,h2 a,h2 a:visited,h3,h3 a,h3 a:visited,h4,h5,h6,.t_cht {color:#000 !important}
p {margin-bottom: 0}
.ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td {line-height: 100%}
/**This is to center your email in Hotmail************/
.ExternalClass {width: 100%;}
</style>
Run Code Online (Sandbox Code Playgroud)
有什么建议我可以做些什么来使电子邮件中心一致?
我正在编写一个简单的C#移动应用程序,我已在https://apps.dev.microsoft.com/上注册以访问live.com/outlook.com邮箱(不是outlook 365 mbx).我正在使用ADAL进行身份验证,使用客户端ID并从注册中重定向URI.我不确定是否应该从注册网站生成密码以及我应该如何使用生成的密码.我遇到的是我得到通常的提示进行身份验证,我提供了我的凭据,我看到一个令牌被返回(RequestSecurityTokenResponse)我的数据(名字,姓氏等)意味着身份验证过程成功但是身份验证过程以错误" AADSTS50020:我们无法从此api版本为Microsoft帐户发出令牌.请联系应用程序供应商,因为他们需要使用该协议的2.0版本来支持此功能. "
我不确定如何解释错误:错误是说我没有使用协议的v2.0,或者它说我没有调用他们的身份验证端点的v2.0.
我面临的困难是微软已经改变了很多次协议和接口,并混合了live.com/outlook.com和azure/office365,最后我不知道我应该提供什么作为权威网址以及访问live.com/outlook.com邮箱的资源uri.
我注意到的是,除了身份验证UI之外,我没有获得用户界面,我应该授权应用程序代表我.
下面是带有smtp地址模糊处理的传出请求.
这是我用过的代码:
string authority = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize";
PlatformParameters authParms = new PlatformParameters(PromptBehavior.Always, null);
AuthenticationContext authContext = new AuthenticationContext(authority, TokenCache.DefaultShared);
AuthenticationResult result = await authContext.AcquireTokenAsync(
"https://outlook.office.com/mail.read",
clientId,
new Uri(redirectUri),
authParms);
Run Code Online (Sandbox Code Playgroud) 有没有人成功使用Live SDK(也称为OneDrive SDK)来检索用户联系人的电子邮件地址和/或电话号码?
我能做的最好的是获取用户联系人的个人资料,但它只包括散列的电子邮件地址和没有电话号码,例如:
{
"id": "contact.1e680c06000000000000000000000006",
"first_name": "James",
"last_name": "Cameron",
"name": "James Cameron",
"gender": null,
"is_friend": false,
"is_favorite": false,
"user_id": null,
"email_hashes": [ "3972d8781911deba416ecf8e44dcc5f4dae92ab9aac58520bcfa480c31ea38f5", "301e45d554a7978c2a8ef1e662876411dfbca4b89535d2362dff3f6d786366b7" ],
"updated_time": "2011-07-21T20:31:11+0000"
}
Run Code Online (Sandbox Code Playgroud) 是否有通过outlook.com检索或发送电子邮件的当前或计划的API?我似乎无法通过POP,IMAP,Exchange或其他方式来确定是否支持此功能.该实时连接开发中心似乎并没有提及outlook.com呢.
我正在使用Office 365 API从我的日历中请求事件.具体来说,我有一个共享日历(我与之共享的日历可以编辑日历),但是当从API请求数据时,我无法看到事件的组织者的差异.由于我想根据添加了该事件的人发送不同的消息,我想知道是谁添加了该消息.
是否有其他财产或方式来确定谁添加/更新了活动?
我知道我们可以有条件地定位Outlook '07 -'13,但似乎Outlook.com也符合我的条件.
<!--[if !mso]><!--><br /><!--<![endif]-->
Run Code Online (Sandbox Code Playgroud)
对于与Outlook.com不匹配的地方,是否有更好的代码?
我正在使用ActionMailer
我的申请表中的"联系我们"表单发送邮件.
我正在使用Mandrill应用程序发送我的电子邮件.这些是我的设置:
配置/环境/ development.rb
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => "smtp.mandrillapp.com",
:port => 587,
:enable_starttls_auto => true,
:user_name => 'SMTP username i.e Mandrill a/c username',
:password => 'API key for development',
:domain => 'example.com',
:authentication => 'plain'
}
Run Code Online (Sandbox Code Playgroud)
配置/环境/ production.rb
我已删除该行
config.action_mailer.raise_delivery_errors = true
并更改了生产密码 - 这是用于生产的Mandrill app API密钥.
应用程序/邮寄者/ contactus_mailer.rb
class ContactusMailer < ActionMailer::Base
default :from => "noreply@example.com"
default :to => "help@example.com"
def new_message(message)
@message = message …
Run Code Online (Sandbox Code Playgroud) 我有一个静态地图图像使用标准的谷歌地图网址没有api密钥.
这似乎适用于每个电子邮件客户端,最近除了outlook.live.com.
而不是预期的图像,我得到一个灰色的jpg,其上写着"g.co/staticmaperror/key",这导致了这个文档.
我知道Google将非密钥请求的使用限制为每天25,000.这只是Google认可outlook.live.com的请求限制吗?如果是这样,为什么我没有在其他客户端上看到过这种行为,例如Yahoo邮件?或者他们如何测量像我在桌面Outlook邮箱中打开电子邮件的内容?
outlook.com ×10
c# ×2
email ×2
hotmail ×2
office365 ×2
outlook ×2
smtp ×2
.net ×1
actionmailer ×1
adal ×1
api ×1
azure ×1
contacts ×1
email-client ×1
google-maps ×1
html ×1
html-email ×1
image ×1
live-sdk ×1
mandrill ×1
oauth-2.0 ×1
office365api ×1
onedrive ×1
smtpclient ×1
ssl ×1
windows-live ×1