Possessed Posted September 3, 2006 Share Posted September 3, 2006 Sup all, Ok I am making a Emailer that sends me info from the persons computer its run on. I am making it for some of my friends that dont know what they are doing so I am help them fix problems they have but. The problem I am having is I can make the info file and get the email sent func to work but i cant get the info from the file to the email. So any help would be awsome or ideas thanks. Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted September 4, 2006 Share Posted September 4, 2006 ummm sounds like a virus to me i wont touch it :-/ why cant they jsut email the problems they have to you themselves.... Link to comment Share on other sites More sharing options...
zcoacoaz Posted September 4, 2006 Share Posted September 4, 2006 Since your writing a virus figure it out on your own. Everyone knows you are writing a virus and your not going to get any help. [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
Possessed Posted September 4, 2006 Author Share Posted September 4, 2006 Since your writing a virus figure it out on your own. Everyone knows you are writing a virus and your not going to get any help.I am not ok my friend has problems with connections and he lives in the US i live in canada hes not good with computers so i just want to make a little program that will get the right info from him so i can help him thats it the program askes him to put in a email and everything and along with that it tells him its running on the task bar why would i be making a "virus" jess if it going to be that hard to get help then ill take it some where els. being looked at as i hacker when ill i am trying to do is help a friend out.ps why the hell would i be asking for help if i am making a virus? seems kind of dumb to me Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted September 4, 2006 Share Posted September 4, 2006 check the scripts and scrapts there are acouple of mail funcitons Link to comment Share on other sites More sharing options...
Possessed Posted September 4, 2006 Author Share Posted September 4, 2006 this is what i did and i did get a email to come back as a test but i cant seem to get the info file to be read to the email func some how. (Ex: $as_Body[0] = $file ) i know this is wrong but i dont know how to take and read the info file and put into the body of the email if you know what i am saying? Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted September 4, 2006 Share Posted September 4, 2006 explain in english what you want your going from reading a file, to sending a file , to just emailing someone, write in clear english what you want. Link to comment Share on other sites More sharing options...
Possessed Posted September 4, 2006 Author Share Posted September 4, 2006 expandcollapse popup#include <INet.au3> #include <GUIConstants.au3> GUICreate("my gui") ; will create a dialog box that when displayed is centered GUISetState (@SW_SHOW) ;--------------------------------------------------------- Func Start() $value = InputBox("Enter Email", "Enter your Email") For $i = 1 To $value next call("Wfile") Func Wfile() $file = FileOpen("C:\info.txt", 1) ;Check if file opened for writing OK If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf FileWriteLine($file, @IPAddress1) ;for an Ex FileClose($file) EndFunc $s_SmtpServer = "mail.yahoomx4.com" ;Edited out $s_FromName = "Computer" $s_FromAddress = $value ;wont work $s_ToAddress = "my email" $s_Subject = "help file" Dim $as_Body[2] $as_Body[0] = $file $as_Body[1] = "" $Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body) this is what i got its really bad i didnt want to show it because i am such a noob anyways i want it to send the info file info to an email that the user puts in. be i cant get it to read the info file to the body of the email. get it?? Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted September 4, 2006 Share Posted September 4, 2006 (edited) 1. your only sending text why attach a file? 2. you had ALOT of stuff you didnt need. 3. IDK anything about SMTP so ill just go with what you had #include <INet.au3> $file"C:\info.txt" FileWriteLine($file, @IPAddress1) $s_SmtpServer = "mail.yahoomx4.com" $s_FromName = "Computer" $s_FromAddress = InputBox("Enter Email", "Enter your Email") $s_ToAddress = "my email" $s_Subject = "help file" $as_Body = FileRead("C:\info.txt") $Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body) Edited September 4, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
Possessed Posted September 4, 2006 Author Share Posted September 4, 2006 my god is it really that easy? Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted September 4, 2006 Share Posted September 4, 2006 ooops forgot an input for the email to send to, but #include <INet.au3> $file"C:\info.txt" FileWriteLine($file, @IPAddress1) $s_SmtpServer = "mail.yahoomx4.com" $s_FromName = "Computer" $s_FromAddress = InputBox("Enter Email", "Enter your Email") $s_ToAddress = InputBox("Enter Email","Enter Email To Send To") $s_Subject = "help file" $as_Body = FileRead("C:\info.txt") $Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body) Link to comment Share on other sites More sharing options...
Possessed Posted September 4, 2006 Author Share Posted September 4, 2006 Thank you so much bro lots of help i never new it was this simple learn a new thing each day. Link to comment Share on other sites More sharing options...
CWorks Posted September 4, 2006 Share Posted September 4, 2006 (edited) $file = FileOpen("C:\info.txt", 1) hey i got mail it was empty though the rest was good just not the body Edited September 4, 2006 by CWorks Link to comment Share on other sites More sharing options...
Lakes Posted September 4, 2006 Share Posted September 4, 2006 $file = FileOpen("C:\info.txt", 1)hey i got mail it was empty thoughthe rest was good just not the bodyWhy not use the Remote Assistance thingy built into Xp?? 2015 - Still no flying cars, instead blankets with sleeves. Link to comment Share on other sites More sharing options...
CWorks Posted September 4, 2006 Share Posted September 4, 2006 (edited) hey i'm not the one who needs it so don't quote me I use ultravnc I'm just having fun emailing myself actually the best thing is UltraVNC SC because you put your ip in and it connects to you so even stupid people can can just run it and then your connected Edited September 4, 2006 by CWorks Link to comment Share on other sites More sharing options...
Lakes Posted September 4, 2006 Share Posted September 4, 2006 hey i'm not the one who needs it so don't quote meI use ultravncI'm just having fun emailing myself actually the best thing is UltraVNC SC because you put your ip in and it connects to youso even stupid people can can just run it and then your connectedSorry, did`nt mean to quote you in my reply... 2015 - Still no flying cars, instead blankets with sleeves. Link to comment Share on other sites More sharing options...
CWorks Posted September 4, 2006 Share Posted September 4, 2006 (edited) Dim $as_Body[1] $as_Body[0] = FileRead("C:\info.txt") had to close the file first before FileRead or else never got last line written FileWriteLine($file, @IPAddress1) FileClose($file) Edited September 4, 2006 by CWorks Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted September 4, 2006 Share Posted September 4, 2006 (edited) what is up with everyone making variables arrays now days? Edited September 4, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now