Jump to content
Sign in to follow this  
Tyranlol

_INetSmtpMail error

Recommended Posts

Tyranlol

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

please show us all the settings you used in variables of UDF.

Share this post


Link to post
Share on other sites
trancexx

You need a domain MX record.

I hope you comprehend.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
TinyHacker
Please help him.... i need help with that tooo Posted Image

Share this post


Link to post
Share on other sites
Tyranlol

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]

Share this post


Link to post
Share on other sites
trancexx

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

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

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

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]

Share this post


Link to post
Share on other sites
water

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 (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Tyranlol

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]

Share this post


Link to post
Share on other sites
water

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 (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Tyranlol

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]

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  

×