Jump to content
Sign in to follow this  

Write and Send mail

Recommended Posts

#include <IE.au3>

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

$oIE = _IECreate("http://mail.rediff.com/cgi-bin/login.cgi")
 _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



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.



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

Edited by ajit

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...