?
Solved

vbs script to send email through an existing smtp server, the server error  response was: 530 authentication required

Posted on 2008-06-24
4
Medium Priority
?
1,471 Views
Last Modified: 2013-12-17
when trying to send an email via vbs script, I am gerring an erro
    server response was: 530 authentication required
THE CODE IS AS FOLLOWS;
Set objEmail = CreateObject("CDO.Message")

objEmail.From = "allbeit@earthlink.net"
objEmail.To = "allbeit2@earthlink.net"
objEmail.Subject = "TEST EMAIL subject"
objEmail.Textbody = "TEST EMAIL text."
objEmail.AddAttachment "C:\TEST.txt"

objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendusername") = "vfm-sdlkjfsdd@la.twcbc.com"

objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "A34523344"

objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.biz.rr.com"

objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

objEmail.Configuration.Fields.Update

objEmail.Send

0
Comment
Question by:mdlp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 17

Expert Comment

by:fgrushevsky
ID: 21859363
Your mail server requires authentication to accept smtp mail

add this line before objEmail.Configuration.Fields.Update

objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication

assuming that your server supports clear-text authentication
0
 

Author Comment

by:mdlp
ID: 21859925
thank you fgrushevsky,
I added the line as you suggested, but this created a different error:
the message could not be sent to the SMTP server.  The transport error code was 0x80040217. The server response was not available

code: 80040211
source: (null)
I commented the added line and it went back to the original error message.  Does this mean that it will not allow clear text authentication?

I checked my existing outlook on the computer and it does not require SPA in the password settings.

I hope this helps
Thank you
mdlp

0
 
LVL 17

Accepted Solution

by:
fgrushevsky earned 2000 total points
ID: 21860254
the server you are trying to connect should support clear text authentication. the error could be caused by many reasons, including incorrect password, or you already tried to many times and server blacklisted you....
there is a very goof example on the PaulSadowski web site of what you are trying to do:
Send using authentication against a remote server with a file attachment and return receipt and
delivery disposition notification requests. In order to use the Delivery Status Notifications (Return
Receipt and Delivery Disposition requests) we need to create a reference to the CDO Configuration
object in addition to the CDO Message object and set a small number of properties. You must
use cdoSendUsingPort (network connection) and not the SMTP server's pickup directory
(cdoSendUsingPickup).

please take a look:

http://www.paulsadowski.com/WSH/cdo.htm

I hope it helps
0
 

Author Closing Comment

by:mdlp
ID: 31470310
I am so sorry for the delay, got pulled away to another program, I am still researching the issue, but it seem that one of MS security "fixes" is tripping this up.  You have gone way beyond what the point reward for so thank you and I am thinking of trying a different route.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question