Jump to content
Sign in to follow this  
Juggernaut

Ugh....emails

Recommended Posts

Juggernaut

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

Share this post


Link to post
Share on other sites
Bru

Must be something to do with,

$s_SmtpServer = "smtp.live.com.au"

Maybe it does not eccept SMTP?

So it cannot create.


[right] [/right]

Share this post


Link to post
Share on other sites
Juggernaut

Edit: nope, no matter what email i use (the server), it still brings up an error.

Anyone got any ideas? Its straight from the help file..

Edited by Juggernaut

Share this post


Link to post
Share on other sites
Richard Robertson

My previous ISP actually blocked SMTP access unless you used their server. It was pretty stupid but it would give you an error for any server.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.