Jump to content

Recommended Posts

Posted (edited)

#include <IE.au3>


Local   $sUsername, $sPassword, $oform, $ologin, $opassword, $oIE    
$sUsername = "autoit"
$sPassword = "autoit3"

$oIE = _IECreate("http://mail.rediff.com/cgi-bin/login.cgi")
 sleep(200)
 _IEAction ($oIE, "stop")
 
; get pointers to the login form and username and password fields
$oform = _IEFormGetObjByName($oIE, "loginform")
$ologin = _IEFormElementGetObjByName($oform, "login")
$opassword = _IEFormElementGetObjByName($oform, "passwd")
 
; Set field values and submit the form
_IEFormElementSetValue($ologin, $sUsername)
_IEFormElementSetValue($opassword, $sPassword)
_IEFormSubmit($oform, 0)

; I want to click on the Write Mail and send mail with attachment.

; No matter what i tried , I could not get it to work

Exit

Hi,

I am trying to log in to an email ID and send an email with attachment.

I have not been able to go further than just logging in to my email ID.

Please help me.

I have provided email username and password, which I just created.

Regards,

Ajit

Note: I am not sure if automating write mail is against forum rules.

Edited by ajit

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
×
×
  • Create New...