Jump to content

Recommended Posts

When I try to send It I Always get an error: "50"

Current Source:

#include <INet.au3>

$s_SmtpServer = "smtp.gmail.com"
$s_FromName = "The Gamer"
$s_FromAddress = "csirkepap@gmail.com"
$s_ToAddress = "rol4nd@freemail.hu"
$s_Subject = "This is the Subject"

Dim $as_Body[2]
$as_Body[0] = "Testing the new email udf"
$as_Body[1] = "Second Line"
$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!")
    MsgBox(0, "Error!", "Mail failed with error code: " & $err)

Any idea why?

Link to post
Share on other sites

Code dosent look complete, I havent sent an email from code before, but I'm fairly certain you need to add your username and password to email account in some fashion.

Yes, I was thinking about the password (username = e-mail). And Ok, I will look for thoose 2 command. Thanks.

There isn't any command such as _INetSmtpMailCom. Only the simple _INetSmtpMail.

Edited by Unc3nZureD
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...