Method of exchanging digital messages from an author to one or more recipients.
2
votes
0answers
5 views
Fluid HTML email template
I created this as a template for our email marketing team to use when creating emails. For fluid/responsive behavior, I am using max-width and conditionals for clients that do not support it (e.g., ...
3
votes
1answer
27 views
Babysitting a server reboot
I'm looking to improve a loop within a script that performs scheduled server restarts.
Currently, I'm using a DO While loop with an exit condition within an IF statement once a counter reaches a ...
4
votes
1answer
51 views
Custom Python 'Server Status Checker'
I've written a home-grown solution for checking the status of my servers. This is both an exercise for me in learning further about Python, but it's also critical to status-checking critical things ...
5
votes
2answers
264 views
C# helper class - mailto
I'm looking for input, advice, criticism. This is my first helper class. While use of mailto URLs should most often be trivial, I have a real world need to send to multiple recipients and with a body ...
1
vote
1answer
83 views
Validating Email Addresses without DB
I wanted to put this out here and see if there were any security vulnerabilities that I'm not seeing. Also, if I can improve performance without sacrificing security, that's always a plus. Thanks in ...
4
votes
1answer
59 views
Command line based email generation tool
Unfortunately due to my job I will have to leave out some of the information that is created by this generator, however I will be replacing it with another string of information.
I have created an ...
8
votes
2answers
179 views
Can I stop validating email addresses now please?
Writing code to validate emails is a thing I don't like. It's usually pretty pointless as there's there is actually no right solution, so it leaves me with a certain sense of existential dread.
I've ...
7
votes
4answers
508 views
C# SMTP notifier client
I've come from a PHP background and I'm really trying to unlearn the bad habits I acquired from not doing things properly with PHP through my own lack of understanding..
I'm looking to advance my ...
0
votes
1answer
79 views
1
vote
2answers
67 views
Two classes to validate and store an e-mail address
I'm trying to improve my limited knowledge in PHP (7) and I wrote these two simple classes as a proof of concept.
They both have just one (private) property ->email and they run validation before ...
3
votes
1answer
146 views
Validating e-mail address input in C
I have this little function to validate e-mail. It's a little piece of code to search major mistakes in e-mail input and it's part of a bigger program I have to complete as a school assignment. Is ...
3
votes
2answers
132 views
Queuing e-mail notifications in a background thread
I'm new to parallel programming concepts. I'm trying to implement fire-and-forgot kind of method in my project. Somebody please evaluate the below code & let me whether this is thread safe or not.
...
1
vote
0answers
61 views
Email text parser
I am writing a parser to parse out the fields of an email message in the following format (note that I expect that the "To:" field could contain multiple lines, same with the "Subject:" field.
<...
2
votes
1answer
59 views
Program to email you exchange rates that you are tracking and stats on them
This is a program I made as I am currently living in Japan with a British bank account, so exchange rates matter to me.
On the first time run, you run the script with two arguments (two currencies) ...
11
votes
5answers
719 views
Replace many Outlook email rules with a script
I as well as several of my colleagues have had an ongoing problem where we get bombarded with hundreds if not thousands of emails each day with come from automated services, such as SQL DBmail and ...
2
votes
1answer
27 views
XHTML input for PHPmailer
I have used PHPmailer to send email to users upon registering to the site. Now, everything works as should, however, I find myself doing painstaking work adding the HTML elements in.
Here's an ...
0
votes
0answers
60 views
Email a notification when detecting changes on a website - follow-up
I read through other questions here and improved the code and added a new feature. The old question can be found at: Email a notification when detecting changes on a website
The improvements that are ...
5
votes
3answers
355 views
Email a notification when detecting changes on a website
The text of a website is checked in a given time period. If there are any changes a mail is sent. There is a option to show/mail the new parts in the website. What could be improved?
...
3
votes
1answer
88 views
Simple Notification class that models database
I'm updating a website I made awhile ago from a functional design to an OOP design. There are still a lot of functions below this class that I haven't implemented yet but I'm getting to it (such as <...
1
vote
1answer
77 views
Rake task to send users a reminder to post with conditions
I am implementing a feature that reminds users to make a post via email if
the user has set daily reminders to true
he has not posted yet today
and if the current hour matches when he would like ...
3
votes
2answers
107 views
Submitting an HTML form, adding submission to database and emailing the client and registrant
I have been asked to make a registration form that will add a users details to a database, create a registration code, then email the registrant and client the details including the registration code.
...
11
votes
3answers
569 views
Analyze frequency and content of political fundraising E-mails
Since I'm a big politics nerd, I wanted to write a little script that would analyze the frequency and content of political fundraising emails. I signed up for the e-mails of 6 campaigns, donated a ...
40
votes
6answers
3k views
Accurate email syntax validation (no seriously)
So a friend happened to show me how odd and specific the general email syntax rules are. For instance, emails can have "comments". Basically you can put characters in parentheses that are just ignored....
3
votes
1answer
45 views
Ghostscript check, sends e-mail if one occurs
I've created a program that will search our work server where Ghostscripts occur. How it accomplishes this is by first sshing to the server specified, running a ...
3
votes
2answers
244 views
Parsing “mailto:”
Can you help me to review my "mailto:"-parsing function ?
Since I'm trying to write less code, that is as simple as possible.
I'm not sure there if there is some bug or better solution.
...
4
votes
1answer
234 views
Implement mail sending system elegantly
In my project I need to send emails. Emails will have different credentials and senders. I'm thinking about "abstract factory", but will it be good solution?
...
1
vote
0answers
47 views
Async process to send a contact email and confirmation message
Using nodemailer and node-email-templates to send a contact email and confirmation message. As is, I can catch any errors, but (if a file attachment is included), this process can take up to 30 secs ...
4
votes
1answer
82 views
Sending mail using nodemailer in Clojure
I'm very new to Clojure/ClojureScript and have a question regarding a "proper" way to express something.
This code sends a mail using nodemailer on nodejs:
...
8
votes
2answers
818 views
JavaFX eMail client
I've just finished up a functional emailing client in the Java language. It applies the JavaFX libraries and the ...
18
votes
1answer
287 views
Are your servers down…?
If you came here because of the title, chances are your server isn't down. But if by some miraculous reason it is:
A while ago, I posted a program that would ssh and ping all the servers at work. I ...
6
votes
2answers
117 views
Server status checker
I've created a program for work that checks the status of all our servers quickly. What we use to have to do is ssh into each server manually.
I'm looking for some ...
1
vote
1answer
45 views
Speeding Up JavaMail Sending
I am creating a miniature bulk email sender. I am using Postfix on Ubuntu with JavaMail. Here is the key part of the code:
...
1
vote
1answer
342 views
PHP e-mail form with ReCAPTCHA
I want to ask if you can review the code for a simple contact form and the PHP code which sends me an email once a visitor fills the form and is validated through Recaptcha
On my index.php file here ...
3
votes
2answers
308 views
Python code to encrypt and email PDF file using PyPDF2
This is my first programming project with real world application. It's purpose is to take a file from a directory, encrypt it with a predetermined password, and email to appropriate recipient.
ID ...
3
votes
1answer
136 views
Alteration of Rebol's SEND favouring To/CC/BCC fields for defining recipients
I was looking for a way to better define email recipients along the lines of the To/CC/BCC convention. Although SYSTEM/STANDARD/EMAIL contains CC and BCC fields, they are not currently functional, see:...
5
votes
2answers
195 views
Counting e-mails in a mailbox for each hour
Pardon if this is silly, but I'm pretty new to coding. I have this code, that works, but I feel like it could be tighter than this, I just can't seem to get it to work any other way. The idea is to ...
5
votes
2answers
82 views
Email checker ('@' sign, provider, domain extension)
To learn about classes, I chose to create a little something that checks if you have included the following:
@ sign
Provider (e.g. 'hotmail')
Domain extension (e.g. '.com')
It also checks if you ...
4
votes
2answers
163 views
Wrapper class for PHPMailer
Is this a right way to use/implement an external library into a project? If it's not how do you do it?
...
2
votes
1answer
73 views
POP3 message downloader using state machine processor
This simple program uses a socket class I wrote, class socket, to retrieve a users pop3 emails and print to stdout. I would like feedback on the socket class and the code to download the pop3 emails. ...
3
votes
2answers
79 views
Simple web form in PHP
This is a simple web form handler in PHP that sends a completely filled web form to a email.
I see lots of repeating code. What is the best way to reduce repetition?
Is my way of checking for fields ...
2
votes
2answers
137 views
Colored <hr> in emails
Sometimes, I need to change the color of <hr> elements in an email.
The only achieveable way is by using CSS. But not every email client supports CSS. Most ...
3
votes
3answers
182 views
Sanitising contact form input for PHPMailer
I would like some insight on this function for sanitising user submitted data into a contact form. No HTML content or anything, just plain text.
Are there any vulnerabilities here that I'm missing? ...
12
votes
5answers
1k views
E-mail testing code
I made some code to check that e-mails given apply to the right format, and I'm sure there must be a better way to do this.
...
3
votes
4answers
156 views
Sending templatized e-mail to a million contacts
This code runs fine without a bug, I need to optimize this code for following interview requirement.
Lets say i need to send it to 1 million contacts and emailBody is ~100Kb.
What code optimization ...
1
vote
1answer
27 views
Selecting mail messages that meet one of four search criteria
This is the current very repetitive and long SQL I have. Unfortunately I'm not that good at SQL to group this and get rid of the repetition.
...
5
votes
2answers
1k views
E-mail MIME message parser
As part of a larger Java application I'm working on, I have to retrieve emails and parse the data for the emails' content (subject, date, text, attachments, sender). In the method below, I pass a <...
0
votes
1answer
180 views
JUnit test case to check that an exception of type javax.mail.MessagingException is not thrown
I have a method which will send a text mail using JavaMail API and I am trying to write a test case for this method which will check if an Exception of type ...
10
votes
2answers
307 views
Sending an SMS message in C
Recently I've been fiddling with the idea of sending a text message using C. Looking at a few options, I thought that using libcurl to send an SMTP email using TLS for some security would be the best ...
4
votes
2answers
148 views
Bayes rating selective term filtering
I am working on a project, and at the moment I have just finished the majority of the Bayes Rating/Classifier.
I have two sets of methods I am most concerned about. Method set 1, will select a ...
-5
votes
1answer
120 views
Contact form handler with a honeypot [closed]
I have created a php contact form and have tried to make it relatively secure. I've added a honeypot field that should be left blank, code to ensure all required fields are filled out and code to ...