Method of exchanging digital messages from an author to one or more recipients.
1
vote
2answers
48 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
2answers
122 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 ...
1
vote
0answers
53 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
53 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
612 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
25 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
23 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
235 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
34 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
51 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
73 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
546 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 ...
38
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 ...
3
votes
1answer
42 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
211 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
167 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
38 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
68 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
353 views
JavaFX eMail client
I've just finished up a functional emailing client in the Java language. It applies the JavaFX libraries and the ...
16
votes
1answer
274 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
86 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
39 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
159 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
155 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
114 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, ...
5
votes
2answers
175 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
73 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
109 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
58 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
77 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
90 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
160 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
127 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
26 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
932 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
144 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
249 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
144 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
108 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 ...
4
votes
1answer
111 views
Gmail Data Analysis
I am using Imaplib to fetch data from Gmail and get the number of emails each day. I am going to login using Imaplib twice for fetching emails for the inbox well as for the outbox (sent mail). Is it ...
1
vote
2answers
107 views
jQuery form builder for parsing email array into single input
I have the following in script in my web app which contains a lot of duplication. How can I cut down on this duplication and generally improve my code?
...
5
votes
1answer
247 views
Extracting emails from a file and writing them to another file
The code below works fine for me. Is there any way that I can improve this code more? Note: delimiter is single whitespace only for email address.
getmail.py
...
3
votes
1answer
1k views
Android Custom WebView
I have made a custom webview which is used to open a very heavy site in terms of database. The webview uses custom code for uploading files using an upload handler class. I need suggestions on how I ...
2
votes
1answer
1k views
Getting messages asynchronously using MailKit
I'm writing a prototype for an application that uses MailKit and imap to connect to gmail. It's the first time I've used MailKit and I'm a bit stumped around the best way to do this.
Essentially, I ...
1
vote
1answer
288 views
Environment-specific code in @Async mail method with Spring
I have a Spring @Service to asynchronously send emails. The part that seems to be a bit off to me is some code that is specific to our QA environment. We want to send and receive all emails through ...
2
votes
2answers
301 views
Dynamic PHP Form Submit Script
Below is a PHP script which dynamically finds and process all of the form elements such as inputs, textareas, dropdowns etc... then organize them into a table as shown in the image below when sending ...
5
votes
1answer
79 views
MailQueue - follow up
Follow up of this question.
Things altered:
Put logging (debug level) for creating and starting thread.
A separate thread for starting the different threads.
Locking object and synchronise for ...
6
votes
3answers
273 views
Make Email Sender more maintainable and testable
I want to be able to improve the way I am sending these emails because it is currently not testable (via Mocking) and it is hard to maintain.
Main Sender (I also need an Async method on there but I ...
7
votes
2answers
167 views
MailQueue implementation with auto start - stop
Previous question was a little portion of the mailQueue.
I finished the MailQueue, which has the ability to start and stop ...