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

10906 questions
3
votes
2 answers

rails email error - 530-5.5.1 Authentication Required.

trying to send email form Ruby on Rails but getting this: SocketError in UsersController#create getaddrinfo: nodename nor servname provided, or not known My environments/development.rb file has: config.action_mailer.smtp_settings = { …
Michael Durrant
  • 84,444
  • 83
  • 284
  • 429
3
votes
2 answers

How to send a Secure e-mail using SMTP

I am currently using Google Apps to send SMTP e-mails. If my project deploys some of the information that i am going to be sending will be confidential and i would like to make sure the transmission is secure. Can anyone please let me know what i…
jackncoke
  • 1,920
  • 5
  • 24
  • 59
3
votes
2 answers

Sending email with CodeIgniter using 'mail' or 'sendmail'

I built an intranet app that needs to send email (low volume). I will not be able to use the SMTP server of my organization, so I need to send these emails via sendmail or mail. However, when I config my email as: $config['protocol'] =…
pepe
  • 9,145
  • 24
  • 100
  • 177
3
votes
1 answer

Action Mailer in Ruby without Rails - Timeout Error

I'm using Action Mailer to send a daily email, but without Rails. I've also looked at other questions here: Action Mailer 3 without Rails, ActionMailer and Ramaze Here's my code: require 'action_mailer' class Mailer < ActionMailer::Base def…
ringular
  • 65
  • 1
  • 10
3
votes
3 answers

How to Programatically Start IIS 6.0 SMTP Virtual Server?

I would like to know how to programatically restart IIS 6.0 SMTP server. The SMTP server I have setup crashes every now and then. I don't notice it for a couple days, but that is by far way too late to do anything about it. I want to set up a…
SpoiledTechie.com
  • 9,951
  • 19
  • 73
  • 98
3
votes
0 answers

SMTP Error 535 (Incorrect authentication data) using PEAR mail

I used the code from https://stackoverflow.com/a/2748837 to attempt to log into both Gmail and my website's server, and for both of them I received the same error: authentication failure [SMTP: Invalid response code received from server (code: 535,…
jburns20
  • 3,059
  • 2
  • 24
  • 32
3
votes
2 answers

Add SMTP AUTH support to Python smtpd library... can't override the method?

So, I wanted to extend the Python smtpd SMTPServer class so that it could handle SMTP AUTH connections. Seemed simple enough... So, it looked like I could just start like this: def smtp_EHLO(self, arg): print 'got in arg: ', arg # do stuff…
Keith Palmer Jr.
  • 26,497
  • 16
  • 62
  • 103
3
votes
2 answers

Sending mail from yahoo id to other email ids using Javamail API

I am not able to send email from my yahoo id using Java mail API. I tried different options from Google,but fails. Please have a look my below code and let me know if I am missing something. In my point of view Yahoo does not provide the free…
Rajeev Sahu
  • 1,484
  • 5
  • 23
  • 37
3
votes
1 answer

GMAIL showing BCC list when sending SMTP mail

I had an issue with gmail where it was displaying the recipients sent to a BCC list. The solution to this was to not include the BCC list in the headers but instead append it to the list of recipients in the PEAR moodule See this link -…
3
votes
3 answers

mailer authentication error in Rails 3.2 with gmail or SendGrid

I'm trying to set up mailing from a very simple Rails 3.2 app. Tried Gmail, tried SendGrid. Getting same error. Net::SMTPAuthenticationError in UsersController#create 530-5.5.1 Authentication Required Here's my section of…
charliemagee
  • 673
  • 5
  • 18
3
votes
1 answer

how can I fix/avoid this smtp error using swift_mailer?

Sorry, probably just a newbie question but here goes, I have a script that loops over a bunch ( sometimes thousands ) of members sending out email using code like so: $transport = Swift_SmtpTransport::newInstance('...', 25) …
lost baby
  • 2,750
  • 4
  • 27
  • 46
3
votes
1 answer

Adding attachments to E-mail bound for Evernote E-mail address defeats HTML content type declaration with Indy TIdSMTP component

I have a Delphi 6 application that generates E-mails that I send to my Evernote E-mail address, a special E-mail address for sending documents via E-mail so that they are stored automatically into my Evernote account. I have successfully created…
Robert Oschler
  • 13,520
  • 17
  • 74
  • 209
3
votes
1 answer

sending mail using XAMPP, sendmail, and gmail smtp server

This seems like something fairly straightforward and my php script is able to execute. However I am never receiving the mail. Here is the relevant code: php.ini [mail function] ; For Win32 only. ; http://php.net/smtp ;SMTP = localhost ;…
hamobi
  • 7,353
  • 4
  • 31
  • 57
3
votes
1 answer

Rails SMTP error

Trying to setup Mandril SMTP in my rails app.. when i go to register a new user I get the following error: Net::SMTPFatalError in RegistrationsController#create 554 5.7.1 : Relay access denied The mandrill setup guide says…
nelson
  • 45
  • 1
  • 4
3
votes
1 answer

Python's smtplib with Dovecot/SSL

I'm trying to use Python's smtplib to connect to a Dovecot server. Both seem plenty capable, but I must be missing something fundamental. Couldn't find anything in either's docs. A non-SSL connection gets rejected right away... Python 2.7.2…
JimB
  • 889
  • 8
  • 18
1 2 3
99
100