Jump to content

Inet E-mailing


Recommended Posts

Add some code of what you are doing and maybe a version number of your running Autoit?

Link to comment
Share on other sites

Here is the code for the thing im doing, I wanted to see if I could send an E-mail to myself, just fooling around :lmao:

Just trying to get the HElp file script to work, I dident do anything on my own.

#include <INet.au3>

$s_SmtpServer = "hotmail.msn.com" ;<-------- ??????????????????????
$s_FromName = "Adam"
$s_FromAddress = "ada"
$s_ToAddress = "ThisismyE-mail@hotmail.com"
$s_Subject = "Test, Bitch"
Dim $as_Body[2]
$as_Body[0] = "a"
$as_Body[1] = "a"
$Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body)
$err = @error
If $Response = 1 Then
    MsgBox(0, "Success!", "Mail sent")
Else
    MsgBox(0, "Error!", "Mail failed with error code " & $err)
EndIf
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...