Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Can't send email

$
0
0

Hi, could you help me please. I trying using script and getting errors.

$SmtpServer = "smtp.office365.com" ; address for the smtp-server to use - REQUIRED $FromName = "Me" ; name from who the email was sent $FromAddress = "email5@*****.com" ; address from where the mail should come $ToAddress = "timur38@gmail.com" ; destination address of the email - REQUIRED $Subject = "Mail Test" ; subject from the email - can be anything you want it to be $Body = "" ; the messagebody from the mail - can be left blank but then you get a blank mail $AttachFiles = "" ; the file(s) you want to attach seperated with a ; (Semicolon) - leave blank if not needed $CcAddress = "" ; address for cc - leave blank if not needed $BccAddress = "" ; address for bcc - leave blank if not needed $Importance = "Normal" ; Send message priority: "High", "Normal", "Low" $Username = "email5@*****.com" ; username for the account used from where the mail gets sent - REQUIRED $Password = "password" ; password for the account used from where the mail gets sent - REQUIRED $IPPort = 587 ; port used for sending the mail $ssl = 0 ; enables/disables secure socket layer sending - put to 1 if using httpS ;~ $IPPort=465 ; GMAIL port used for sending the mail ;~ $ssl=1 ; GMAILenables/disables secure socket layer sending - put to 1 if using httpS

"error code 2 description the transport failed to connect to the server"

 

I also tried to use gmail account.

$SmtpServer = "smtp.gmail.com" ; address for the smtp-server to use - REQUIRED $FromName = "Me" ; name from who the email was sent $FromAddress = "timur38@gmail.com" ; address from where the mail should come $ToAddress = "timur@gmail.com" ; destination address of the email - REQUIRED $Subject = "Mail Test" ; subject from the email - can be anything you want it to be $Body = "" ; the messagebody from the mail - can be left blank but then you get a blank mail $AttachFiles = "" ; the file(s) you want to attach seperated with a ; (Semicolon) - leave blank if not needed $CcAddress = "" ; address for cc - leave blank if not needed $BccAddress = "" ; address for bcc - leave blank if not needed $Importance = "Normal" ; Send message priority: "High", "Normal", "Low" $Username = "timur38@gmail.com" ; username for the account used from where the mail gets sent - REQUIRED $Password = "Password" ; password for the account used from where the mail gets sent - REQUIRED $IPPort = 465 ; port used for sending the mail $ssl = 1 ; enables/disables secure socket layer sending - put to 1 if using httpS ;~ $IPPort=465 ; GMAIL port used for sending the mail ;~ $ssl=1 ; GMAILenables/disables secure socket layer sending - put to 1 if using httpS

And got

The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available"

 

Thank you :pirate:

 

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>