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

learn more… | top users | synonyms (1)

2
votes
2answers
23 views

Contact Form Sanitized Inputs

I have the following as my Ajax / PHP contact form on a site I am building. I have sanitized the inputs but just wanted to make sure I havent missed anything... ...
0
votes
1answer
54 views

Queue like system to check existence of email

I have a table in my database containing email and email_state amongst other values. Email is the email of the contact, and ...
4
votes
2answers
140 views

Bash script to send emails when web server does not respond

I've made a simple bash script to check if a web server responds, and to send emails to a list of addresses if the website is down. Any suggestions as to how to improve it/ edge cases that I missed/ ...
2
votes
1answer
20 views

Formmailer safety

I am currently working on a PHP-Formmailer. I`m completely new to PHP but I do have knowledge about HTML, CSS and Javascript. I would learn PHP starting with the basics and everything but I´ll be ...
1
vote
1answer
42 views

A simple Ruby EmailAddress class

I wrote this short, plain Ruby lib to handle email address validation inside and outside of Rails applications, and I would like to know what you think. ...
3
votes
1answer
38 views

Passing arguments to a SendMail function referenced by addressOf operator

I am trying to send daily mail alert to users based on some timer values. For that I've used Addhandler to call the sendmail() ...
1
vote
1answer
56 views

DRY code for sending email with SendGrid

I have this code inside a post route: The first one is to alert me when a user registers on my site: ...
1
vote
2answers
78 views

Safety of contact form

I have made slight edits to a simple PHP contact form that I have found online. Can you see anything else that I could do to ensure that I am protected from email injections and spam? I have used ...
5
votes
3answers
142 views

Validating email addresses through temporary mail message

I was given this project and have changed a lot of code on it, now I am going over the code to make sure that I know what everything does and can maintain it efficiently, and to make sure I want my ...
4
votes
2answers
55 views

Mailinator automatic checker for new e-mails

I'm making a little script to run on the background and notify me when I received a new email in a mailinator inbox. I want to eventually daemonise it, but for now it just runs like a regular script. ...
5
votes
2answers
102 views

Overloading email sender utility class methods take single or array arguments

I'm writing a simple utility class for sending an email. I'm not sure what's the proper way to present this to a consumer. Should I force them to use an array in ...
3
votes
2answers
86 views

SMTP client to send search results

I have the following working code to send search results via e-mail. Since we have segregated domains that cannot talk to each other, the program needs to support multiple SMTP servers. ...
0
votes
1answer
105 views

Java Apache Commons Net SMTP Wrapper Attachment

Can the below code be improved? Are there any major issues with it? Thanks ...
2
votes
1answer
39 views

Improving efficiency and flow by changing subroutine orders

A batch file executes WinSCP.exe's console mode to download files and log the actions. Upon exit, WinSCP returns: ERRORLEVEL 0 if the files are successfully ...
3
votes
1answer
40 views

Syncing e-mails for multiple accounts

I wrote an email syncing program in my ASP.NET MVC website that syncs e-mails from multiple e-mail accounts to my database. Each e-mail account has to be independent from other accounts and they have ...
12
votes
1answer
74 views

Network Downtime

A while ago I was experiencing 'flakiness' on my home ADSL line. I run a Linux server in my basement, VOIP, and a few other things (like Netflix) and I was experiencing a few minutes of network ...
3
votes
1answer
68 views

Handling errors on a web application

I have this C# production code for handling errors on a web application. There are currently two applications that use the class. In each application I initialize the class within the ...
8
votes
1answer
559 views

Email validation using JavaScript

I have a function where I validate emails via a regex. I was wondering if this is the best regex to use or if there's a better way of doing it. Also is there a ...
4
votes
2answers
108 views

Accept an object and generate a email

I have a question regarding optimizing a php email class. It's basically a wrapper class than needs to be able to accept different objects and always output an email. I'm trying to make it generic, in ...
6
votes
3answers
247 views

Helper class to send emails with attachments on Android

I use this EmailTools helper class inside an Android app to send data as an email attachment, by calling ...
3
votes
1answer
76 views

Check string(line) in a file and send email

I want to check some lines from a log file [check msyql replication slave status log] named "status.txt" (size is always about 3-4 KB): Slave_IO_Running: Yes Slave_SQL_Running: Yes If any of ...
10
votes
2answers
431 views

Application please send me an E-mail

This is an E-mailer class that I created to send me E-mail when/if the Windows service (that will be installed on computers all over) throws an error, so that I know what is going on. I use a similar ...
1
vote
0answers
50 views

LogParser function: kill application and send email

I've created a new tool, which parses a specified log file, and if an Oracle exception is there, it kills Tomcat and sends an email notification. I tried to take into account comments from my ...
3
votes
1answer
490 views

phpMailer mass mailing script

I'm working on a script that will be able to send mass e-mails. I'm using cron to run this script. I'm fetching e-mails from queue. I need to ensure that: To one e-mail will NEVER be sent more than ...
10
votes
4answers
1k views

Send email just once per day

I want to send an email just once per day. There is one button and any user can click that button. The email must not be sent twice. When the first user clicks the button, the email is sent. If ...
7
votes
2answers
156 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 ...
12
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
129 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
153 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
70 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
62 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
34 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
126 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
145 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
721 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
124 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
315 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
6k 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
164 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
97 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
50 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
191 views

Possible security issues in email validation

I need feedback on this code regarding security issues. ...
1
vote
1answer
114 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
103 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
371 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
423 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
79 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
67 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
159 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
563 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 ...