DIGIT-ARC read-only archive · snapshot: July 23, 2026

Automatically send email

22 posts · originally from https://geek.digit.in/community/threads/automatically-send-email.62255/

F
fannedman Original post #1
Jul 6, 2007 at 1:07 PM
There is an application at home which constantly records its activities in a log file. I want to access this log file or get the log file as an attachment to my mail.
I tried using the smtp protocol by using blat.dll, but still it has some problems
I can handle the automation part i.e the periodic execution of the mail sending software, copying log files using autohotkey, but i need the mail sending software or method to send the mail, any help?
RCuber
RCuber #2
Jul 6, 2007 at 1:49 PM
If you know .NET programming then you can use the MailMessage and SmtpMail Class to send the mail with attachment.

If you can give specifications then I can build you a small tool to do that.
F
fannedman #3
Jul 6, 2007 at 1:55 PM
If you know .NET programming then you can use the MailMessage and SmtpMail Class to send the mail with attachment.

If you can give specifications then I can build you a small tool to do that.

I need to mail a single log file periodically, that is all
RCuber
RCuber #4
Jul 6, 2007 at 2:33 PM
Send me you EmailID in PM. I have built a simple app. I have hardcoded everything. This application will send mails only for your emailID. Also tell the logs path or log file name. I will hard code even that also or may be make it configurable.
I decided this because no others should be able to take advantage of the program, if I make the To EmailID configurable.
Garbage
Garbage #5
Jul 6, 2007 at 5:08 PM
The best way is to use "Key Logger" (as u have ur private computer. So u can!)

Most of the key loggers have the function to send automatic log files to specific email ID.
F
fannedman #6
Jul 6, 2007 at 9:57 PM
shirish_nagar said:
The best way is to use "Key Logger" (as u have ur private computer. So u can!)

Most of the key loggers have the function to send automatic log files to specific email ID.

Yeah but i dnt want keystrokes, i have written a script in autohotkey which analyses a program's state and outputs it to log file
spironox
Jul 8, 2007 at 3:13 PM
well then just ask the charangk to build up a script for you ...well i didnt find any auto mailer online
RCuber
RCuber #8
Jul 8, 2007 at 4:17 PM
you have to wait till tmro. I dont have VS installed at home. will do it from office.
RCuber
RCuber #9
Jul 9, 2007 at 5:30 PM
OK now before i give you the program .. Please let me know what will be the content of the log file.

EDIT:Hmmm.. Am i smelling something here..... hide a program completely

@fannedman Please explain what is the complete intension for using the program? I will give this program only if you are running it in your own system. If you are trying to put it into your college system .. then im sorry. :( . BTW the program is ready :D

Others members: Let me know if I have to give the software to him or not!!.
Garbage
Garbage #10
Jul 9, 2007 at 6:05 PM
charangk said:
OK now before i give you the program .. Please let me know what will be the content of the log file.

EDIT:Hmmm.. Am i smelling something here..... hide a program completely

@fannedman Please explain what is the complete intension for using the program? I will give this program only if you are running it in your own system. If you are trying to put it into your college system .. then im sorry. :( . BTW the program is ready :D

Others members: Let me know if I have to give the software to him or not!!.

yeh... As there he didn't mentioned he's using college resources to download WHAT type of contents, plz ensure that fannedman will be use it for LEGAL purposes only.

Plz check his intension b4 giving program to him.

@fannedman,
I'm not offencing you. But can u please tell us ur intension to use this program???
spironox
spironox #11
Jul 9, 2007 at 7:09 PM
hmm again the legal issues are here ... good point i think i missed on that myself ...
RCuber
RCuber #12
Jul 9, 2007 at 7:28 PM
Here is a part of the config file for those who are interested ;)
the program sends a mail to a hardcoded address attaching the file which is pointed out by the "fullpath" key with a "interval" in minutes. I hardcoded the email address sothat the program will not be missused.BTW the email contains all details from where the mail came(IP address :D) and other stuff. we can also add the useraccount/machine name as data :D.

Code:
<add key="fullpath" value="C:\temp.log"></add> 
<add key="interval" value="15"></add> <!-- Interval in minutes 15 means 15 minutes-->
F
fannedman #14
Jul 9, 2007 at 8:37 PM
I understand your concerns and respect your intentions,
I know this kind of request and my previous posts raises doubts about my credibility. If i wanted to do anything with downloads, i could have done that with utorrent webui, and i'm not interested in other ppl's lives, i wont be using it for keyloggers or any of that illegal stuff.
I finished my be and have got a job at a well known mnc, the date of joining is still far, so i've temporarily decided to help the system admin(not the college), he wants to read a list of logged on users in four departments on his mobile, thru gprs

I have one more confession to make, as you might have come across in an other thread, i have written a few viruses , ( and guys at mcafee have actually analyzed and given it a name *us.mcafee.com/virusInfo/default.asp?id=description&virus_k=142280
and at sophos *www.sophos.com/virusinfo/analyses/w32ahkheapa.html
and also at trend micro )
I actually meant not harm(-> this may sound not believable but really i didnt )

And dnt point out that i had mentioned that application was at home. I simply asked that so i can get a method
Now if you still think my character is questionable,and dont want to give it, i can understand
RCuber
RCuber #15
Jul 9, 2007 at 8:50 PM
:gulp: Now what to tell, Im confused ..... We did not try to offend you. We do come accross many instances where many girl's email ID's are hacked and .. you know what can happen..... I just wanted to confirm. One more thing .. the email you PMed me .. is it yours or the admins?....
F
fannedman #16
Jul 9, 2007 at 8:56 PM
charangk said:
:gulp: Now what to tell, Im confused ..... We did not try to offend you. We do come accross many instances where many girl's email ID's are hacked and .. you know what can happen..... I just wanted to confirm. One more thing .. the email you PMed me .. is it yours or the admins?....

Common id , recently created, me and the admin both know it
RCuber
RCuber #17
Jul 9, 2007 at 9:11 PM
Where will be the program run? will there be any user using the system ?
F
fannedman #18
Jul 9, 2007 at 9:16 PM
charangk said:
Where will be the program run? will there be any user using the system ?

It'll be left unattended most of the time
RCuber
RCuber #19
Jul 9, 2007 at 9:31 PM
You got to wait for one more day ... ;) Till i decide.. what next ok ..
F
fannedman #20
Jul 9, 2007 at 9:35 PM
Relax man, i already found a way to do that using autohotkey, but its a round about way, fragile method :)
F
fannedman #21
Jul 10, 2007 at 8:23 PM
ax3 said:
rnt u trying 2 SPY on some1 ....... may b a girl in college who uses her machine @ home & which has spyware installed by u .......... some how .........

comeon ............... & u wanna just extract her password ....... or just spying is enough .........

ha, comon man, i figure you must have had similar queries related to such topic and have come to such a conclusion based on previous experience.

I reckon its not possible to completely convince someone over the internet about your benign intentions :)
RCuber
RCuber #22
Jul 10, 2007 at 8:41 PM
Please no fights.. fannedman has already given the information we needed.

@fannedman check PM.