smtp

Sending email using smtp gmail server from Amazon EC2 instance

若如初见. 提交于 2019-12-22 09:46:27
问题 I have a gmail for business emailId and would like to use it for sending out messages to my clients. I am using smtp.gmail.com to send out messages from an asp.net mvc application. This works fine on my localhost. But when I deployed the code to Amazon EC2, the functionality broke. I searched and found that EC2 IPs are blackisted by google. How should I fix this? I read that one way is to use Amazon SES, but can anyone tell how does it work? Is it just a verification policy enforcement thing

SOCKET ERROR: [Errno 111] Connection refused on Ubuntu

一世执手 提交于 2019-12-22 09:45:27
问题 Traceback (most recent call last): s = smtplib.SMTP('localhost') File "/usr/lib/python2.7/smtplib.py", line 251, in __init__ (code, msg) = self.connect(host, port) File "/usr/lib/python2.7/smtplib.py", line 311, in connect self.sock = self._get_socket(host, port, self.timeout) File "/usr/lib/python2.7/smtplib.py", line 286, in _get_socket return socket.create_connection((host, port), timeout) File "/usr/lib/python2.7/socket.py", line 571, in create_connection raise err socket.error: [Errno

SmtpException - The operation has timed out

你说的曾经没有我的故事 提交于 2019-12-22 09:13:19
问题 Here is my code: SmtpClient client = new SmtpClient(); client.UseDefaultCredentials = true; using (client as IDisposable) { foreach (MailAddress addr in Addresses) { if (addr != null) { try { message.To.Clear(); message.To.Add(addr); client.Send(message); } catch (Exception ex) { Log(ex); } i++; } } } every 100 seconds, I log a message saying The operation has timed out. Is this a client side setting or on the actual mail server? 回答1: The problem happens when you are not able to connect to

Bounced email parsing

巧了我就是萌 提交于 2019-12-22 08:59:35
问题 I'm currently having a mess about with catching, parsing and sorting bounced emails. I have the basics set up nicely and it does what I want, which is nice... problem being is that there seems to be no standard to the messages returned in the bounced email. For example, some servers return the error code as specified by RFC 1893 and I can nine times out of ten pick that up via a simple regex thing. But sometimes servers just respond saying that the email has bounced, with either no reason

Laravel SMTP Email

限于喜欢 提交于 2019-12-22 08:41:22
问题 Start working with Laravel 4.2 I tried to send email using Gmail STMP server. Below is my app/config/mail.php. return array( 'driver' => 'smtp', 'host' => 'smtp.gmail.com', 'port' => 465, 'from' => array('address' => 'sample_address@gmail.com', 'name' => 'Sample'), 'encryption' => 'tls', 'username' => 'sample_address@gmail.com', 'password' => 'sample password', 'sendmail' => '/usr/sbin/sendmail -bs', 'pretend' => false, ); Below is my php code. <!-- app/views/emails/welcome.php --> Mail::send

SMTP dot stuffing - who does it and who removes it

↘锁芯ラ 提交于 2019-12-22 08:23:00
问题 I have written an email client and have from time to time noticed that links in some received mails fail because of two dots in a URL where there should be one. By Investigating, I found that in all such cases the two dots are at the start of a line of quoted-printable HTML. On reading RFC 2821, I see this is probably happening because of dot-stuffing. My question basically is, who should do the dot-stuffing and who should remove it? If we take a simple sequence we have as follows: A ----> B

Rails ActionMailer w/ Devise + Google Apps in Development Mode

ぃ、小莉子 提交于 2019-12-22 08:11:46
问题 I'm trying to configure ActionMailer to send mail from Devise in development mode with my Google Apps account. I've added the following to my config/environments/development.rb file, but it looks like mail is not being sent. Note: this is for Google Apps, not Gmail (but the Gmail servers should work -- they do in my mail client). Anything jump out as strange in my config? config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :enable_starttls_auto => true,

Sending email to multiple recipients

时光怂恿深爱的人放手 提交于 2019-12-22 07:37:34
问题 I've moved some old code from an old unix box to our new unix box, and I'm having some difficulty with a perl script sending email to multiple recipients. It works on the old box. Old box perl: version 5.004_04 built for PA-RISC2.0 New box perl: v5.8.8 built for IA64.ARCHREV_0-thread-multi-LP64 Here's the basics of the script (stripped-down): use Net::SMTP::Multipart; $to = "sam\@bogus.com tom\@foo.com"; $smtp = Net::SMTP::Multipart->new($smtpserver); $smtp->Header(To => $to, From => "junk\

Sending email to multiple recipients

三世轮回 提交于 2019-12-22 07:36:03
问题 I've moved some old code from an old unix box to our new unix box, and I'm having some difficulty with a perl script sending email to multiple recipients. It works on the old box. Old box perl: version 5.004_04 built for PA-RISC2.0 New box perl: v5.8.8 built for IA64.ARCHREV_0-thread-multi-LP64 Here's the basics of the script (stripped-down): use Net::SMTP::Multipart; $to = "sam\@bogus.com tom\@foo.com"; $smtp = Net::SMTP::Multipart->new($smtpserver); $smtp->Header(To => $to, From => "junk\

What mechanism does Gmail use for user authentication?

只谈情不闲聊 提交于 2019-12-22 06:20:24
问题 I want to authenticate myself using my Gmail ID and password on a Gmail SMTP server. I am using the GSASL library. I have a set of mechanisms that my client supports: Anonymous, External, Login, Plain, SecureID, Digest-MD5 and CRAM-MD5. Does somebody know which mechanism Gmail uses for user authentication? 回答1: To quote Google's documentation for authenticating to GMail's SMTP: Outgoing Mail (SMTP) Server - requires TLS: smtp.gmail.com (use authentication) Use Authentication: Yes Use STARTTLS