Coolw Posted July 23, 2008 Share Posted July 23, 2008 I would like my program to send an email to a certain address (myphone@cingularme.com) to text my phone. I have checked and emailing does send a text message. One problem I have is making my script log in to send the message. I use MSN hotmail. (hotmail.com) will work fine. (or whatever I can use to log in to send messages) I have searched the forums, but I don't know hotmail's SMTP (What is that?) server. Any help is appreciated! muttley My ProgramsMy WIP'sSteam Server Restarter Link to comment Share on other sites More sharing options...
Coolw Posted July 24, 2008 Author Share Posted July 24, 2008 (edited) Any help? :/ Please? And yes, I have tried Master SMS, it doesn't work. Edited July 24, 2008 by Coolw My ProgramsMy WIP'sSteam Server Restarter Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted July 24, 2008 Share Posted July 24, 2008 Here you have .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
BrettF Posted July 24, 2008 Share Posted July 24, 2008 #547253muttleyJust get a GMAIL account.... Unless you have the subscription hotmail or something.... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Coolw Posted July 24, 2008 Author Share Posted July 24, 2008 #547253muttleyJust get a GMAIL account.... Unless you have the subscription hotmail or something....THANK YOU SO MUCH!!I signed up for free account and it worked now how do I incorporate it into my script? My ProgramsMy WIP'sSteam Server Restarter Link to comment Share on other sites More sharing options...
BrettF Posted July 24, 2008 Share Posted July 24, 2008 THANK YOU SO MUCH!!I signed up for free account and it worked muttleynow how do I incorporate it into my script?Cool, that example in there, shows you all what you need. Not sure where you want to implement it, or how for that matter, so your code is necessary. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Coolw Posted July 24, 2008 Author Share Posted July 24, 2008 (edited) Cool, that example in there, shows you all what you need. Not sure where you want to implement it, or how for that matter, so your code is necessary.Yeah, I can show you the code. It's not nearly done, but I'll try my best to explain.CODE#include <GUIConstants.au3>;--------------------------------------------------------------------------------HotKeySet( "{ESC}", "_Exit");--------------------------------------------------------------------------------$State = "Stopped" ;Whether or not the program is monitoring the server$msg = "";--------------------------------------------------------------------------------GUICreate( "Server Watrcher - By David L.", 205, 110) ;Created the GUI$Monitor = Guictrlcreatebutton( "Start Monitoring", 10, 10)$Stop = GUICtrlCreateButton( "Stop Monitoring", 110, 10)$Label = GUICtrlCreateLabel( $State, 10, 50)$SMS = GUICtrlCreateCheckbox( "Send Text Message with",10, 70)$SMS2 = GUICtrlCreateLabel("server change in status?",27, 90)Guisetstate() ;Set the GUI information;--------------------------------------------------------------------------------While $msg <> $GUI_EVENT_CLOSE ;Test to see if they tried to hit the X $msg = GUIGetMsg() Select Case $msg = $Monitor ;They hit the monitor button $State = "Monitoring" GUICtrlSetData( $Label, $State) Case $msg = $Stop ;They want to stop monitoring GUICtrlSetData( $Label, $State) $State = "Stopped" Case $msg = $GUI_EVENT_CLOSE ;Exited using X Exit EndSelect If $State = "Monitoring" Then ;Check to see if program should monitor GUICtrlSetState($Monitor, $GUI_DISABLE) ;Disable the monitor button GUICtrlSetData( $Label, $State) ;Change the label telling them what the program is doing While $State = "Monitoring" ;A loop to wait until they Stop or Exit ;If WinExists( "Application Error") And Sleep(1000) ;Check every Minute Then ;Check to see if it encountered an error ;_RestartServer();lets restart the server ;$inputsms=GUICtrlRead($SMS) ;If $inputsms = $GUI_CHECKED Then ;_SendSMS ;If enabled, send email to users phone to tell them the status ;EndIf $msg = GUIGetMsg() Select Case $msg = $Stop ;Hit stop $State = "Stopped" GUICtrlSetData( $Label, $State) Case $msg = $GUI_EVENT_CLOSE ;Exited Exit EndSelect WEnd GUICtrlSetState($Monitor, $GUI_ENABLE) EndIfWEnd;--------------------------------------------------------------------------------Func _Exit() ExitEndFunc Edited July 24, 2008 by Coolw My ProgramsMy WIP'sSteam Server Restarter Link to comment Share on other sites More sharing options...
BrettF Posted July 26, 2008 Share Posted July 26, 2008 Try something like: If $inputsms = $GUI_CHECKED Then $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 & " Rc:" & $rc) EndIf EndIf Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now