Tyranlol 0 Posted August 14, 2010 Hello, as i explained in a previous post i needed a way to easily and quietly send a daily log file and i got recommended to use _INetSmtpMail by Jos. Now i've looked through http://www.autoitscript.com/forum/index.php?showtopic=23860&hl=https++email and still can't get it to work, it keeps saying "The Transport failed to connect to the server" i've tried plus.smtp.mail.yahoo.com for yahoo smtp.live.com for hotmail smtp.gmail.com for gmail and none of them works any help would be appreciated! [u]Only by Attempting the Impossible You Can Earn the Remarkable[/u] Share this post Link to post Share on other sites
Adrive 0 Posted August 14, 2010 please show us all the settings you used in variables of UDF. Share this post Link to post Share on other sites
trancexx 1,013 Posted August 14, 2010 You need a domain MX record. I hope you comprehend. ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
TinyHacker 0 Posted August 14, 2010 Please help him.... i need help with that tooo Share this post Link to post Share on other sites
Tyranlol 0 Posted August 14, 2010 (edited) Thanks for the replies please show us all the settings you used in variables of UDF. Here ya go $SmtpServer = "plus.smtp.mail.yahoo.com" $FromName = "Tyranlol" $FromAddress = "MyEmail@yahoo.com" $ToAddress = "MyOtherEmail@yahoo.com" $Subject = "Hai Forum" $Body = "" $AttachFiles = "" $CcAddress = "CCadress1@test.com" $BccAddress = "BCCadress1@test.com" $Importance = "Normal" $Username = "MyEmail@yahoo.com" $Password = "MyPassword" $IPPort = 465 $ssl = 1 You need a domain MX record. I hope you comprehend. Why do i need that? Edited August 14, 2010 by Tyranlol [u]Only by Attempting the Impossible You Can Earn the Remarkable[/u] Share this post Link to post Share on other sites
trancexx 1,013 Posted August 15, 2010 Why do i need that?Isn't that obvious? Because you want it to work. ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
sahsanu 28 Posted August 15, 2010 Here ya go $SmtpServer = "plus.smtp.mail.yahoo.com" $FromName = "Tyranlol" $FromAddress = "MyEmail@yahoo.com" $ToAddress = "MyOtherEmail@yahoo.com" $Subject = "Hai Forum" $Body = "" $AttachFiles = "" $CcAddress = "CCadress1@test.com" $BccAddress = "BCCadress1@test.com" $Importance = "Normal" $Username = "MyEmail@yahoo.com" $Password = "MyPassword" $IPPort = 465 $ssl = 1 Use smtp.mail.yahoo.com instead of plus.smtp.mail.yahoo.com. Share this post Link to post Share on other sites
Tyranlol 0 Posted August 15, 2010 Thanks you, works like a charm now. Is there any way to avoid the daily email limit? it keeps saying that i reached the daily limit after the first email that i send [u]Only by Attempting the Impossible You Can Earn the Remarkable[/u] Share this post Link to post Share on other sites
Tyranlol 0 Posted August 15, 2010 (edited) And one more question, is there any way to use variables in $AttachFiles? Edited August 15, 2010 by Tyranlol [u]Only by Attempting the Impossible You Can Earn the Remarkable[/u] Share this post Link to post Share on other sites
water 2,387 Posted August 15, 2010 (edited) And one more question, is there any way to use variables in $AttackFiles? Sure: $sAttachement1 = "C:\temp\test.txt" $sAttachement2 = "C:\temp\log.txt" $AttachFiles = $sAttachement1 & ";" & $sAttachement2 Edited August 15, 2010 by water My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Tyranlol 0 Posted August 16, 2010 (edited) Thanks for the way to multi attach files, but how am i gonna do if i want to read an reg and use that as a path? An example for ya: $log=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\KL\log","Location") $path = $log & @year & @mon & @mday -1 & ".txt" $AttachFiles = $path it keeps comming with an "ErrorCode: 1 Description 0" Edited August 16, 2010 by Tyranlol [u]Only by Attempting the Impossible You Can Earn the Remarkable[/u] Share this post Link to post Share on other sites
water 2,387 Posted August 16, 2010 Thanks for the way to multi attach files, but how am i gonna do if i want to read an reg and use that as a path? An example for ya: $log=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\KL\log","Location") $path = $log & @year & @mon & @mday -1 & ".txt" $AttachFiles = $path $AttachFiles has to contain a valid path\filename. Can you validate the correct format by inserting aConsolewrite($AttachFiles & @CRLF)at the end of your code snippet? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Tyranlol 0 Posted August 16, 2010 (edited) No errors this time. it seems to work, but it takes about an half hour for the email to get there. I'll update when i get it, thanks a lot Update: yep it works, thank you. Edited August 16, 2010 by Tyranlol [u]Only by Attempting the Impossible You Can Earn the Remarkable[/u] Share this post Link to post Share on other sites