Jump to content

Recommended Posts

Posted

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]
Posted (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 by Tyranlol
[u]Only by Attempting the Impossible You Can Earn the Remarkable[/u]
Posted

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.

Posted

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]
Posted (edited)

And one more question, is there any way to use variables in $AttachFiles?

Edited by Tyranlol
[u]Only by Attempting the Impossible You Can Earn the Remarkable[/u]
Posted (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 by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Posted (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 by Tyranlol
[u]Only by Attempting the Impossible You Can Earn the Remarkable[/u]
Posted

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 a

Consolewrite($AttachFiles & @CRLF)
at the end of your code snippet?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Posted (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 by Tyranlol
[u]Only by Attempting the Impossible You Can Earn the Remarkable[/u]

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
×
×
  • Create New...