The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [email]

Method of exchanging digital messages from an author to one or more recipients.

Filter by
Sorted by
Tagged with
13
votes
7answers
42k views

Regex validation for Email Address

I need to validate whether my regex is correct for below scenario. Suggestion's if the regex is correct: Wiki Link Local_part The local-part of the email address may use any of these ASCII ...
5
votes
3answers
444 views

Use of mediator design pattern with mailing list implementation

I have implemented the following scenario for the Mediator pattern sample: MailingListMediator: Manages the subscription and send the mail back and forth. ...
3
votes
2answers
265 views

PHP form-to-email script

Someone says that my PHP code is vulnerable to XSS. I asked them what I should do to fix it, but now they don't want to help. ...
0
votes
1answer
72 views

Add user star function triggering PHPmailer email optimisation

The function below simple allows a logged in user to "star" another user for convenience when trying to find the that user another time. At the moment the function works as it should, it inserts the ...
5
votes
2answers
537 views

Possible security issues in email validation

I need feedback on this code regarding security issues. ...
1
vote
1answer
271 views

Is this PHP mailer file secure from injection attacks?

My PHP contact form was recently being used to send spam. Some security measures have since been put in place (please refer to the comments below) and I'm seeking the collective wisdom of others to ...
5
votes
1answer
207 views

Giving actual username from Gmail ID

If you have a Gmail ID, then you can also receive emails on the same account even if you add extra dots in the username or add '+' and some characters. Say your Gmail ID is montypython@gmail.com. ...
7
votes
2answers
2k views

Python Email Program

I've written this email program in Python, and I would like to get some feedback on it. (i.e. closing the server twice after the raw input, etc.) ...
6
votes
3answers
2k views

Notify user of upcoming expiration of subscription

Here is some VB code that is part of a major system of apps that I have been asked to maintain, one of the more fun things that I get to do is rewrite some code here and there, I have done a little ...
7
votes
3answers
107 views

Encrypt and backup folder to email daily, when online

I have a backup script which should backup a folder and send it to email. This should be done once a day. As this is on my laptop which is not online 24/7 I need to check that I am online and can send ...
7
votes
3answers
573 views

BEM email structure

I have started using BEM syntax for my HTML and CSS. I got the idea from Harry Roberts' blog post "MindBEMding – getting your head 'round BEM syntax". Please note I am not looking to use this for ...
1
vote
1answer
103 views

Optimising and consolidating multiple PHPMailer functions

So the two functions below both send emails via PHPMailer but both hold different messages (which use different data from the db). I was just wondering (as I plan to use PHPMailer more) a way to ...
3
votes
1answer
271 views

Crawling for emails on websites given by Google API

I'm trying to build an app which crawls a website to find the emails that it has and prints them. I also want to allow the user to type "false" into the console when they want to skip the website (...
2
votes
1answer
2k views

HTML email template

Based on several different sources, I have compiled the following as my basic HTML email template. Please let me know if I have missed anything important. I am not sure if I am using ...
3
votes
1answer
513 views

Creating a pure Ruby object (PORO) to email files in a Rails application

I wrote a service object that emails a list of files to a list of email addresses. I am unsure about my emails method. It splits a string into an array of emails. ...
5
votes
1answer
82 views

Managing Contact Collections

I have a WPF/MVVM form that contains sections for managing Recipient Contacts, CC Contacts and BCC Contacts. Each of the three sections has buttons/ICommands for 'Add', 'Clear', 'Previous' and 'Next' ...
6
votes
1answer
123 views

Optimizing email alert code

To avoid switch statements at multiple places, I wrote the following code. This was based on articles found in the Google search. The object names are not real in ...
4
votes
2answers
3k views

To send the email on some given date and time

I am making a PHP script which fetches the data of the emails whose sending date and time has been reached and then send emails to those records. I am following the steps below and integrating it in ...
25
votes
6answers
2k views

Are there any open vulnerabilities in this mailer script?

I made a PHP mailer script does the basic validation of fields, return errors, else submit if all is good. But it also has a honeypot field that is not required to be filled in (I'm assuming by hiding ...
10
votes
3answers
2k views

Refactor foreach statement to LINQ

I have been working on a project and I'm actually refactoring some code. I have encountered myself with lots of foreach and if statements, which could be easily replace with LINQ. But I have this ...
3
votes
1answer
131 views

RSpec tests for an invoice mailer

How would you DRY up this RSpec code? ...
3
votes
1answer
150 views

Is this contact form code breaking any rules?

Can you please review my PHP script below? It is for a contact form. Am I breaking any rules? Does it seem okay to you? ...
3
votes
2answers
266 views

Preventing email injection - Part 2

A day ago I have asked a question on here about Preventing email injection. I had some feedback and worked on it, and below is the latest update. Could anyone please share their opinion? Is it ...
3
votes
2answers
404 views

Preventing email injection

I have asked a question on Stack Overflow and one of the guys actually managed to hack my contact form and inject a fake email into the $header of the PHP! So ...
6
votes
1answer
6k views

Checking input and email field

I've written this as part of my contact form on my website. It checks to see if required inputs are empty, if so adds a red warning color and text. It also checks the email field for a properly ...
2
votes
1answer
1k views

Filter email with JavaMail

I'm trying to develop code to filter my e-mail with JavaMail, but I doubt it's the best way of doing this. And I want to collect all messages without attachment. <...
3
votes
1answer
109 views

Script for generating a report in Google-Spreadsheets. Looks for various values to check and count

It all works exactly as it should. It finds data from today, finds unique emails and puts them in an array. I then check the data again from today, against the emails to total up different values. ...
6
votes
1answer
477 views

Security of a “contact us” form

I have a form, which uses AJAX to send POST data to the following controller method: ...
4
votes
2answers
9k views

Validating email without Regex

I'm trying to improve my JavaScript (I'm usually a copy/paste guy but can do basic DOM stuff with jQuery too), so I decided to try and make a function to validate an email address without using Regex. ...
4
votes
1answer
220 views

