smtp

JavaMail SMTPSendFailedException

北城余情 提交于 2019-12-07 23:15:55
问题 I am writing a bulk email program using the JavaMail api. I have a Microsoft Exhange server which I am trying to send the emails in to. When I run my program I get the following error: **com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057) at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1862) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1100) at javax.mail.Transport.send0(Transport.java:195) at javax.mail.Transport.send(Transport.java

让crontab使用smtp服务器向管理员发送报错邮件

你说的曾经没有我的故事 提交于 2019-12-07 20:56:46
#前言# crontab有一个邮件发送的机制,如果crontab执行脚本时,stdout有输出时,会以邮件的形式发送到crontab当前用户,使用 mail 命令即可查看邮件。这些信息经常很有用,往往携带了错误信息,可以帮助管理员排错,因此管理员对于mail不可不关注。 注意 : 想要看到crontab报警邮件需要有邮件服务器,在centos/RHEL,ubuntu/Debian等主流发行版都会有一个 mailutils 软件包,这个软件包就二选一依赖于邮件服务端软件 postfix / sendmail 和客户端软件 mail (早一些的发行版,如centos/RHEL5 优先依赖 的是sendmail,centos6,ubuntu12.04等新一些的发行版, 优先依赖 的是postfix) 安装 mailutils 之后,默认配置即可收到crontab的邮件,使用mail命令即可看到邮件详情。 但当服务器比较多时,一台台ssh上去敲 mail 命令显然不合适,有没有方法能让crontab把邮件发送到管理员的邮箱呢?crontab已经有这种设定了。 研究了一天,google了一天老外的资料,眼睛都花了(希望自己动手解决的可以google一下各种关于crontab smtp之类的关键字,老外提到的基本集中在几个点),加上自己的各种尝试,总结方法如下: #MAILTO变量#

Problems with smtp via socks

梦想的初衷 提交于 2019-12-07 20:33:59
问题 Since I did not find solution to the problem description here, I decided to use sysread and syswrite for dialog with smtp server. Below is my test code: sub test { my ($dbh) = @_; my $server = "smtp.mail.ru"; my $ip = $server; $ip = inet_aton($ip); $ip = inet_ntoa($ip); $ip = &ip2long($ip); my $port = 465; my $pid = 0; my $is_ssl = 1; my $answer; my $user = 'my_mail@mail.ru'; my $buff = 8192; if (&choose_proxy($ip, $port, $dbh, $pid)) { if (&connect($ip, $port, $is_ssl, $pid, $server)){ data

Running/debugging SMTP Event Sinks under windows 2008

徘徊边缘 提交于 2019-12-07 19:33:27
I have an SMTP Event Sink to process incoming SMTP email messages to perform special processing. Under IIS 6/SMTP, this event sink runs as expected. Under IIS 7/SMTP, it does not appear to run, even though it appears to register successfully, as shown below: c:\Program Files\Kryptiq Corporation\GW\Bin>regsvr32 SpoolFilter.dll c:\Program Files\Kryptiq Corporation\GW\Bin>smtp_sink_register.bat c:\Program Files\Kryptiq Corporation\GW\Bin>cscript smtpreg.vbs /add 1 OnArrival KryptiqSpoolFilter SpoolFilter.FilterObject "mail from=*" Microsoft (R) Windows Script Host Version 5.8 Copyright (C)

GMAIL APP -: Google SMTP Error: 454 4.7.0 Too many login attempts, please try again later

前提是你 提交于 2019-12-07 19:26:19
问题 While it was possible to use Gmail/Google Apps as an SMTP server for scripted use or in any other Apps. I started getting error messages: SMTP Error: 454 4.7.0 Too many login attempts, please try again later. Sometimes you get, sometimes you don't get such error. 回答1: The issue is because of Google Apps Security. You Can't use same E-mail ID with more than 2 Apps. as Gmail needs to sync it, and it is Obvious to receive such error. Even setting SPF/TXT/DKIM record is not enough for it. So try

利用Python发送邮件

℡╲_俬逩灬. 提交于 2019-12-07 18:56:33
Python对SMTP支持有 smtplib 和 email 两个模块, email 负责构造邮件, smtplib 负责发送邮件。 首先要对邮箱进行设置,这里以QQ邮箱为例: 打开QQ邮箱后,选择“设置-账户”,找到“POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务” 开启pop3/smtp服务,并保存该授权码作为密码使用--生成授权码 最后代码如下: 1 # -*- coding:utf-8 -*- 2 import smtplib 3 from email.mime.text import MIMEText 4 from email.mime.image import MIMEImage 5 from email.mime.multipart import MIMEMultipart 6 7 class send_email(): 8 def __init__(self): 9 self.Host = "smtp.qq.com" # QQ邮箱服务地址 10 self.Subject = input("请输入邮件标题:") # 设置邮件标题 11 self.From = input("请输入发件人地址:") # 设置发件人邮箱 12 self.To = input("请输入收件人地址:") # 设置收件人邮箱(多个用逗号隔开) 13 14 # =

Java send email avoiding smtp relay server and send directly to MX server

坚强是说给别人听的谎言 提交于 2019-12-07 18:00:34
I'm trying to send an email directly to the destination MX server, avoiding the relay smtp server. Teorically it could be possible getting the name servers list doing a query to a dns server. So, using this class, http://www.eyeasme.com/Shayne/MAILHOSTS/mailHostsLookup.html , I can get a list of the mail exchange servers of a domain. So, once I have that, how can I proceed to send the email? I should use javax.mail or how? And if is it, how I should configure it? Okay, so suppose we do that. We do DNS-Lookup to fetch MX records for recipient domain. Next step would be to connect to that server

Are there any SMTP to HTTP free services (Email to POST)?

﹥>﹥吖頭↗ 提交于 2019-12-07 17:25:11
问题 I was pointed to the service smtp2web a while back, but I've been trying it out and it doesn't seem to work. Are there any others out there? Any way to accomplish this in ruby? I write an email and send it to lanceJpollard@smtp2web and get this response immediately: Delivery to the following recipient failed permanently: lanceJpollard@smtp2web.com Technical details of permanent failure: Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting

How to send email in lotus notes using PHP

∥☆過路亽.° 提交于 2019-12-07 16:45:25
Need to send email using PHP via lotus notes. Notes is configured on my system. So just wanted if I could send email using PHP. Can anybody help with the code and configuration that I am supposed to do? After reading replies from all of you, I tried to nail down things from my end. I could at least move one step ahead with all your help. I could figure out my mail server using GetEnvironmentString and its damn correct as also reflected in my lotus notes work space. But when I am trying to use the below code it just keeps on loading and finally returning nothing - <?php require_once "Mail.php";

Postfix + Django: SMTPException: SMTP AUTH extension not supported by server [closed]

…衆ロ難τιáo~ 提交于 2019-12-07 16:44:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am complete novice to Postfix, just set up default Postfix for Ubuntu, tested it through telnet and it sent mail ok, but when I try to send mail through django (host='localhost', port='25', user='', password=''), I just get SMTPException: SMTP AUTH extension not supported by server. Here is my main.cf: https:/