smtp

PHP Fatal error: 'Swift_TransportException' with message 'Failed to authenticate on SMTP server

笑着哭i 提交于 2019-12-17 18:44:33
问题 I know this question's been asked before and I've read all the posts out there, but I still can't find a solution to this. I have a windows machine with wamp installed on it. When I try to send a simple email via google's SMTP server everything works fine. Though, when I copy that same script to an Ubuntu 12 machine, it gives me that error: PHP Fatal error: Uncaught exception 'Swift_TransportException' with message 'Failed to authenticate on SMTP server with username "xxx@gmail.com" using 2

PHP - Swiftmailer using STARTTLS and self signed certificates

拟墨画扇 提交于 2019-12-17 18:23:58
问题 I'm trying to send an email with php and swiftmailer, using STARTTLS, but I'm getting a certificate error. I have root access to the SMTP server, and the certificate used is self-signed. I'm using Debian on both machines (web server and smtp server) PHP message: PHP Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in [..]/lib/classes/Swift/Transport/StreamBuffer

Gmail: How to send an email programmatically

♀尐吖头ヾ 提交于 2019-12-17 18:22:13
问题 Possible Exact Duplicate: Sending Email in C#.NET Through Gmail Hi, I'm trying to send an email using gmail: I tried various examples that I found on this site and other sites but I always get the same error: Unable to connect to the remote server -- > System.net.Sockets.SocketException: No connection could be made because the target actively refused it 209.85.147.109:587 public static void Attempt1() { var client = new SmtpClient("smtp.gmail.com", 587) { Credentials = new NetworkCredential(

PHP - Swiftmailer using STARTTLS and self signed certificates

*爱你&永不变心* 提交于 2019-12-17 18:21:04
问题 I'm trying to send an email with php and swiftmailer, using STARTTLS, but I'm getting a certificate error. I have root access to the SMTP server, and the certificate used is self-signed. I'm using Debian on both machines (web server and smtp server) PHP message: PHP Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in [..]/lib/classes/Swift/Transport/StreamBuffer

Connecting to smtp.gmail.com via command line

て烟熏妆下的殇ゞ 提交于 2019-12-17 17:32:30
问题 I am in the process of writing an application that sends mail via an valid GMail user ID and password. I just wanted to simulate the SMTP connection on my Windows XP command line, and when I telnet smtp.gmail.com at 465 port - I don't see any thing. A blank command window with title Telnet smtp.gmail.com opens with cursor. When I type in EHLO or usual SMTP handshake commands, the prompt just closes. I am unable to figure out whats going wrong and where. I tried connecting to 587, it does not

Fail Sending Email Unable To Connect the Remote Server

*爱你&永不变心* 提交于 2019-12-17 17:14:37
问题 im facing error when sending email. here is the error what is the actual error for this exception because i newbie in in this, by the way here is my code line: Try Dim SmtpServer As New SmtpClient() Dim mail As New MailMessage() SmtpServer.Credentials = New _ Net.NetworkCredential("test@gmail.com", "passwordexample") SmtpServer.EnableSsl = True SmtpServer.Port = 587 SmtpServer.Host = "smtp.gmail.com" mail = New MailMessage() mail.From = New MailAddress("test@gmail.com") mail.To.Add(

阿里云服务器 发送邮箱 STMP 25端口 465端口问题 Javamail 25被禁用

雨燕双飞 提交于 2019-12-17 17:05:12
我们传统使用的比较简单的是 STMP 25端口收发邮件 今天发现刚购买的阿里云服务器不能作为客户端通过STMP 25端口发送邮件 开始在网上有说发现是JDK1.8的原因,然后自己也把JDK1.8换到了JDK1.7 还是不行,所以这里排除了JDK的原因。 那么问题来了,是否25端口不能连接适用喃? 然后在终端输入命令行 ,可测试25端口是否可连接。 telnet smtp.163.com 25 返回成功 说明你的服务器 是没有封掉25端口的。上面的图是我自己的电脑,当然能连通。 当换到服务器测试的时候 就会出现一只连接不成功 找了很久的问题,突然在阿里云客服社区发现一个帖子,当中有客服的解释,当然我不是第一个遇到这个问题的人。 那么客服的解释一下就说明的问题:好像是将25端口封掉了 时间是2016年9月底以后新购买的服务器。 那么问题找到了 那就需要将25端口换到465端口 采用SSL协议传输邮件。 好了贴代码时间到: 下面这段代码是采用SSL协议发送邮件,可向多人单人发送邮件 import java.io.File; import java.io.UnsupportedEncodingException; import java.security.Security; import java.util.Date; import java.util.Map; import java

log4j StringToMatch in property file

懵懂的女人 提交于 2019-12-17 15:44:33
问题 I have following XML configration i would like to convert to java property file. I am getting below error log4j:WARN Failed to set property [filter] to value "org.apache.log4j.varia.DenyAllFilter". log4j:ERROR Could not instantiate class [true]. java.lang.ClassNotFoundException: true at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader

Pipe incoming email to a script on Windows IIS SMTP?

≡放荡痞女 提交于 2019-12-17 15:42:14
问题 I have a web application running on Windows IIS. This app has a database where each item has a unique key (1, 2, 3...), and a list of email addresses (among other things). I would like users to send email to the server, using an email address that identifies the item, then have the server relay the message to the email addresses for that item. For example, if a user sends email to the following address: item-75@myserver.example.com Then the server would receive the email and pipe it to a

Cannot get ActionMailer working with MS Exchange via SMTP

折月煮酒 提交于 2019-12-17 15:41:22
问题 Here's my simple test program (using ActionMailer 3.0.8, Ruby 1.9.2p180 Mac OS X): require 'rubygems' require 'action_mailer' ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address => "my_exchange_server", :port => 25, :domain => 'my_domain.org', :authentication => :login, :user_name => 'my_user', :password => 'my_password', :enable_starttls_auto => false } ActionMailer::Base.raise_delivery_errors = true ActionMailer::Base.perform_deliveries = true