我在尝试创建用户时遇到了这个错误(我正在使用设计宝石).
EOFError (end of file reached):
Run Code Online (Sandbox Code Playgroud)
我之前遇到过这个问题,这是由于我使用zoho邮件的smtp设置.
我相信我的配置是解决问题的原因:
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => "smtp.zoho.com",
:port => 465,
:domain => 'example.com',
:user_name => 'user@example.com',
:password => 'password',
:authentication => :login,
:ssl => true,
:tls => true,
:enable_starttls_auto => true
}
Run Code Online (Sandbox Code Playgroud)
现在我们已经向网站添加了SSL,我相信这就是导致此错误发生的原因.
有没有人对SSL的错误或zoho邮件smtp设置有任何了解?
我正在使用ZOHO API并尝试使用cURL更新记录.我尝试了不同的cURL变体,但它总是返回"false".但是当我使用浏览器调用相同的URL时,它可以工作.
他们有什么方法可以阻止cURL请求吗?有没有其他方法可以使用POST或GET请求调用该URL?
我尝试过的cURL代码如下:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, 0);
$data = curl_exec($ch);
curl_close($ch);
Run Code Online (Sandbox Code Playgroud) 任何人都有运气配置ActionMailer通过Zoho帐户发送电子邮件?
这些是我的设置:
ActionMailer::Base.smtp_settings = {
:address => "smtp.zoho.com",
:port => 465,
:domain => 'example.com',
:user_name => 'steve@example.com',
:password => 'n0tmypa$$w0rd',
:authentication => :login
}
Run Code Online (Sandbox Code Playgroud)
但是,调用.deliver超时:
irb(main):001:0> AdminMailer.signup_notification('asfd').deliver
Timeout::Error: Timeout::Error
from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:146:in `rescue in rbuf_fill'
from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:140:in `rbuf_fill'
from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:122:in `readuntil'
from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:132:in `readline'
from C:/Ruby193/lib/ruby/1.9.1/net/smtp.rb:929:in `recv_response'
from C:/Ruby193/lib/ruby/1.9.1/net/smtp.rb:552:in `block in do_start'
from C:/Ruby193/lib/ruby/1.9.1/net/smtp.rb:939:in `critical'
from C:/Ruby193/lib/ruby/1.9.1/net/smtp.rb:552:in `do_start'
from C:/Ruby193/lib/ruby/1.9.1/net/smtp.rb:519:in `start'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mail-2.4.4/lib/mail/network/delivery_methods/smtp.rb:144:in `deliver!'
Run Code Online (Sandbox Code Playgroud)
在帮助文档说,使用端口465和SSL认证.我曾经尝试过,:enable_starttls_auto => true但是它仍然超时.
具体而言,文档指定以下设置:
> Email Address: Username@yourdomain.com
> User Name …Run Code Online (Sandbox Code Playgroud) 在搜索了 6 个多小时试图了解 zoho 发送电子邮件的邮件问题之后!在我阅读了很多他们的答案但没有任何有用的解决方案后,我发现解决方案是您需要sender在 NodeMailer 选项中设置与具有相同发件人姓名和发件人电子邮件的电子邮件相同的选项。像这样 : from: '"senderNameSameLikeTheZohoOne<emailname@yourwebsite.com>',
我的配置:
const transporter = nodemailer.createTransport({
service:'Zoho',
host: 'smtp.zoho.com',
port: 465,
secure: true, // use SSL
auth: {
user: `${process.env.EMAIL_ADDRESS}`,
pass: `${process.env.EMAIL_PASSWORD}`
},
});
const mailOptions = {
from: '"senderNameSameLikeTheZohoOne" <emailname@yourwebsite.com>',
to: `${user.email}`,
subject: '',
text:''
,
};
transporter.sendMail(mailOptions, (err, response) => {
if (err) {
console.error('there was an error: ', err);
res.status(401).json(err);
} else {
// console.log('here is the res: ', response);
res.status(200).json('recovery email sent');
}
});
Run Code Online (Sandbox Code Playgroud)
希望它可以帮助某人
我正在寻找一个AaaS来处理商业软件开发项目的敏捷/ scrum项目管理.我们可能会使用git作为SCM,理想情况下我们希望在SCM中的代码更改与项目管理中的任务/错误之间实现良好的集成.我已经将搜索范围缩小到几个选项:
Redmine:主流开源,免费软件开发管理工具.任务,错误,维基,博客,时间跟踪,git集成,几乎我们需要的一切.没有托管.可以在内部部署,也可以在CloudFoundry等PaaS中部署.
JIRA:很多功能.与Git,Eclipse,大量插件,大量功能集成.1至4美元/月/人/申请.与谷歌应用程序的有限集成.
Zoho Projects:新一代管理应用程序,与谷歌应用程序(日历,文档,任务)完全集成.任务管理,文档共享,时间跟踪和计费,错误跟踪软件,甘特图,项目维基,项目聊天,项目日历,项目论坛.使用bug跟踪器,票务,git集成.相当昂贵(项目$ 299 /年,Bug Tracker附加$ 299 /年)
Yodiz:看起来非常适合scrum(scrum board,release board,backlog,planning board,epics,sprint,release).它具有时间表和与SCM的集成,在提交代码时自动发布任务/缺陷(http://app.yodiz.com/thirdparty/pages/git.vz?pid=6).为GitHub定价5美元/用户/月+ 22美元.还有另一个类似的软件fogcreek(http://www.fogcreek.com),但它非常昂贵.
Assembla:一切都在一个屋檐下.SCM存储库+所有敏捷功能(wiki,票证,文件等).每月9美元至99美元,组合投资组合10美元/用户/月.相当受欢迎.
Assembla看起来是一个非常好的选择,但我似乎没有找到关于它的反馈.你能否就Assembla,其他工具和其他不同的选择给我你的建议.
一个有趣的项目管理/ CRM/bug跟踪器比较电子表格:
我试图从我的基于django的网站发送电子邮件,但我遇到了一些问题 - SMTPServerDisconnected连接意外关闭我的setting.py:
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.zoho.com'
EMAIL_PORT = 465
EMAIL_HOST_USER = 'me@mydomain.com'
EMAIL_HOST_PASSWORD = 'XXXXXX'
Run Code Online (Sandbox Code Playgroud)
我使用的是django 1.5.1,python 2.7.3.有谁能解决这个问题?
谢谢你的帮助
我正在努力Yii2.我有一个URL关于浏览器被重定向到我的重定向URI.
网址
https://accounts.zoho.com/oauth/v2/auth?scope=ZohoBugTracker.projects.ALL,ZohoBugTracker.bugs.ALL&client_id=1000&response_type=code&access_type=offline&redirect_uri=http://11.111.111.111:7000/api/oauth/zoho_auth
Run Code Online (Sandbox Code Playgroud)
当我点击上面的URL时,它会在提供代码时重定向到我的重定向URI
重定向URI
点击上面的URL后,重定向URI就是 http://11.111.111.111:7000/api/oauth/zoho_auth?code=1000&location=us&accounts-server=https%3A%2F%2Faccounts.zoho.com
重定向URI响应
{"Message":"找不到与请求URI匹配的HTTP资源" http://11.111.111.111:7000/api/oauth/zoho_auth?code=1000&location=us&accounts-server=https:%2F%2Faccounts.zoho. com '."}
如何code从上面的回应得到?
更新1
根据给出的建议.我试图GET使用linslin发送请求.以下是我的代码
public static function authToken()
{
$curl = new curl\Curl();
$response = $curl->setGetParams([
'scope' => 'ZohoBugTracker.projects.ALL,ZohoBugTracker.bugs.ALL',
'client_id' => '1000',
'response_type' => 'code',
'access_type' => 'offline',
'redirect_uri' => 'http://11.111.111.111:7000/api/oauth/zoho_auth',
])
->get('https://accounts.zoho.com/oauth/v2/auth');
echo $response;
exit();
}
Run Code Online (Sandbox Code Playgroud)
然后在函数中调用此函数,通过该函数我实际上使用zoho API创建错误
测试我的API通道POSTMAN
我的email …
使用带有我的codeigniter应用程序的SMTP时,我无法收到要发送的电子邮件.
在SO上有很多类似的问题,但没有一个可以解决我的问题,所以这就是为什么我要再问一次.
这是我得到的错误:
hello:
The following SMTP error was encountered:
Failed to send AUTH LOGIN command. Error:
from:
The following SMTP error was encountered:
to:
The following SMTP error was encountered:
data:
The following SMTP error was encountered:
The following SMTP error was encountered:
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
User-Agent: CodeIgniter
Date: Tue, 22 Apr 2014 22:54:12 -0400
From:
Return-Path:
To: myemail@gmail.com
Subject: =?utf-8?Q?Request_from_C&J_Builders_Contact_form?=
Reply-To: "donotreply@C&JBuilders.us" …Run Code Online (Sandbox Code Playgroud) 我正在尝试解析以下复杂的 JSON 结果,该结果是从 Zoho Crm API 返回的:
{
"response":
{
"result":
{
"Contacts":
{
"row":
[
{
"no":"1",
"FL":
[
{
"content":"555555000000123456",
"val":"CONTACTID"
},
{
"content":"555555000000012345",
"val":"SMOWNERID"
},
{
"content":"John Doe",
"val":"Contact Owner"
},
{
"content":"Pete",
"val":"First Name"
},
{
"content":"Smith",
"val":"Last Name"
},
{
"content":"pete@mail.com",
"val":"Email"
},
{
"content":"5555551000000012346",
"val":"SMCREATORID"
},
{
"content":"Jane Doe",
"val":"Created By"
},
{
"content":"555555000000012347",
"val":"MODIFIEDBY"
},
{
"content":"Doris Doe",
"val":"Modified By"
},
{
"content":"2013-06-14 17:24:10",
"val":"Created Time"
},
{
"content":"2013-06-14 17:24:10",
"val":"Modified Time"
}, …Run Code Online (Sandbox Code Playgroud) 我已经关注了这个文档,这是我的代码:
$url = "https://mail.zoho.com/api/accounts/662704xxx/messages";
$param = [ "fromAddress"=> "myemail@mydomain.com",
"toAddress"=> "somewhere@gmail.com",
"ccAddress"=> "",
"bccAddress"=> "",
"subject"=> "Email - Always and Forever",
"content"=> "Email can never be dead ..."];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($param));
$result = curl_exec($ch);
curl_close($ch);
print_r($result);
die;
Run Code Online (Sandbox Code Playgroud)
回应是:
{"data":{"errorCode":"INVALID_TICKET","moreInfo":"Invalid ticket"},"status":{"code":400,"description":"Invalid Input"}}
Run Code Online (Sandbox Code Playgroud)
并且响应意味着:(根据this)
BAD REQUEST - 请求 API 中传递的输入无效或不正确。请求者必须更改输入参数并再次发送请求。
知道我该如何解决吗?