Jump to content
Sign in to follow this  

Error number 2 in _inetmailsmtp help

Recommended Posts


when i run the script

a msgbox shown up "error code 2 :description de la transport dans sa connexion au serveur

Thesmtp server [yahoo) plus.smtp.mail.yahoo.com

$IPPort = 465 ; port used for sending the mail

$ssl =1

the script atached


Share this post

Link to post
Share on other sites

try using this address for your SMTP server.


Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post

Link to post
Share on other sites

Doesen't Work Plz i need help

You need to change the following in the function:


$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 0

To (you need to activate it):

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1

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.