Jump to content

Ugh....emails


Recommended Posts

I'm using this simple code straight from the help file, and everything i fix, one more error comes up.

#include <INet.au3>

$s_SmtpServer = "smtp.live.com.au"
$s_FromName = "myname"
$s_FromAddress = "myemail"
$s_ToAddress = "myemail"
$s_Subject = "Hello!"
;Dim $as_Body
;$as_Body = "Testing"
$Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, "Hello")
$err = @error
If $Response = 1 Then
    MsgBox(0, "Success!", "Mail sent")
Else
    MsgBox(0, "Error!", "Mail failed with error code " & $err)
EndIf

Can anyone give me a hand?

With this i am currently getting error code 4: Cannot create socket

Edited by Juggernaut
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...