Sign in to follow this  
Followers 0
Fewmitz

Need help Emailing with AutoIt

8 posts in this topic

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.

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by Fewmitz

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 :D

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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 :D

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.

Share this post


Link to post
Share on other sites

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=62156

Just the fact that you have a "skelleton" script that does that makes me suspicious about what your true intentions are..

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0