Sign in to follow this  
Followers 0
Lossnemo

Please help

10 posts in this topic

#1 ·  Posted (edited)

Can you help?

What is the problem ...?

#NoTrayIcon

#include <ButtonConstants.au3>

#include <EditConstants.au3>

#include <GUIConstantsEx.au3>

#include <WindowsConstants.au3>

#include<IncluderYahoo.au3>

$Form1 = GUICreate("Form1", 168, 361, 381, 417)

$Input1 = GUICtrlCreateInput("smtp.mail.yahoo.com", 8, 8, 153, 21)

$Input2 = GUICtrlCreateInput("From Name", 8, 32, 153, 21)

$Input3 = GUICtrlCreateInput("from@yahoo.com", 8, 56, 153, 21)

$Input4 = GUICtrlCreateInput("to@yahoo.com", 8, 80, 153, 21)

$Input5 = GUICtrlCreateInput("Userinfo", 8, 104, 153, 21)

$Input6 = GUICtrlCreateInput("Body", 8, 128, 153, 21)

$Input7 = GUICtrlCreateInput("", 8, 152, 153, 21)

$Input8 = GUICtrlCreateInput("", 8, 176, 153, 21)

$Input9 = GUICtrlCreateInput("", 8, 200, 153, 21)

$Input10 = GUICtrlCreateInput("to@yahoo.com", 8, 224, 153, 21)

$Input11 = GUICtrlCreateInput("parola", 8, 248, 153, 21)

$Input12 = GUICtrlCreateInput("25", 8, 272, 153, 21)

$Input13 = GUICtrlCreateInput("0", 8, 296, 153, 21)

$Button1 = GUICtrlCreateButton("Start", 8, 328, 75, 25, $WS_GROUP)

GUISetState(@SW_SHOW)

$s_SmtpServer=GUICtrlRead($Input1)

$s_FromName=GUICtrlRead($Input2)

$s_FromAddress=GUICtrlRead($Input3)

$s_ToAddress=GUICtrlRead($Input4)

$s_Subject=GUICtrlRead($Input5)

$as_Body=GUICtrlRead($Input6)

$s_AttachFiles=GUICtrlRead($Input7)

$s_CcAddress=GUICtrlRead($Input8)

$s_BccAddress=GUICtrlRead($Input9)

$s_Username=GUICtrlRead($Input10)

$s_Password=GUICtrlRead($Input11)

$IPPort=GUICtrlRead($Input12)

$ssl=GUICtrlRead($Input13)

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $GUI_EVENT_CLOSE

Exit

Case $Button1

_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)

MsgBox(0,"","Finish")

EndSwitch

WEnd

IncluderYahoo.rar

Edited by Lossnemo

Share this post


Link to post
Share on other sites



Yes we're willing to help, but the problem is with you!

Are you going to post a Ghost image of your Win 7 partition on a Windows help forum and say: "fix it for me, doesn't work!"

Please, at least make a decent effort to reduce your problematic script to a minimum, post it within [autoit][/autoit] markups and then explain what you get and what you're expecting!


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

problem is simply not able to send mail from that GUI.

guictrlread() command function stops script...

Please look script.

thanks

Share this post


Link to post
Share on other sites

### COM Error ! Number: 80020009 ScriptLine: 51 Description:The transport failed to connect to the server.

Is problem!

Share this post


Link to post
Share on other sites

Youl probably need to GUICtrlRead when you press the button, not when you create gui.


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

not working!:mellow:(

#NoTrayIcon

#include <ButtonConstants.au3>

#include <EditConstants.au3>

#include <GUIConstantsEx.au3>

#include <WindowsConstants.au3>

#include<IncluderYahoo.au3>

$Form1 = GUICreate("Form1", 168, 361, 381, 417)

$s_SmtpServer = GUICtrlCreateInput("smtp.mail.yahoo.com", 8, 8, 153, 21)

$s_FromName = GUICtrlCreateInput("From Name", 8, 32, 153, 21)

$s_FromAddress = GUICtrlCreateInput("from@yahoo.com", 8, 56, 153, 21)

$s_ToAddress = GUICtrlCreateInput("to@yahoo.com", 8, 80, 153, 21)

$s_Subject = GUICtrlCreateInput("Userinfo", 8, 104, 153, 21)

$as_Body = GUICtrlCreateInput("Body", 8, 128, 153, 21)

$s_AttachFiles = GUICtrlCreateInput("", 8, 152, 153, 21)

$s_CcAddress = GUICtrlCreateInput("", 8, 176, 153, 21)

$s_BccAddress = GUICtrlCreateInput("", 8, 200, 153, 21)

$s_Username = GUICtrlCreateInput("to@yahoo.com", 8, 224, 153, 21)

$s_Password = GUICtrlCreateInput("password", 8, 248, 153, 21)

$IPPort = GUICtrlCreateInput("25", 8, 272, 153, 21)

$ssl = GUICtrlCreateInput("0", 8, 296, 153, 21)

$Button1 = GUICtrlCreateButton("Start", 8, 328, 75, 25, $WS_GROUP)

GUISetState(@SW_SHOW)

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $GUI_EVENT_CLOSE

Exit

Case $Button1

_INetSmtpMailCom(GUICtrlRead($s_SmtpServer), GUICtrlRead($s_FromName), GUICtrlRead($s_FromAddress), GUICtrlRead($s_ToAddress), GUICtrlRead($s_Subject), GUICtrlRead($as_Body), GUICtrlRead($s_AttachFiles), GUICtrlRead($s_CcAddress), GUICtrlRead($s_BccAddress), GUICtrlRead($s_Username), GUICtrlRead($s_Password), GUICtrlRead($IPPort), GUICtrlRead($ssl))

EndSwitch

WEnd

IncluderYahoo.au3

Edited by Lossnemo

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

It works!

#include<IncluderYahoo.au3>

$s_SmtpServer = "smtp.mail.yahoo.com"

$s_FromName = "From Name"

$s_FromAddress = "from@yahoo.com"

$s_ToAddress = "to@yahoo.com"

$s_Subject = "Userinfo"

$as_Body = "Body"

$s_AttachFiles = ""

$s_CcAddress = ""

$s_BccAddress = ""

$s_Username = "from@yahoo.com"

$s_Password = "password"

$IPPort = 25

$ssl = 0

_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)

IncluderYahoo.au3

Edited by Lossnemo

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

 I've tried with GMail account (port 465, ssl 1) and it works, but not with Yahoo. And seems this is not happening only to me (see this post).

Last year I've tried to setup Eudora with my yahoo account and, after some constant failures, I've found why: I wasn't using Yahoo Mail Plus (the payed version). 

So, if it's working for you, congrats! But I doubt that! Check your yahoo account -> Mail Options -> POP and FORWARDING and tell me what settings do you have (port number and server)   :mellow:

Edited by taietel

Share this post


Link to post
Share on other sites

First is diffrent from the second

First geave

### COM Error ! Number: 80020009 ScriptLine: 51 Description:The transport failed to connect to the server.

And the second that work for you (dont have acc to test it on)

### COM Error ! Number: 80020009 ScriptLine: 51 Description:The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available

The diffrance is $IPPort and $ssl in numeric and text

so this shud work for that two parametars

Number(GUICtrlRead($IPPort)), Number(GUICtrlRead($ssl))

Or reedit include file to translate recived data to numeric if your gona use this alot (that is if its working for you in this way)


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

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