Questions tagged [email]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
209 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
130 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
103 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) ...
13
votes
5answers
2k 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 which come from automated services, such as SQL DBmail and ...
3
votes
1answer
69 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 ...
1
vote
0answers
2k 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 ...
6
votes
3answers
7k 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? ...
4
votes
1answer
900 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
1k 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 to ...
3
votes
2answers
306 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. ...
14
votes
3answers
749 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 ...
54
votes
6answers
5k 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....
2
votes
1answer
49 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 ...
2
votes
2answers
969 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
3k 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
418 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 ...
3
votes
1answer
219 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: ...
9
votes
2answers
6k views

JavaFX eMail client

I've just finished up a functional emailing client in the Java language. It applies the JavaFX libraries and the ...
20
votes
1answer
347 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
403 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
2k 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
1k 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 ...
4
votes
2answers
3k 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
268 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:...
6
votes
2answers
325 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
333 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 ...
5
votes
2answers
858 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? ...
3
votes
1answer
290 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
94 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 ...
4
votes
2answers
4k 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
325 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
2k 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
658 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
36 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. ...
6
votes
3answers
8k 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
779 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 ...
13
votes
2answers
5k 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
160 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
411 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
522 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
193 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
4k 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 ...
4
votes
1answer
6k 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 ...
5
votes
1answer
10k 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
875 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
2k 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
112 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
662 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
806 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 ...
3
votes
2answers
3k views

ConcurrentLinkedQueue to unmodifiable list

I have a ConcurrentLinkedQueue where I put some mails in. Now I have a visual page where I want to see what's in the Queue, but ...