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
31
votes
3 answers

The SMTP server requires a secure connection or the client was not authenticated

I am getting this error The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. e17sm974159fak.34 Web.config
coure2011
  • 40,286
  • 83
  • 216
  • 349
31
votes
4 answers

Setting up DomainKeys/DKIM in a PHP-based SMTP client

It looks like there are some great libraries out there to do DomainKeys signing of emails on C#/.NET, but I'm having a really hard time finding the same kind of support for PHP. Maybe I'm not looking in the right place? The only one I found is…
Alex Weinstein
  • 9,823
  • 9
  • 42
  • 59
31
votes
3 answers

Mails Sent via SMTP should get reflected in the Sent folder on the Email Server too?

When using SMTP to send mails (email client or via a script), mails are normally not seen in the Sent folder on the email provider's server. But it does get reflected in the Sent folders of Gmail (Google Apps). Isn't it mandatory to save the mail in…
MotionGrafika
  • 1,131
  • 5
  • 13
  • 17
31
votes
1 answer

Best Practices - Sending javamail mime multipart emails - and gmail

I have a Tomcat application that needs to send confirmation emails etc. I have coded the emailer with Javamail (mail.jar) to send multipart text/html emails. I based the code on the Java EE examples. I'm using the SMTP MTA on the local server. It…
PrecisionPete
  • 3,139
  • 5
  • 33
  • 52
30
votes
3 answers

Mails not being sent to people in CC

I have the following script for sending mails using python import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import os FROMADDR = "myaddr@server.com" PASSWORD = 'foo' TOADDR =…
Pulimon
  • 1,776
  • 4
  • 31
  • 45
30
votes
1 answer

How to properly set up DNS SPF records?

I'm sending weekly emails to subscribers and it turns out that messages are frequently going to the spam folder for users. I'm utilizing Amazon SES to send these messages and have added an SPF record according to their instructions:…
ylluminate
  • 12,102
  • 17
  • 78
  • 152
29
votes
4 answers

Getting Error Transport error code was 0x80040217 while Sending Email in Asp.Net

I am trying to send Email But I am getting this Error. The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available any one having any idea about it please Help me
Smily
  • 2,646
  • 4
  • 23
  • 31
29
votes
6 answers

(WAMP/XAMP) send Mail using SMTP localhost

How to send mail from localhost SMTP (using Wamp,Xampp or etc..)? PHP mail() doesn't seem to work natively. Can anybody give the instructions?
T.Todua
  • 53,146
  • 19
  • 236
  • 237
29
votes
5 answers

How can you send mail using IMAP?

I am developing a lightweight Gmail client for mobile phones, accessing Gmail by IMAP. I want to send a draft from the Drafts folder, but it has some attachments and I cannot download all of them to send it by SMTP. Moving/copying it to "Sent Mail"…
Ignacio Lago
  • 2,432
  • 1
  • 27
  • 33
28
votes
6 answers

How do I send an SMTP Message from Java?

Possible Duplicate: How do you send email from a Java app using Gmail? How do I send an SMTP Message from Java?
Allain Lalonde
  • 91,574
  • 70
  • 187
  • 238
28
votes
5 answers

how do i get TcpListener to accept multiple connections and work with each one individually?

I have an SMTP listener that works well but is only able to receive one connection. My C# code is below and I am running it as a service. My goal is to have it runnign on a server and parsing multiple smtp messages sent to it. currently it parses…
kacalapy
  • 9,806
  • 20
  • 74
  • 119
28
votes
3 answers

smtp e-mail headers: return-path vs. sender vs. from

Please help me make some order with email headers. What does each of the following mean: return-path, sender, from. The question is being asked in the context of an email receiving app (let's say a posterous clone). What can be easily faked? What…
flybywire
  • 261,858
  • 191
  • 397
  • 503
28
votes
14 answers

Method for email testing

I am writing a program that will be emailing reports out many (~100) clients which I want to test before I spam everyone. I want to do a test run against my production data and actually send the messages to a SMTP server, but I don't want the SMTP…
Zoredache
  • 37,543
  • 7
  • 45
  • 61
28
votes
8 answers

How to check if the mail has been sent successfully

I am developing an Asp.Net application, where I am sending a mail to the user's email address, if he forgets the password. I want to check if the mail has been sent sucessfully or not. Is there any method to know that for sure. EDIT In case if an…
Vaibhav Jain
  • 33,887
  • 46
  • 110
  • 163
28
votes
15 answers

SMTP Connect() failed. Message was not sent.Mailer error: SMTP Connect() failed

Am trying to send mail to a gmail address but it keeps on getting this error "SMTP -> ERROR: Failed to connect to server: Connection timed out (110)SMTP Connect() failed. Message was not sent.Mailer error: SMTP Connect() failed." What could be the…
andy
  • 1,947
  • 5
  • 27
  • 46