smtp

Delphi - Indy - saving GMail draft

断了今生、忘了曾经 提交于 2019-12-07 04:01:09
问题 I've been using Indy under Delphi to send message via a gmail account, using the TIdSMTP and TIdMessage components. This works absolutely fine. However, my client has requested to save the message to the DRAFTS folder to allow him to make changes to the (programatically created) message before actually sending it. GMail API is supposed to support this, but the provided examples are not in Delphi/Indy formats... I'm looking for minimal programming changes so I'd like to know if it is possible

Verify mail server connection programmatically in ColdFusion

主宰稳场 提交于 2019-12-07 03:08:03
问题 I'm using custom SMTP servers and would like to verify the connection when user enters his own server credentials. Exactly the same type of check as Adobe CF and Railo allow to do when adding mail server. Sure, this does not guarantee that delivery will be working, but at least to check that entered server/username/pass are valid. I can see one tricky way: try to send the email with cfmail and check the mail log. But I believe that it can be done with more elegant. Is there any Java library

python 利用smtplib发邮件

北城以北 提交于 2019-12-07 02:19:09
#!/usr/bin/env python import smtplib TO = "to**@sina.com" FROM = "from**@qq.com" PSW = "**********" Serveraddr = "smtp.qq.com" msg = ["From: %s"% FROM, "To: %s"% TO, "Subject: just for test"] smtp = smtplib.SMTP() smtp.connect(Serveraddr, 25) smtp.login("from**", PSW) smtp.sendmail(FROM, TO, '\r\n'.join(msg)) print "Done" smtp.quit() 在基于互联网的应用中,程序经常需要自动地发送电子邮件。如:一个网站的注册系统会在用户注册时发送一封邮件来确认注册;当用户忘记登陆密码的时 候,通过邮件来取回密码。smtplib模块是python中smtp(简单邮件传输协议)的客户端实现。我们可以使用smtplib模块,轻松的发送电 子邮件。下面的例子用了不到十行代码来发送电子邮件: #coding=gbk import smtplib smtp = smtplib.SMTP() smtp.connect( "smtp.yeah.net" , "25" ) smtp

com.sun.mail.smtp.SMTPSenderFailedException: 550 5.7.1 Client does not have permissions to send as this sender

本小妞迷上赌 提交于 2019-12-07 01:21:24
问题 i am trying to send email from an application email (exchange server) and appear for the user as it was sent from another email using javamail , i am using the following code: public void sendEmail(String from, String to, String subject, String emailBody) throws Exception { try { emailHostSMTPs = MessageProvider.getConfig("email.host.smtps"); emailHostSMTP = MessageProvider.getConfig("email.host.smtp"); emailProtocol = MessageProvider.getConfig("email.protocol"); senderEmail = MessageProvider

Push email to a apache/php server

我的未来我决定 提交于 2019-12-07 00:32:32
We've built a web service that needs to check constantly for email messages. Basically, an user sends us an email, and the server should make actions based on that email. We could use a crontab PHP script that checks for new messages every minute, with POP. But that's kind of offensive to the popserver and not very efficient (1min is too long). But, I've read about PUSH email using IMAP around mobile devices. In my case is not a mobile device but a webserver. Can I push an email to my webserver and have it execute a PHP script? We're using GMail as POP/SMTP/IMAP server. EDIT 1 from the answers

Subject encoding on SmtpClient/MailMessage

戏子无情 提交于 2019-12-07 00:15:01
问题 I am trying to send emails that contain non-ASCII characters using the SmtpClient and MailMessage classes. I am using an external mailing service (MailChimp) and some of my emails have been rejected by their SMTP server. I have contacted them and this is what they replied: It appears the subject line is being Base64 encoded and then Quoted-Printable encoded, which generally should be fine, but one of the characters is being broken across two lines. So when your subject lines are a bit longer,

Rundeck Gmail SMTP not Working - smtp.gmail.com Unknown Host

南笙酒味 提交于 2019-12-06 22:48:25
I want to configure Rundeck to allow e-mail notifications. My rundeck-config.properties is: grails.mail.host = "smtp.gmail.com" grails.mail.username = "name@domain.com" grails.mail.port = 465 grails.mail.password = "******" grails.mail.props = ["mail.smtp.starttls.enable":"true","mail.smtp.auth":"true","mail.smtp.socketFactory.port":"465","mail.smtp.socketFactory.fallback":"false"] When I run the Job, the error I get is: 2016-05-05 14:49:30,557 ERROR NotificationService - Error sending notification email to me@gmail.com for Execution 11: Mail ser ver connection failed; nested exception is com

Spring Boot 学习笔记 6 : spring-boot-starter-mail

浪子不回头ぞ 提交于 2019-12-06 17:55:39
在 pom.xml 文件中添加依赖: < dependency > < groupId > org.springframework.boot </ groupId > < artifactId > spring-boot-starter-mail </ artifactId > </ dependency > < dependency > < groupId > org.springframework.boot </ groupId > < artifactId > spring-boot-starter-thymeleaf </ artifactId > </ dependency > 使用 163 邮箱发送邮件,在 application.properties 文件中添加配置: #server server .port = 80 #spring.mail spring .mail .host =smtp .163 .com spring .mail .username =smileorsilence @163 .com spring .mail .password =授权码 spring .mail .receiver =收件人 #spring.mail.properties spring .mail .properties .mail .smtp .auth =true

PHP Swift Mailer Setup

旧巷老猫 提交于 2019-12-06 17:47:25
I'm trying to implement swift mailer into my website so I can send password recovery emails to registered users. I'm using dreamweaver. What I have done: 1) Downloaded Swift-4.2.2.tar 2) Extracted it 3) Uploaded to my host in /Domain/classes/lib 4) Included it in Recovery.php Here's my file structure Main Folder |classes |Swift |Private |Recovery.php And here's the code for Recovery.php : require_once '../classes/lib/swift_required.php'; // Create the Transport $email_to = $_POST["email"]; $transport = Swift_SmtpTransport::newInstance('smtp.gmail.com', 465) ->setUsername('Username') -

CDO.Message .Send causes script execution timeout

ぐ巨炮叔叔 提交于 2019-12-06 16:49:25
I have the following code: Set myMailanon = CreateObject("CDO.Message") myMailanon.MimeFormatted = True Set myConfanon = Server.CreateObject("CDO.Configuration") Set objBPanon = myMailanon.AddRelatedBodyPart("http://www.foo.bar/img/logo1.jpg", "http://www.foo.bar/img/logo1.jpg", CdoReferenceTypeName) objBPanon.Fields.Item("urn:schemas:mailheader:Content-ID") = "<http://www.foo.bar/img/logo1.jpg>" objBPanon.Fields.Update ConfURLanon = "http://schemas.microsoft.com/cdo/configuration/" with myConfanon .Fields.Item(ConfURLanon & "sendusing") = 2 .Fields.Item(ConfURLanon & "smtpserver") = "smtp.foo