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

56205 questions
4865
votes
99 answers

How to validate an email address in JavaScript

Is there a regular expression to validate an email address in JavaScript?
pix0r
  • 30,601
  • 18
  • 82
  • 102
3567
votes
79 answers

How to validate an email address using a regular expression?

Over the years I have slowly developed a regular expression that validates MOST email addresses correctly, assuming they don't use an IP address as the server part. I use it in several PHP programs, and it works most of the time. However, from time…
acrosman
  • 12,375
  • 10
  • 36
  • 54
1072
votes
8 answers

What is the maximum length of a valid email address?

What is the maximum length of a valid email address? Is it defined by any standard?
volatilevoid
  • 11,255
  • 4
  • 19
  • 16
954
votes
13 answers

Can I set subject/content of email using mailto:?

Is it possible to set the subject/content of email when I use mailto:?
Jiew Meng
  • 74,635
  • 166
  • 442
  • 756
911
votes
22 answers

Sending email in .NET through Gmail

Instead of relying on my host to send an email, I was thinking of sending the email messages using my Gmail account. The emails are personalized emails to the bands I play on my show. Is it possible to do it?
Mike Wills
  • 19,825
  • 26
  • 87
  • 143
692
votes
17 answers

What characters are allowed in an email address?

I'm not asking about full email validation. I just want to know what are allowed characters in user-name and server parts of email address. This may be oversimplified, maybe email adresses can take other forms, but I don't care. I'm asking about…
WildWezyr
  • 8,671
  • 5
  • 21
  • 28
674
votes
25 answers

Sending Email in Android using JavaMail API without using the default/built-in app

I am trying to create a mail sending application in Android. If I use: Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); This will launch the built-in Android application; I'm trying to send the mail on button click directly…
Vinayak Bevinakatti
  • 38,839
  • 25
  • 103
  • 135
619
votes
37 answers

Send Email Intent

Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/html"); intent.putExtra(Intent.EXTRA_EMAIL, "emailaddress@emailaddress.com"); intent.putExtra(Intent.EXTRA_SUBJECT, "Subject"); intent.putExtra(Intent.EXTRA_TEXT, "I'm email…
dira
  • 28,648
  • 13
  • 50
  • 69
540
votes
23 answers

How to send emails from my Android application?

I am developing an application in Android. I don't know how to send an email from the application?
Rakesh
  • 14,229
  • 12
  • 36
  • 60
515
votes
44 answers

C# code to validate email address

What is the most elegant code to validate that a string is a valid email address?
leora
  • 163,579
  • 332
  • 834
  • 1,328
513
votes
28 answers
446
votes
24 answers

How do you make sure email you send programmatically is not automatically marked as spam?

This is a tricky one and I've always relied on techniques, such as permission-based emails (i.e. only sending to people you have permission to send to) and not using blatantly spamish terminology. Of late, some of the emails I send out…
Leon Bambrick
  • 24,569
  • 9
  • 48
  • 74
417
votes
13 answers

How to get the Android device's primary e-mail address

How do you get the Android's primary e-mail address (or a list of e-mail addresses)? It's my understanding that on OS 2.0+ there's support for multiple e-mail addresses, but below 2.0 you can only have one e-mail address per device.
Brandon O'Rourke
  • 22,455
  • 14
  • 51
  • 58
395
votes
14 answers

Send email using the GMail SMTP server from a PHP page

I am trying to send an email via GMail's SMTP server from a PHP page, but I get this error: authentication failure [SMTP: SMTP server does no support authentication (code: 250, response: mx.google.com at your service, [98.117.99.235] SIZE 35651584…
skb
  • 28,056
  • 29
  • 91
  • 140
375
votes
35 answers

Email validation using jQuery

I'm new to jQuery and was wondering how to use it to validate email addresses.
DuH
  • 3,767
  • 3
  • 14
  • 3
1
2 3
99 100