Jump to content

sovietunion

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by sovietunion

  1. thank you very much! it really works!
  2. hello i want to set value to the input box(<input type="Text" id="Text2" name="Text2" value="1"/>)using $oForm = _IEFormGetObjByName ($oIE, "fomname") $oText = _IEFormElementGetObjByName ($oForm, "Text2") _IEFormElementSetValue ($oText, "Hey! This works!") and what i want more is to get form name, problem is that page is oddly writed and there is no form on page. is there any way to do?
  3. it's ok to send gmail without attachfiles.it returns "error code 2" when i set $s_AttachFiles,eg:$s_AttachFiles = "D:\glut3.7.zip".why? thx for reading! the udf SmtpMailer.au3 is attached。 #include <SmtpMailer.au3> $s_SmtpServer = "smtp.gmail.com" ; smtp服务器 address for the smtp-server to use - REQUIRED $s_FromName = "myname" ; 邮件发送人 name from who the email was sent $s_FromAddress = "myusrnme@gmail.com" ; 邮件发送者地址address from where the mail should come $s_ToAddress = "myusrnme@gmail.com" ; 邮件发送给谁 destination address of the email - REQUIRED $s_Subject = "autoittest" ;邮件标题 subject from the email - can be anything you want it to be $as_Body = "autoittest" & @CRLF & _ "http://bbs.yidabu.com/forum-2-1.html" ; 邮件正文the messagebody from the mail - can be left blank but then you get a blank mail $s_AttachFiles = "" ; 附件地址 the file you want to attach- leave blank if not needed $s_CcAddress = "" ; address for cc - leave blank if not needed $s_BccAddress = "" ; address for bcc - leave blank if not needed $s_Username = "myusrnme" ; 用户名 username for the account used from where the mail gets sent - REQUIRED $s_Password = "mypass" ; 密码password for the account used from where the mail gets sent - REQUIRED $IPPort=465 ; yidabu.com提示:Gmail使用的发送端口 $ssl=1 ; yidabu.com提示:Gmail要启用安全连接 Global $oMyRet[2] Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc") $rc = _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body, $s_AttachFiles, $s_CcAddress, $s_BccAddress, $s_Username, $s_Password, $IPPort, $ssl) If @error Then MsgBox(0, "Error sending message", "Error code:" & @error & " Description:" & $rc) EndIf SmtpMailer.au3
  4. good job! thx!
×
×
  • Create New...