Questions tagged [smtp]

Simple Mail Transfer Protocol (SMTP) is an Internet standard for electronic mail (e-mail) transmission across Internet Protocol (IP) networks.

SMTP was first defined by RFC 821 (1982, eventually declared STD 10), and last updated by RFC 5321 (2008) which includes the extended SMTP (ESMTP) additions, and is the protocol in widespread use today. SMTP is specified for outgoing mail transport and uses TCP port 25. The protocol for new submissions is effectively the same as SMTP, but it uses port 587 instead. SMTP connections secured by SSL are known by the shorthand SMTPS, though SMTPS is not a protocol in its own right.

RFC 5321 governs the network protocol for transport of mail messages between servers. You might also want to look at RFC5322, which lays out the fundamental message format. Note that it has been extended by numerous additions, most notably the MIME facilities and various amendments for internationalization support.

While electronic mail servers and other mail transfer agents use SMTP to send and receive mail messages, user-level client mail applications typically only use SMTP for sending messages to a mail server for relaying. For receiving messages, client applications usually use either the Post Office Protocol (POP, ) or the Internet Message Access Protocol (IMAP, ) or a proprietary system (such as Microsoft Exchange or Lotus Notes/Domino) to access their mail box accounts on a mail server.

Useful links

11945 questions
3
votes
1 answer

Html mail sent with Spring's JavaMailSender is without subject and plain-text

I am trying to send an html email inside a Spring (version 3.0.5.RELEASE) webapp using Spring's JavaMailSenderImpl. The emails are sent but they are incorrect: they are missing the subject the To field is shown empty or as "Undisclosed…
dipanda
  • 760
  • 1
  • 11
  • 24
3
votes
1 answer

C# - Sending an email, via Gmail or Other?

Server: VDS OS: Windows Server 2008 R2 Application: None Library (DLL used by an application): Yes, C# I am trying to send mail via C# using from what I read, gmail service. Basically just a test email to myself would be a start to know it works. If…
3
votes
1 answer

Is it possible to use Sengrid's Substitution tags with nodemailer?

I'm using nodemailer with Sendgrid (https://github.com/nodemailer/nodemailer-smtp-transport) and I want to send emails to 2000 users at a time, with different content for each. Currently I create an SMTP transport and send my mails one at a time,…
3
votes
1 answer

python sending email with text and attachment

I wrote a script for backing up my Neo4J DB. At the end of the backup process and email is sent to the DB Administrator The email received without the message_body. This is the code: message = MIMEMultipart('alternative') message['To'] = "Database…
Asaf Nevo
  • 11,338
  • 23
  • 79
  • 154
3
votes
1 answer

Outlook Autodiscover SMTP authentication

The problem I am trying to create an autodiscover script for the users of my website. Currently I am creating a working connection to my mail-server, however my mail server requires SMTP authentication. I am currently sending: …
Mick
  • 174
  • 1
  • 1
  • 9
3
votes
1 answer

Timeout error when sending outgoing mail via SMTP & PHPMailer

I'm trying to configure a Digital Ocean droplet to use my Gmail account's SMTP server to send outgoing mail, but I am getting the following error: 2015/12/15 22:15:33 [error] 14940#0: *31 upstream timed out (110: Connection timed out) while reading…
Raphael Rafatpanah
  • 19,082
  • 25
  • 92
  • 158
3
votes
2 answers

CodeIgniter and Gmail SMTP Timeout with SSL scoket

I use Gmail SMTP to send email from the web application that I wrote using CodeIgniter with PHP 5.3 without a problems until recently. This is the snippet of my code: $config['protocol'] = 'smtp'; $config['smtp_host'] = $this->smtp_host; …
Donny Kurnia
  • 5,260
  • 5
  • 35
  • 52
3
votes
1 answer

SMTP -> ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (0)

I need to send a mail in order to reset the password, however I get this error everytime I click on the button to reset the password. I will post my code below: require_once('mailer/class.phpmailer.php'); $uri = 'http://'.…
DEV
  • 647
  • 4
  • 19
  • 31
3
votes
1 answer

How to dynamically set unsubscribe link in sendgrid using PHP / Laravel

I'd like to dynamically set unsubscribe links using Sendgrid in my PHP/Laravel similar to how its been demonstrated with Ruby on Rails. I see that I need to set a header with JSON. Can someone help figure out how this header gets integrated with a…
tim peterson
  • 23,653
  • 59
  • 177
  • 299
3
votes
1 answer

Proper way to pass username/password to SmtpClient (.NET)

The question is too simple, but still appreciate the short answer. I would like the SmtpClient to fetch username/password from the App.config file. From the MSDN/schema I've figured out that the proper file (excerpt) should look like: …
BreakPhreak
  • 10,940
  • 26
  • 72
  • 108
3
votes
1 answer

Sending email using smtp on gmail

I am trying to send confirmation email to user using smtp provided by google and test in my local machine. I have written the code and supply the settings. SmtpClient client = SiteUtilites.GetMailClient(); MailAddress sender = new…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
3
votes
1 answer

Python: What is the correct MIME type for attaching html file to email

I've got a script that sends emails with html content in them.. works as expected... I'm having trouble sending an attachment with the email. The attachment is an html file stored in the active directory of the script... "test.html" How do I attach…
CDG
  • 73
  • 3
  • 8
3
votes
1 answer

Cannot connect remotely to my email server using PHPMailer

I'm writing a PHP script using PHPMailer to send automaticaly emails. For test purposes , I've used a Gmail account with an application passsword and everything works fine. When I replace the Gmail account config with my professional email , the…
samouss
  • 33
  • 3
3
votes
2 answers

Django : Send mail failed

I wrote this in terminal for test the messages sending in Django but I have a error and I don't find the solution... : from le_site.models import * import smtplib send_mail('Subject here', 'Here is the…
Zoulou
  • 303
  • 2
  • 16
3
votes
2 answers

Python: smtpd (or alternative) for production mail receiving?

I'm looking to do various processing of email - eg. inspect the headers, and if they meet some criteria (look like spam), drop the connection, or inspect the recipient list and perform special filtering. Looks like Python's smtpd library provides a…
Parand
  • 102,950
  • 48
  • 151
  • 186
1 2 3
99
100