Jump to content
Sign in to follow this  
yehia

_INetSmtpMail

Recommended Posts

yehia

i always get code error 4 dont know y

#include <INet.au3>
$s_SmtpServer = "plus.smtp.mail.yahoo.com"
$s_FromName = "die"
$s_FromAddress = "yehia_serag@yahoo.com"
$s_ToAddress = "yehia_serag@yahoo.com"
$s_Subject = "Testing"
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")
Else
    MsgBox(0, "Error!", "Mail failed with error code " & $err)
EndIf

really need help dont know what to do

and plz if anyone can tell me what is yahoo and hot mail smtp servers

thanks all

Share this post


Link to post
Share on other sites
Andreik

@ERROR = 4 - Unable to create socket

Try to change SMTP server.


When the words fail... music speaks

Share this post


Link to post
Share on other sites
Andreik

Try a.mx.mail.yahoo.com


When the words fail... music speaks

Share this post


Link to post
Share on other sites
BrettF
BrettF

Pay for hotmail/yahoo.... :P If they've banned your mail, there is nothing we can do about it...

If you are doing something illegal, please reconsider... Malicious code gives AutoIt a bad name, you've only got to see the volume of threads saying, "false positive..."

Share this post


Link to post
Share on other sites
yehia

If you are doing something illegal, please reconsider... Malicious code gives AutoIt a bad name, you've only got to see the volume of threads saying, "false positive..."

no way iam doing anything that can harm autoit

i love it and i love its community

thanks for ur helpful replay

Share this post


Link to post
Share on other sites
Confuzzled

no way iam doing anything that can harm autoit

i love it and i love its community

thanks for ur helpful replay

$s_FromName = "die"

$s_FromAddress = "yehia_serag@yahoo.com"

Yeah right! :P

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.