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
10
votes
1 answer

How should I upgrade from PHPMailer 5.2 to 6.0?

I have a script that currently uses a recent version of PHPMailer 5.2.x. PHPMailer 6.0 has been released, but says it will break backward compatibility – what do I need to do to upgrade?
Synchro
  • 35,538
  • 15
  • 81
  • 104
10
votes
1 answer

Bulk Emails failed with 421 4.7.0 Try again later

I have a requirement to send bulk emails with in my organization. I am Java Mail API and sending the mails with below config. props.put("mail.transport.protocol", "smtp"); props.put("mail.smtp.auth", "true"); …
ranafeb14
  • 437
  • 1
  • 7
  • 12
10
votes
1 answer

Send email as calendar invite/appointment in SendGrid C#

I would like to send an email with calendar invite/appointment to both Outlook as well as non-Outlook client like gmail/yahoo. My application is hosted on Azure and I am using SendGrid for sending emails. Emails part is working just fine but I…
user869375
  • 2,299
  • 5
  • 27
  • 46
10
votes
5 answers

Forwarding emails with a PHP script

We have a cron'ed PHP script that checks an inbox every ten minutes. The purpose of this script is to handle "STOP to quit" functionality for our SMS notification service we provide. If the script finds any emails with the word "STOP" at the…
Michael Irigoyen
  • 22,513
  • 17
  • 89
  • 131
10
votes
4 answers

curl : send html email with embedded image and attachment

My goal is to send an email using curl with an html body with embedded image such as : I'm sending the email like this : curl "smtp://smtp.gmail.com:587" -v \ --mail-from "sender@gmail.com" \ --mail-rcpt "receiver@gmail.com" \ --ssl…
Bertrand Martel
  • 42,756
  • 16
  • 135
  • 159
10
votes
1 answer

Attaching pdf file to an EmailMessage?

I am trying to set up an automated email sending script. I am using the email module and the EmailMessage object from the email.message module and am sending the email using the smtplib module. I would like to be able to attach a .pdf file to an…
Vladimir Yevseenko
  • 101
  • 1
  • 1
  • 4
10
votes
1 answer

Signing email in C#

Based on this question I decided to sign emails send from ASP.NET.MVC to decrease SPAM score of emails, but I have some bug somewhere. Code: public void SendEmail(MailMessage mailMessage) { string domain = "kup-nemovitost.cz"; …
Tomas Kubes
  • 23,880
  • 18
  • 111
  • 148
10
votes
4 answers

Sending mail with attachments programmatically in ASP.NET

I am dynamically generating a number of different types of files based upon a GridView in ASP.NET - an Excel spreadsheet and a HTML file. I am doing so using this code (this is just for the Excel spreadsheet): Response.Clear(); …
Chris
  • 7,415
  • 21
  • 98
  • 190
10
votes
3 answers

Java mail: sending email without SMTP

I want to send an email without using SMTP protocol. Is that possible to implement using Java? Since, my remote machine does not have access to google, yahoo and other accounts. and even my office mail can not be configured using SMTP server due to…
Mohamed Saligh
  • 12,029
  • 19
  • 65
  • 84
10
votes
2 answers

Do I need to wrap email messages longer than 72 characters in a line?

Occasionally I've seen code wrapping email messages to make sure a single line is no more than 72 characters long. Is there really need for this and what is this all about?
Tower
  • 98,741
  • 129
  • 357
  • 507
10
votes
6 answers

Is it impractical to put an HTML form into an email?

I've had several clients ask this, and I've never been able to get or give a satisfactory answer. Can you (practically) put a working form into an HTML email? My understanding is that you can, but that there's no guarantee of email clients properly…
Phantom Watson
  • 2,667
  • 4
  • 25
  • 39
10
votes
4 answers

Expected response code 220 but got code "" with message ""

Every time I submit the contact form on my Laravel application I receive the error message in the title. I've followed the recommendation in this discussion, but it has had no effect even after php artisan cache:clear and php artisan config:cache.…
user968270
  • 4,251
  • 5
  • 21
  • 20
10
votes
2 answers

Laravel 5.4 Mail, passing data

I'm trying to send an email to myself with a simple contact form in Laravel 5.4. My form is 4 inputs: Nom, prenom, email and message. I just want to send an email with data in my mail template This is my controller: $this->validate($request, [ …
Znne
  • 233
  • 1
  • 3
  • 11
10
votes
5 answers

Chrome email field autocomplete options not showing for my website

As I visit many new websites for the first time, I see that: For some websites, putting my cursor in the email field of signup form immediately shows me email options from what I had entered in other websites. For other websites, putting my cursor…
user3422637
  • 3,967
  • 17
  • 49
  • 72
10
votes
4 answers

why does phpmailer class echo texts?

when i send email it echo many unnecessary texts, i don't want these text to be printed out. how can i disable these text. example: SMTP -> FROM SERVER:220 mx.google.com ESMTP p1sm1037082ybn.17 SMTP -> FROM SERVER: 250-mx.google.com at your service,…
Azfar Niaz
  • 1,516
  • 4
  • 13
  • 21
1 2 3
99
100