Email obfuscator

Review this code for code quality. ...
5
votes
2answers
9k views

Is there any way to make this JavaMail code faster?

I'm developing an application that receives and manages e-mails from a server. I manage only XML files and organize, by sender, the e-mails that have XML attachments, while the others are deleted. I ...
2
votes
2answers
217 views

Email script security

I have a PHP script on my server that validates a form and sends the form to a CRM and an email address that I specify. In order to send the form data to my specified email, the script must include a ...
2
votes
2answers
178 views

Redundant email checking in PHP

This essentially checks if any of these if statements are true, then echos a statement. Unfortunately, wrapping the error message with a ...
4
votes
1answer
5k views

Sending emails using SMTP client

The following code gets the recipient's email address, email subject line and email body from a table. It then creates the emails and sends them to a pickup directory. There is a db connection class ...
5
votes
2answers
3k views

Sending test emails to a list of email addresses

I've made the following program that takes a list of email addresses from a table in MS Access and sends each a test email. ...
1
vote
1answer
116 views

Email-sending class for GAE

Please review this: ...
4
votes
1answer
945 views

List contents of a folder using a shell script and mail the folder

I want to list the contents of a folder and mail the list using a shell script. I Came up with the following script, please let me know if it is okay: ...
4
votes
2answers
2k views

phpMailer script for a contact form

I've just downloaded a script and would like to use it as a contact form on my site. The problem is I'm a front-end dev with little knowledge of securing PHP code. So, could you please have a look and ...
0
votes
1answer
7k views

Multi threaded application to send large no of emails

I need to build a application which sends a lot of emails. These emails are based on a table. Basic idea is, I grab a bunch of records from database. Create ...
6
votes
1answer
4k views

Parse emails and create HTML markup from attachments

I am developing a script that will act as a surrogate of sorts for a web portal and an email blast program. The web portal is used to create web-to-print files and is very good at creating print-ready ...
3
votes
1answer
2k views

Contact form that goes to multiple addresses based on drop down selection

I followed a tutorial to create a PHP contact form that sends to multiple emails depending on drop down field selection. Is it protected from spam/other dangers? Or is it basically wide open for bots ...
4
votes
3answers
2k views

Check if email address contains one of many domains from a table, ignoring the subdomain

I'm trying to validate email addresses as being from certain universities. I have a table, University, which is full of university domains. University email ...
3
votes
3answers
778 views

Logic for an init function in email parser [closed]

I am writing an email parser and cannot decide how much logic should be included in the __init__ function. I know that a constructor should make the object ready ...
3
votes
2answers
216 views

CSV email script efficiency

I'm tasked with getting emails from a .csv file and using them to submit a form. I am using the csv and mechanize Python libraries to achieve this. ...
7
votes
1answer
408 views

Email notifications system in Rails project

I'm working on the Rails project where I have many-to-many :through relationship. Each setting has many notifications through email_notification model where the notification can be primary or a ...
2
votes
2answers
7k views

Is this a secure and best-practice PHP mail() function?

Is the following PHP laid out fine to go inside the mail function? ...
2
votes
1answer
178 views

Google Apps Email, Contacts, Tasks, ScriptDB services integration

Please help me improve this Google Apps Script for reminding the user to contact people they haven't contacted in a while: Purpose: Creates tasks for you to contact people you haven't talked to for ...
7
votes
1answer
337 views

Fetching emails from various clients to store in a database

I have written code which does the following: The main goal is to fetch emails from inbox and spam folders and store them in a database. It fetches emails from Gmail, GMX, web.de, Yahoo and Hotmail. ...
2
votes
1answer
139 views

Single-account-per-email verification

This is a function that checks that when users register into the site, they only create one single account per email. The little twist is that all emails in the DB are hashed with unique salts (=...
4
votes
2answers
635 views

Script to drop HTML part of multipart/mixed e-mails

I have a working script that I wrote in Python which for e-mail messages that consist only of a plain text part + an HTML part, discards the HTML and keeps only the plain text part. The script is not ...