I looked up sending mail in R and found that the libarary SendMailR can be used for smpt but does not seem to have any IMAP related options.
An example of what I've found so far.
how do you send email from R
You are confused. Mail flows in two ways:
To you -- that is IMAP, POP, ... and you do not send that way but receive.
From you -- that is SMTP and you (generally) need to interact with a mail-sending program like sendmail, exim, qmail, ... or the smtp service offered by the Google GMail back end. As I recall, SendMailR can deal with these.
So in short, _there is no sending via IMAP. (Check eg the advanced email setup options of your smartphone. They generally split it between receiving -- my point 1. above -- and sending as in point 2.)
The simplest way to send then depends on your operating system. These details matter.
Related
I just wanted to write a program to show the server-list of teknomw3. I'm not familiar with wireshark or packet-sniffing. I just tried using wireshark and got information.
Below is one of information sent by the master-server to mw3,
I can clearly see the data sent by the master-server, that contains the data of a dedicated-server.
here's the packet info mw3 sent, before getting the server list,
Is there a way to create my own program to get the server list? I know C#, Java. but not an expert.
From where should I start?
I am looking into an application that needs to check that emails are being sent and received. Using asp.net to send emails is easy and not a problem, but putting in the processes to enable code to wait for and verify incoming emails is not supported.
So the best solution we have come up with is to use a COM connection to a Lotus mail client ( which is what the client use ) and process it in that way. But it struck me that this is a bit of a hack together.
So is there a way of using an SMTP server and asp.net code to look at emails and verify them coming into a specific email address?
SMTP is used for sending e-mail.
You need to hook into a POP3, IMAP or Exchange server to monitor for received messages.
Can you explain some more about the process that you're trying to automate? Are you trying to detect invalid e-mail addresses? If so, you can monitor a mailbox associated with the sending user for 'bounce' messages.
You can access a pop email direct with code using a library such as:
http://sourceforge.net/projects/hpop/
We did this in conjuction with email blasts so we could monitor the mailbox for bounce backs.
I'm trying to write a small program that I can talk to Omegle strangers via command line for school. However I'm having some issues, I'm sure I could solve the problem if I could view the headers sent however if you talk to a stranger on Omegle while Live HTTP Headers (or a similar plug-in or program) is running the headers don't show. Why is this? Are they not sending HTTP headers and using a different protocol instead?
I'm really lost with this, any ideas?
I had success in writing a command line Omegle chat client. However it is hardcoded in C for POSIX and curses.
I'm not sure what exactly your problem is, maybe it's just something with your method of reverse engineering Omegle's protocol. If you want to make a chat client, use a network packet analyzer such as Wireshark (or if you're on a POSIX system I recommend tcpdump), study exactly what data is sent and received during a chat session and have your program emulate what the default web client is doing. Another option is to de-compile/reverse engineer the default web client itself, which would be a more thorough method but more complicated.
how do i send an sms message from my web application using asp.net with c#.
You cant send messages directly through asp.net.
What you can do is send a web request or an email to an online SMS provider,
or to a local gateway (like a phone) and it can then pass the message onto
the GSM network.
Try Clickatell to get an idea of what I mean.
http://www.clickatell.com/brochure/coverage.php
If you don't want to pay, most cell phone carriers have an email that you can send messages to that will then forward them to the proper recipient. E.G. (10 digit phone number)#txt.att.net.
Bu of course this means that you will have to know the carrier, and many of them will not send outside the U.S. so that might not be the most attractive option.
You find a gateway (I use Clickatell, but there are others) and integrate with them. It's generally quite trivial (but of course, you pay to send the messages). They often have SMTP, HTTP and other types of APIs.
If an email sent on XXXX#YYYY.ZZZ, I want to put the contents of the email in a database, but how may realize it?
I use postfix to MTA.
If you definitely must, write a program to process the input (say /usr/bin/your_program) and place this in /etc/aliases:
intended-local-address: "|/usr/bin/your_program"
I have used fetchmail. If You configure it right, it can make a blocking call to a remote IMAP server (it will hang until a mail is received, how cool is that, no active polling!). It handles many kinds of mail protocols. It puts the email with it's headers into a program of Your choice (I used python and it's builtin mail parsing libary).
I must say I am proud of this solution, as it was relatively easy to setup and very effective on the end.
Few more things worth noting:
The connection times out or resets eventually (after several hours, sometimes several weeks). I suspect that the IMAP server was being restarted.
Don't try to parse the email by Yourself. I gave up after debugging the 5th way of sending email body and then used the existing lib.
After the poll finishes, do a sleep 5 or something before You poll again. My mail program once felt into an infinite loop with another one and the sleep 5 saved me.