Fewmitz Posted January 19, 2008 Share Posted January 19, 2008 So I need to figure out how to Email in AutoIt. And I searched, and some of the stuff seemed to be GUI based, which I don't want, and some of the stuff involved multiple files, which I also don't want. I just want a couple lines of code that I can use to set the body and message, then email it to one of my friends. So any help is appreciated. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 19, 2008 Developers Share Posted January 19, 2008 _INetSmtpMail() or _INetSmtpMailCom() udfs should do the job. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
volund Posted January 19, 2008 Share Posted January 19, 2008 So I need to figure out how to Email in AutoIt.And I searched, and some of the stuff seemed to be GUI based, which I don't want, and some of the stuff involved multiple files, which I also don't want. I just want a couple lines of code that I can use to set the body and message, then email it to one of my friends.So any help is appreciated.you could set up a script that would open a I-net browser, go to a email site (yahoo.com as an example) log into a acct, type in the adress, title, and body Link to comment Share on other sites More sharing options...
Fewmitz Posted January 19, 2008 Author Share Posted January 19, 2008 (edited) _INetSmtpMail() or _INetSmtpMailCom() udfs should do the job. Yeah, I just found a link to your SMtp Mailer. But a couple questions $s_SmtpServer = "MailServer" Is that the smtp.gmail.com (or similar) part? And is there a list of these somewhere? Because if possible, I'd like to use Yahoo instead of Gmail, if for nothing else than I'm lazy and don't want to make a gmail account. EDIT: I put all the code in, and it all seems right, but when I hit this line: $objEmail.AddAttachment ($S_Files2Attach[$x]) I get an error saying "The requested action with this object has failed." Anything any of you can think of off the top of your head as to why this would happen? Edited January 19, 2008 by Fewmitz Link to comment Share on other sites More sharing options...
Developers Jos Posted January 20, 2008 Developers Share Posted January 20, 2008 (edited) Yeah, I just found a link to your SMtp Mailer. But a couple questions $s_SmtpServer = "MailServer" Is that the smtp.gmail.com (or similar) part? And is there a list of these somewhere? Because if possible, I'd like to use Yahoo instead of Gmail, if for nothing else than I'm lazy and don't want to make a gmail account. EDIT: I put all the code in, and it all seems right, but when I hit this line: $objEmail.AddAttachment ($S_Files2Attach[$x]) I get an error saying "The requested action with this object has failed." Anything any of you can think of off the top of your head as to why this would happen?What info is displayed by the Comm error handler ? Maybe show the code you use to call the UDF would help to see whats wrong Edited January 20, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
martin Posted January 20, 2008 Share Posted January 20, 2008 What info is displayed by the Comm error handler ?Maybe show the could you use to call the UDF would help to see whats wrong Maybe showing the code..?? Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 20, 2008 Developers Share Posted January 20, 2008 that too SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
FreeFry Posted January 24, 2008 Share Posted January 24, 2008 His last thread had code in it that would get the passwords from internet explorer, and mail clients installed on the computer, and try to email them back to himself....Thread: http://www.autoitscript.com/forum/index.php?showtopic=62156Just the fact that you have a "skelleton" script that does that makes me suspicious about what your true intentions are.. 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