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

learn more… | top users | synonyms (1)

7
votes
2answers
76 views

HTML inline CSS

This HTML code seems to work: the page looks as I intended it. I have checked it multiple times, but it's difficult to tell how to improve. I would like somebody to review and point out any mistakes ...
-3
votes
0answers
25 views

Outlook HTML Color Change in New Window [closed]

I have used in line css in my html for an email to be distributed via a sharepoint workflow. My problem now is when I test the email by sending it to myself the email looks exactly the way I want it ...
11
votes
5answers
2k views

PHP mail form is being abused

I'm nowhere near a PHP expert, but I have dabbled a bit. I can make things work just fine, but I am terrible at figuring out what is wrong. I was informed by our server admin that we have a mail ...
0
votes
2answers
84 views

Validating basic data objects

I'm playing around with trying to do things in a better way, and in a class I have for sending emails, I have the concept of a recipient. This gets passed into my other classes essentially as a struct ...
3
votes
1answer
72 views

PHP e-mail sending class design

I'm working on a class, what will be able to send e-mails for our customers. I need to help with review of my classes design. I'm trying to do it to be easy extendable in future. I'm thinking about ...
4
votes
3answers
61 views

EmailSession in Java Webapp

I have written an EmailSession class to connect and get (unread) mail messages. It is all working, but I would like to see your opinions on any enhancements or ...
2
votes
1answer
26 views

HTML for optimal output in Outlook

I am unable to use CSS for this as I am disseminating this information via e-mail through a sharepoint workflow. I have tried to make this code as MS Outlook compatible as possible. (I removed all ...
1
vote
0answers
28 views

“Transparently” converting the output to an e-mail message?

I recently wanted to write a regression testing script that produces a report that looks like this: ...
3
votes
1answer
29 views

Perl script to check disk usage

I'm looking for input on the code itself and formatting/style. This script parses the output of df -h on a Linux server and emails the user if the usage percentage ...
5
votes
1answer
35 views

Exporting a table from Google Sheets and sending it via email

Basically is a script to export a table from Google Sheets and send it via email. But it's not a clean script, although it works. If there is any way of making it more simple, or instead of get all ...
6
votes
1answer
85 views

Wait for messages in IMAP Gmail mailbox

I used the idle command to wait for incoming messages in my Gmail mailbox. The protocol I am using is IMAP. My concern is as follows: While the below code works, Gmail has a tendency to try to ...
1
vote
1answer
57 views

Making an email text-parser generic using PredicateBuilder

I have some code that reads an email from a text file, parses the text, removes some lines (the 'cc' and 'to' lines) and then finds the line numbers of various phrases (e.g. "Regards", "Thanks") and ...
7
votes
2answers
76 views

Script for saving/sorting/sending emails based on their subject

I've spent a couple days making this script in Outlook that checks my emails and saves/sorts/sends a reply based on the subject. This also happens to be my first experience in working with VBA. Now ...
6
votes
5answers
1k 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
107 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
73 views

Is my PHP code vulnerable to XSS?

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
42 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
105 views

Possible security issues in email validation

I need feedback on this code regarding security issues. ...
1
vote
1answer
79 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
73 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 [email protected]. ...
7
votes
2answers
174 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
275 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
74 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 ...
1
vote
1answer
53 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
90 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 ...
1
vote
1answer
206 views

Good HTML email template?

Based on several different sources, I have compiles 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 the \n and \r\n ...
3
votes
1answer
110 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
57 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
74 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
163 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 ...
13
votes
6answers
867 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 ...
9
votes
3answers
403 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 ...
2
votes
1answer
54 views

DRYing Up RSpec

How would you DRY up this RSpec code? ...
3
votes
1answer
105 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
125 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 ...
2
votes
2answers
144 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 ...
2
votes
1answer
192 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
92 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. ...
5
votes
1answer
206 views

Security of a “contact us” form

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

Sending signed email [closed]

Is this a good way to send a signed email message? It seems to me that a public key is a little too large to send as a email header. Should I be including the signature and key as a header field, or ...
3
votes
1answer
147 views

Email obfuscator

Review this code for code quality. ...
4
votes
2answers
435 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 ...
3
votes
1answer
1k 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 ...
4
votes
2answers
369 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. ...
4
votes
2answers
455 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
1k 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 ...
3
votes
0answers
1k 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 ...
2
votes
1answer
391 views

I made a PHP contact form that goes to multiple addresses based on drop down selection, how do I determine if my code is safe?

I followed a tutorial to create a PHP contact form that sends to multiple emails depending on drop down field selection. I have included the PHP below. Is it protected from spam/other dangers? Or is ...
2
votes
2answers
150 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 ...
2
votes
3answers
151 views

Logic for an init function in email parser

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 ...