Method of exchanging digital messages from an author to one or more recipients.
15
votes
6answers
1k 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 ...
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 ...
12
votes
1answer
76 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 ...
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 ...
10
votes
3answers
757 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 ...
10
votes
2answers
467 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 ...
8
votes
3answers
176 views
New event notification e-mailer
I created a New Event Emailer.
this takes some fun events from a nice SQL query and creates a little HTML message and sends it to all the subscribers of events, when new event types are added we need ...
8
votes
1answer
666 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 ...
7
votes
2answers
169 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 ...
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 ...
7
votes
2answers
395 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.)
...
7
votes
2answers
351 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
7k 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 ...
6
votes
3answers
439 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 ...
6
votes
3answers
264 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 ...
6
votes
1answer
282 views
Security of a “contact us” form
I have a form, which uses AJAX to send POST data to the following controller method:
...
6
votes
1answer
818 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 ...
6
votes
1answer
88 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 ...
6
votes
1answer
155 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 ...
5
votes
3answers
149 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 ...
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]. ...
5
votes
2answers
103 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 ...
5
votes
1answer
161 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 ...
5
votes
2answers
226 views
Possible security issues in email validation
I need feedback on this code regarding security issues.
...
5
votes
3answers
171 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.
...
5
votes
1answer
64 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' ...
5
votes
1answer
285 views
Sanity check for mail code
I have the following PHP function, which is admittedly not quite as robust as it could be (I'm missing some sanity checks including a proper one for $sendTo for ...
5
votes
1answer
2k 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 ...
5
votes
1answer
13k views
4
votes
3answers
71 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 ...
4
votes
2answers
109 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 ...
4
votes
2answers
167 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/ ...
4
votes
2answers
324 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 ...
4
votes
2answers
1k 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
63 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.
...
4
votes
2answers
1k 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 ...
4
votes
2answers
802 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 ...
3
votes
3answers
558 views
Email text validator
I'm using this pattern for the first time and wanted to check if this is the correct implementation.
class.validator.strategy.php
...
3
votes
2answers
88 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.
...
3
votes
2answers
156 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.
...
3
votes
4answers
391 views
Is it overkill to create a Model for this?
Email<input type="text" id="email" /><br />
Re-enter Email<input type="text" id="confirm-email" />
I'm thinking that I want a model so that I ...
3
votes
1answer
46 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() ...
3
votes
1answer
173 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 ...
3
votes
1answer
163 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 ...
3
votes
1answer
206 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. ...
3
votes
1answer
123 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
1answer
80 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 ...
3
votes
1answer
150 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 ...
3
votes
2answers
98 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.
...
3
votes
2answers
173 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 ...