Jump to content
Sign in to follow this  
zutto

e-mail sending with autoit?

Recommended Posts

zutto

is it possible to send email with autoit? i'm thinking of script that detects the status of my b*t and then send it to me in email.. is that possible?

if it is can you write me some example? i didnt find anything by searching :<

Share this post


Link to post
Share on other sites
SmOke_N

is it possible to send email with autoit? i'm thinking of script that detects the status of my b*t and then send it to me in email.. is that possible?

if it is can you write me some example? i didnt find anything by searching :<

I quick look in the help file search tab for email would answer that question for you I'd think.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
yucatan

I quick look in the help file search tab for email would answer that question for you I'd think.

hi i have already used that it works fine only one problem if you wanne sent mail you need a smtp server and when u run it on someone else his computer the smtp server is different is you wanne fix that simpel use gmail make a gmail adres and use your email adres as smtp server autoit logges on your acount ant sent the mail it works fine(A)

Share this post


Link to post
Share on other sites
GeoA

Try this: --My Outlook has a problem with it and bring up a message window asking me if I want to let a program send an email. I have to then click "Yes" for the message to be sent. I'm not sure yet how to turn this behavior off!

_Email("faginavarts@gmail.com","Test message", "Nothing to see here, move along")

Func _Email ($to, $subject, $message)

$oOutlook = ObjCreate("Outlook.Application")

; Send mail

$oEmail = $oOutlook.CreateItem(0)

With $oEmail

.To = $to

.Subject = $subject

.Body = $message

.Send

EndWith

$oOutlook = 0

EndFunc

Share this post


Link to post
Share on other sites
SmOke_N

Try this: --My Outlook has a problem with it and bring up a message window asking me if I want to let a program send an email. I have to then click "Yes" for the message to be sent. I'm not sure yet how to turn this behavior off!

_Email("faginavarts@gmail.com","Test message", "Nothing to see here, move along")

Func _Email ($to, $subject, $message)

$oOutlook = ObjCreate("Outlook.Application")

; Send mail

$oEmail = $oOutlook.CreateItem(0)

With $oEmail

.To = $to

.Subject = $subject

.Body = $message

.Send

EndWith

$oOutlook = 0

EndFunc

You're assuming every pc this is ran on has Outlook?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
GeoA

You're assuming every pc this is ran on has Outlook?

Of course!

At least a provided an example which is what was asked for! It's the best I have and can't offer anything else.

Maybe instead of taking the time to be a condsending dickhead, you could have posted an example yourself. That would have done much more to make this a good thread, no?

Edited by GeoA

Share this post


Link to post
Share on other sites
SmOke_N

Of course!

At least a provided an example which is what was asked for! It's the best I have and can't offer anything else.

Maybe instead of taking the time to be a condsending dickhead, you could have posted an example yourself. That would have done much more to make this a good thread, no?

Guess you're not enjoying your stay here on the AutoIt forums?

I did post an example ... Of how to use the manual (and find one right in front of you after doing so).

If you consider educating someone on how to utilize the tools that are already provided for them condescending, than you're a fool.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
GeoA

Guess you're not enjoying your stay here on the AutoIt forums?

I did post an example ... Of how to use the manual (and find one right in front of you after doing so).

If you consider educating someone on how to utilize the tools that are already provided for them condescending, than you're a fool.

You are right. But considering how well I spell, I prefer "retard" to "fool".

Share this post


Link to post
Share on other sites
yucatan

You are right. But considering how well I spell, I prefer "retard" to "fool".

look in help file for _INetSmtpMail

Share this post


Link to post
Share on other sites
zutto

look in help file for _INetSmtpMail

that was one most helpful posts so far :) now need to know whats gmail's smtp address?

Share this post


Link to post
Share on other sites
Andreik

thanks.. but first i got error 50 and now error 3 ;/

Change the SMTP address.

@ERROR = 1 - Invalid Parameters

@ERROR = 2 - Unable to start TCP

@ERROR = 3 - Unable to resolve IP

@ERROR = 4 - Unable to create socket

@ERROR = 5x - Cannot open SMTP session. x indicates the index number of last command issued to the SMTP server.

@ERROR = 50x - Cannot send body. x indicates the line number of $as_Body (first line is 0).

@ERROR = 5000 - Cannot close SMTP session

Edited by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites
SmOke_N

that was one most helpful posts so far :) now need to know whats gmail's smtp address?

Had you done what I said in the 2nd post, that would have been the first function you saw.

The point I was making myself was:

1. Search the help file using the search tab and keywords (in this case email)

2. If that fails, use the Advanced search tab in the forum:

  • Type in search criteria
  • Click the forum you want to search (I would start with Examples first, there are usually already made udfs that have examples)
  • Click the "Title" radio/checkbox (always search for titles first, it will narrow dow your search)

Then if all else fails, start a topic.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
GeoA

smtp.gmail.com according to lifehacker -> http://lifehacker.com/software/email-apps/...rver-111166.php

thanks.. but first i got error 50 and now error 3 ;/

Yep! I get error 4 when I try. smtp.gmail.com requires authorization! I think that's the problem. So, you would need to find a smtp server that doesn't require authorization--don't know if that will be easy.

Edited by GeoA

Share this post


Link to post
Share on other sites
zutto

Yep! smtp.gmail.com requires authorization! I think that's the problem. So, you would need to find a smtp server that doesn't require authorization--don't know if that will be easy.

do you know any then :);)

Share this post


Link to post
Share on other sites
Andreik

Or try to send mail using yahoo: mx1.mail.yahoo.com


When the words fail... music speaks

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.