Most voted "email" questions
Method of exchanging digital messages from an author to one or more recipients. Use this tag for questions that need to programmatically manipulate email messages and services.
Learn more…379 questions
Sort by count of
-
32
votes7
answers58283
viewsRegular expression for e-mail validation
I am trying to create a regular expression to validate any e-mail, I wrote the expression below, but it is not working as expected: var parse_email = /^[a-z0-9.]+@[a-z0-9]+\.[a-z]+\.([a-z]+)?$/i;…
-
30
votes5
answers21909
viewsHow do I check if an email actually exists?
I made an email field for the user to register, and now I need a system to check if this email exists. I need that when the user type his email a system check if it exists, if it even has this…
-
22
votes3
answers51011
viewsHow to send email from localhost using PHP’s mail function?
I want to send emails from localhost. <html> <head> <meta charset="utf-8"> </head> <body> <h1> Olá mundo!</h1> <?php $enviar = mail(…
-
19
votes2
answers3841
viewsBest practices for sending emails and avoiding spam
Nowadays, almost every web site or web system almost inevitably needs functionalities with sending emails, whether in contact forms, password recovery, account activation, order confirmation, etc.…
-
14
votes1
answer137
viewsRFC6530 - Check if variable contains a well formatted PHP email address
Approval adopted by the Gmail as published in Official Gmail Blog, and as defined in RFC 6530: Assuming a function valida_email() that would return boolean: echo valida_email("té[email protected]"); //…
-
14
votes4
answers994
viewsWhy does Input Type Email validation accept pointless domains?
The input type[email] is intended to validate whether the field is being filled with a valid email. But several times I have gone through questioning in some projects about why this field accept…
-
12
votes5
answers259
viewsLogin based on email domain
I’m thinking of a system where only users who have email with domain name empresa.com may register. After registration an email will be sent to validate the email. So far so good, I can easily…
-
11
votes1
answer21808
viewsE-mail with PHP attachments
I am sending an email, everything works fine. Now I wanted to add some files as an attachment. I have the following code: $from = $_SESSION['email_cliente']; $email_destino = "[email protected]";…
-
10
votes8
answers7818
viewsCheck if variable contains a well formatted PHP email address
The variable receives a value that is supposed to be an email address, but doubts arise: It will be an email address, random text, or anything else? Being an email address, it is well formatted?…
-
9
votes2
answers9737
viewsHow to send email with PHP?
I have a site under construction that people have the possibility to insert an email, I would like as soon as they insert their email and click on the "sign up" button, be sent an automatic reply…
-
9
votes2
answers1749
viewsPOST method does not take FORM value
I’m making a contact form on a website, but the PHP method does not take the value of input in the form, I’ve searched the internet and I can’t find anyone with the same problem. And e-mail is being…
-
9
votes2
answers905
viewsShould I treat emails as case sensitive or insensitive?
It is common to have a register, mainly of login requesting an e-mail address. According to the RFC governing e-mails and domains the first is case sensitive, while the second is insensitive, which…
-
8
votes2
answers600
viewsHow to read a file with an email list?
I have a text file with many emails and I want to save everything in a database, as I do to get each email from the file in PHP? The emails are separated by comma.
-
8
votes1
answer1990
viewsJava - Send Email Securely via Gmail API
I’m using a API e-mail Mail.jar of this tutorial for sending e-mail via Java, but I realized I have to, activate the permission for less secure apps. There is another way to send email Java, without…
-
8
votes3
answers281
viewsPick up reply email content
I’m using the library of imap to log into a company account and bring in the new emails, when it’s an email reply I’d like to pick up only the new content but I can’t get it just the full…
-
7
votes1
answer3943
views -
7
votes1
answer443
viewsHow do I send 200 emails (not a newsletter) without running the risk of going to spam list?
Every month we send 200/300 handwritten emails with variable text to the month’s customers (not a newsletter). Via PHP I can make the text dynamic, and send automatically, but the problem is sending…
-
7
votes1
answer150
viewsWhat are the rules for building an HTML email?
I’m about to build an HTML email, but I see there are differences for a common website page. I want the HTML email to have css and appear both on desktop access and tablet and mobile, and should…
-
7
votes3
answers6007
viewsHow to Customize Password Recovery Email (Laravel 5.4)
As I can customize the Laravel 5.4 password recovery email, I need to change the language but can’t find the place to edit.
-
7
votes1
answer6501
viewsSending email with Laravel 5.2
I’m having trouble emailing with Laravel 5.2. You’re returning this mistake to me: Expected response code 250 but got code "530", with message "530-5.5.1 Authentication Required. The archive .env is…
-
6
votes1
answer1115
viewsHow to format php mail?
I’m having trouble inserting formatting into the code. Whenever I send, I receive the email the formatting tags as <html> <body>, <strong>, <b>, <p>, etc.... Follow…
-
6
votes1
answer735
viewsHow to turn an asynchronous function into synchronous?
I have an asynchronous function and I would like it to become synchronous, because being asynchronous she is sending the data to the client before even completing the necessary steps, follows code:…
-
5
votes1
answer243
viewsGet an image of the body of an email, write to the database or in memory and show it in a new Viewer
I’m trying to build an E-mail viewer. To do so, I access my IMAP server and get email using the DLL ComponentSoft.Net.Mail. After getting the message, I intend to present it in my viewer. However, I…
-
5
votes2
answers3379
viewsHow to avoid sending PHP requests in a row?
Well, the situation is that there are some forms on my website. These forms are programmed to trigger emails using the Phpmailer class. What happens is the following, if the page takes a little time…
-
5
votes1
answer10370
viewsSend email with Acentos BD Uft8
I’m having a problem emailing names from the database. Some names come with accents and when I receive the emails the names are disfigured. The database is as Utf8 - Default collation Php code:…
-
5
votes1
answer451
viewsWhat is SPF and DKIM and why do we need to configure them?
Every time we talk in emails, particularly newsletters, the terms arise SPF and DKIM. Many services of mailing online ask to configure these values in web hosting but do not mention the reasons,…
-
5
votes1
answer81
viewsHow to transfer a file with corrupted name?
A client of mine is having a problem to upload file on my system, and from what I could notice it is his file that is with corrupted name (it is relatively common, on Windows systems, the accented…
-
5
votes1
answer905
viewsIs it possible to modify the HTML when writing an email in Gmail?
The intention is very simple, I want to make a <strike> (strikethrough) in the text of the email, p.ex.: tacked. I found the library Kartiktalwar/gmail.js: Gmail Javascript API, but it…
-
5
votes2
answers1064
viewsError using phpmailer class
I am making a contact form using phpmailer class and whenever sending the email this error happens: I’m using the SMTP connection. "Fatal error: Class 'SMTP' not found in…
-
5
votes2
answers9382
viewsIn CSS, is there any way to define the inline Hover?
I often need to develop templates for sending emails. But in some cases use the tag style to make style settings does not work. Thus, it is necessary to define the style values for inline elements.…
-
5
votes4
answers1156
viewsLogin condition with user or email in the same field
I am creating a system for schools, where the teacher when registering enters data such as name, email, user and password. So far the teacher can log in with email, but I wish you could login with…
-
4
votes3
answers1877
views -
4
votes2
answers1687
viewsPHP mail() function
I am trying to send an email via PHP with HTML attributes, an email formatted with images and style="" or classes. I tried to use Phpmailer, but without success, so I resorted to the mail() function…
-
4
votes1
answer1019
viewsHow can I make an email mask with PHP?
How do I make an email mask with PHP showing some letters, all numbers and special characters? Ex: [email protected] should look like this: stack_______2015-_____@__tmail.com…
-
4
votes1
answer686
viewsTurn Stream into PDF to send with attachment in email
I am making a page to send email, and I need to turn a specific page into pdf to be attached to the email. The page I already managed to turn into Stream, now how can I do to turn it into pdf and…
-
4
votes1
answer107
viewsError Openwebmail when sending email to a person
I have installed Open Webmail, I have several more accounts in some accounts as soon as an email is sent to them, returns the error below, more they receive the message, someone has seen and or…
-
4
votes1
answer375
viewsHow do I receive emails in my web application?
I am making a web application (front-end in Vuejs/Quasar and server in Hapijs) and I need it in addition to send also receive emails. I am sending it through the Nodemailer library, and it is…
-
4
votes3
answers1358
viewsNodemailer sends email but recipient does not receive it (hostgator server)
I have an e-mail server at the hostgator and an account at the same. I need to use the nodemailer to send messages to my clients from this account. For this I need to configure manually with these…
-
4
votes1
answer1543
viewsHow to send email with body and attached using smtplib and email in python?
When I send a simple Python email using only the smtplib library, I can write in the body of the email through the "message" argument of the following script function: def…
-
4
votes3
answers2535
viewsScript para enviar email
I am creating a page, where you have the contact part, I have already made the form, etc., but at the time of sending, I can’t find a function to send to my email. Could someone help? <article…
-
4
votes2
answers8261
views -
4
votes2
answers1212
viewsCheck out of Base64?
I’m making an email application (Hapijs) and found that some emails have his text encoded for Base64, but others do not. In this application I will need to receive emails from all services (Gmail,…
-
4
votes2
answers14478
viewsHTML code in the body of the e-mail
I created an HTML code to send information to the company’s clients where I work, when I send the email to the accounts *@hotmail.com or for their professional accounts *empresa.com.br everything is…
-
4
votes2
answers115
viewsIntegration between Mailchimp and React Native app
I’m a beginner in React Native. I’m basically trying to accomplish the integration between my application in React Native and Mailchimp, what I want to do is: Once the user provides us with his…
-
3
votes1
answer79
viewsHow to perform an action when replying to an email
In some systems I see a very interesting feature, such as: I get a message on facebook and he sends me an email with the message, and I can reply to the message by simply replying to the email. How…
-
3
votes1
answer92
viewsFormat RTF file to be sent as body using Mfmailcomposeviewcontroller
I have to send a report in text (with formatting) that I put in an RTF file within my project. When I set the email body using the method below, the formatting of the RTF file is not recognized by…
-
3
votes2
answers103
viewsWhy @ disappears by clicking on the link
I create a password reset link: $mail_message .= "<a href=$url_sender/redefinir-senha?email=$email_sender&identifier=$identifier_sender&code=$confirmation_code> Clique aqui para…
-
3
votes2
answers123
viewsSanitize email address
Assuming the following email address: $email = "zuúl@ so.pt"; I tried to proceed to sanitize the same by making use of: filter_var($email, FILTER_SANITIZE_EMAIL); // [email protected] I tried too:…
-
3
votes2
answers814
viewsFuncao mail in php
I’m using the function mail php and would like to check if emails were sent successfully, but I don’t know how I can do it. How could I check if the email was successfully sent?
-
3
votes2
answers411
viewsExtract emails from a Memo
I have a component memo, within it there is a large text, and in that text it contains several scattered email addresses. How can I extract only the emails from this memo1 and play at memo2?…