Questions tagged as 'email'

5
answers

How to check if an email really exists?

I made an email field for the user to register, and now I need a system that checks to see if this email exists. I need when the user enters their email a system to verify that it exists, if it even has that email. For example, the user types...
asked by 05.03.2014 / 01:05
3
answers

How to send e-mail from localhost using the PHP mail function?

I want to send emails from localhost. <html> <head> <meta charset="utf-8"> </head> <body> <h1> Olá mundo!</h1> <?php $enviar = mail( "[email protected]", "nada não", "teste somente"); ?> &...
asked by 18.11.2014 / 09:43
6
answers

Regular expression for e-mail validation

I'm trying to create a regular expression to validate any email, 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; What I expected from each section: [a-...
asked by 28.12.2013 / 20:00
4
answers

Why does Input Type validation mail accept domains without a dot?

The input type[email] is intended to validate if the field is being populated with a valid email. But I've been questioning a few times on some projects about why this field accepts some types of emails that are seemingly invalid....
asked by 23.01.2017 / 15:33
1
answer

RFC6530 - Check if variable contains a well-formatted e-mail address in PHP

Recently adopted by Gmail as published in Official Gmail Blog , and as defined in RFC 6530 : Assuming a valida_email() function that would return Boolean: echo valida_email("té[email protected]"); // devolve TRUE echo valida_email(...
asked by 08.11.2014 / 01:48
5
answers

Login based on the email domain

I'm thinking of a system where only users who have email with domain empresa.com can register. After registration an email will be sent to the email validation. So far so good, I can easily check the email domain when the user is regis...
asked by 15.06.2016 / 16:54
1
answer

Send email with attachments in php

I'm 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]"; $subject = "Assunto"; $messagem = "Isto é uma mens...
asked by 02.04.2014 / 15:59
2
answers

How to send email with PHP?

I have a site under construction that people have the possibility to insert an email, I would like that as soon as they enter your email and click the "subscribe" button, send an automatic reply email to them, how could do that?     
asked by 05.07.2014 / 21:17
8
answers

Check if variable contains a well-formatted e-mail address in PHP

The variable receives a value that is supposed to be an email address, but the doubts arise: Will it be an email address, a random text, or something else? Being an email address, is it well formatted? Assuming a valida_email() f...
asked by 05.03.2014 / 18:24
2
answers

How to read a file with a mailing list?

I have a text file with many emails and I want to save everything in a database, how do I get each email from the file in PHP? Emails are comma-separated.     
asked by 07.05.2014 / 01:04