Questions tagged [email]

Use this tag for questions involving code to send or receive email messages. Posting to ask why the emails you send are marked as spam is off-topic for Stack Overflow. Questions about configuration of mail servers belong on Server Fault.

Electronic mail, commonly called email or e-mail, is a method of exchanging digital messages from a sender to one or more recipients.

Modern email operates across the Internet or other computer networks. Some early email systems required that the sender and the recipient both be online at the same time - a system currently known as Instant messaging. Today's email systems are based on a store-and-forward model. Email servers accept, forward, deliver and store messages. Neither the users nor their computers are required to be online simultaneously; they need connect only briefly, typically to an email server, for as long as it takes to send or receive messages.

Email architecture is rich and varied; you should probably indicate whether your question concerns manipulation, email composition (, , , , etc.), message submission and transport (, ), or a particular mailbox storage and access protocol (, ) or perhaps a particular . There is a large number of additional tags you can use.

Programmers coming from modern protocols such as JSON and HTTP will be surprised to learn about the many layers of standards that they have to work with in order to be able to use 8-bit data, multimedia, Unicode, internationalization, tagged content, etc. The MIME standards in particular should be at least vaguely familiar.

References


Tag Usage

The tag can be used for any programming related problem in implementing features of emailing messages from one client to another. Ask about specific email server related problems at Server Fault, another Stack Exchange website.

Common problems which are not programming-related include

Related Tags

etc

59268 questions
264
votes
19 answers

require(vendor/autoload.php): failed to open stream

I know that this issue has been posted many times, but for me it seems to be a different problem. Indeed, this error Warning: require(vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\site_web\send_mail.php…
adrTuIPKJ44
  • 2,793
  • 2
  • 9
  • 8
264
votes
6 answers

What is the email subject length limit?

How many characters are allowed to be in the subject line of Internet email? I had a scan of The RFC for email but could not see specifically how long it was allowed to be. I have a colleague that wants to programmatically validate for it. If there…
Scott Ferguson
  • 7,690
  • 7
  • 41
  • 64
263
votes
31 answers

Sending email through Gmail SMTP server with C#

For some reason neither the accepted answer nor any others work for me for "Sending email in .NET through Gmail". Why would they not work? UPDATE: I have tried all the answers (accepted and otherwise) in the other question, but none of them work. I…
CVertex
  • 17,997
  • 28
  • 94
  • 124
262
votes
6 answers

Insert a line break in mailto body

I would like to insert a line break into my mailto body. I tried %0A, %0D and %0D%0A. Nothing worked for me. I tested on Gmail, Yahoo, Apple Mail, Outlook 2010, Outlook.com and Thunderbird with Google Chrome on Mac OSX. Any help please ? Here's my…
Marion
  • 2,623
  • 2
  • 12
  • 4
261
votes
9 answers

PHPMailer character encoding issues

I try to use PHPMailer to send registration, activation. etc mail to users: require("class.phpmailer.php"); $mail -> charSet = "UTF-8"; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = "smtp.mydomain.org"; $mail->From =…
Holian
258
votes
16 answers

Email address is not verified (AWS SES)

I want to use Amazon's Simple Email Service to send emails. I verified my domain as well as the email address I want to send from. For both it says verified. Now when I use the Send Test Email from the AWS Console to send a test email to…
maddo7
  • 4,503
  • 6
  • 31
  • 51
255
votes
12 answers

Creating email templates with Django

I want to send HTML-emails, using Django templates like this: hello {{username}} your account activated. I can't find anything about send_mail, and django-mailer only sends…
Anakin
  • 3,070
  • 4
  • 21
  • 12
252
votes
19 answers

How to send an email with Python?

This code works and sends me an email just fine: import smtplib #SERVER = "localhost" FROM = 'monty@python.com' TO = ["jon@mycompany.com"] # must be a list SUBJECT = "Hello!" TEXT = "This message was sent with Python's smtplib." # Prepare…
cloud311
  • 3,101
  • 5
  • 20
  • 20
247
votes
6 answers

How can I set the Sender's address in Jenkins?

I'm sending mail from Jenkins to an anonymous SMTP relay internally. That relay then securely sends mail to exchange online via TLS on port 587. The transport works perfectly, the issue is that Microsoft requires the Sender address match the…
CTOMarc
  • 2,509
  • 2
  • 14
  • 4
246
votes
19 answers

What is the best Java email address validation method?

What are the good email address validation libraries for Java? Are there any alternatives to commons validator?
jon077
  • 10,303
  • 11
  • 39
  • 37
244
votes
35 answers

Undefined symbols for architecture i386: _OBJC_CLASS_$_SKPSMTPMessage", referenced from: error

I have imported framework for sending email from application in background i.e. SKPSMTPMessage Framework. Can somebody suggest why below error is shown Undefined symbols for architecture i386: "_OBJC_CLASS_$_SKPSMTPMessage", referenced from: …
Mann
  • 5,477
  • 6
  • 45
  • 57
243
votes
11 answers

How can I send mail from an iPhone application

I want to send an email from my iPhone application. I have heard that the iOS SDK doesn't have an email API. I don't want to use the following code because it will exit my application: NSString *url = [NSString stringWithString:…
Khushi
  • 3,119
  • 6
  • 25
  • 14
229
votes
8 answers

How do I purge a linux mail box with huge number of emails?

I have setup some cron jobs and they send the crons result to an email. Now over the months I have accumulated a huge number of emails. Now my question is how can I purge all those emails from my mailbox?
anjan
  • 3,147
  • 6
  • 26
  • 31
229
votes
11 answers

Is JavaScript supported in an email message?

Is JavaScript supported in an email message?
senthil
  • 2,317
  • 2
  • 13
  • 3
219
votes
14 answers

How can I send an email by Java application using GMail, Yahoo, or Hotmail?

Is it possible to send an email from my Java application using a GMail account? I have configured my company mail server with Java app to send email, but that's not going to cut it when I distribute the application. Answers with any of using…
Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880