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
1203
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
  • 12,605
  • 4
  • 21
  • 16
1058
votes
15 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
  • 84,767
  • 185
  • 495
  • 805
959
votes
26 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
  • 20,959
  • 28
  • 93
  • 149
838
votes
18 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
  • 10,281
  • 6
  • 23
  • 28
699
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
  • 40,205
  • 25
  • 108
  • 139
678
votes
40 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
  • 30,304
  • 14
  • 54
  • 69
610
votes
46 answers

C# code to validate email address

What is the most elegant code to validate that a string is a valid email address?
leora
  • 188,729
  • 360
  • 878
  • 1,366
556
votes
30 answers
555
votes
26 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,997
  • 13
  • 42
  • 62
464
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
  • 26,009
  • 9
  • 51
  • 75
420
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
  • 24,165
  • 16
  • 57
  • 58
416
votes
40 answers

How to validate an e-mail address in swift?

Does anyone know how to validate an e-mail address in Swift? I found this code: - (BOOL) validEmail:(NSString*) emailString { if([emailString length]==0){ return NO; } NSString *regExPattern =…
giorgionocera
  • 6,428
  • 6
  • 20
  • 17
410
votes
5 answers

Are email addresses case sensitive?

I've read that by standard first part of e-mail is case sensitive, however I've tried to send e-mail to name@example.com, Name@example.com and NAME@example.com - it has arrived in each case. How do mail servers handles usernames? Is it possible to…
Stalker
  • 4,352
  • 2
  • 21
  • 19
407
votes
16 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
  • 30,624
  • 33
  • 94
  • 146
403
votes
35 answers

How can one use JQuery to validate email addresses?

How can one use JQuery to validate email addresses?
DuH
  • 4,047
  • 3
  • 16
  • 3
1
2 3
99 100