Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - how to send email if my SMTP server requires authentication

Reply
 
Old 12-04-2008   #1 (permalink)
BobIT


 
 

how to send email if my SMTP server requires authentication

i am trying to use a script to send email using the outgoing.verizon.net
smtp server, but i get the following message: "The server rejected the
sender address.e The server response was: 550 5.7.1 Authentication Required"

the authentication part of my script looks like this...

? objEmail.Configuration.Fields.Item _
? ("http://schemas.microsoft.com/cdo/configuration/sendemailaddress") =
myemailaddres@xxxxxx
?
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") =
"myusername"

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

objEmail.Send

am i missing a login piece?

thanks
Bob



My System SpecsSystem Spec
Old 12-04-2008   #2 (permalink)
Pegasus \(MVP\)


 
 

Re: how to send email if my SMTP server requires authentication


"BobIT" <ramzr98@xxxxxx> wrote in message
news:%23D80H7cVJHA.5520@xxxxxx
Quote:

>i am trying to use a script to send email using the outgoing.verizon.net
>smtp server, but i get the following message: "The server rejected the
>sender address.e The server response was: 550 5.7.1 Authentication
>Required"
>
> the authentication part of my script looks like this...
>
> ? objEmail.Configuration.Fields.Item _
> ? ("http://schemas.microsoft.com/cdo/configuration/sendemailaddress") =
> myemailaddres@xxxxxx
> ?
> objEmail.Configuration.Fields.Item _
> ("http://schemas.microsoft.com/cdo/configuration/sendusername") =
> "myusername"
>
> objEmail.Configuration.Fields.Item _
> ("http://schemas.microsoft.com/cdo/configuration/sendpassword") =
> "mypassword"
> objEmail.Configuration.Fields.Update
>
> objEmail.Send
>
> am i missing a login piece?
>
> thanks
> Bob
>
You've got the correct items in your script but I don't know why it fails to
work. Here the code I normally use for sending mail:
schema = "http://schemas.microsoft.com/cdo/configuration/"
Set objEmail = CreateObject("CDO.Message")
With objEmail
.From = "James@xxxxxx"
.To = "Jim@xxxxxx"
.Subject = "Test Mail"
.Textbody = "The quick brown fox " & Chr(10) & "jumps over the lazy dog"
.AddAttachment "d:\Testfile.txt"
With .Configuration.Fields
.Item (schema & "sendusing") = 2
.Item (schema & "smtpserver") = "mail.company.com"
.Item (schema & "smtpserverport") = 25
.Item (schema & "smtpauthenticate") = cdoBasic
.Item (schema & "sendusername") = "James@xxxxxx"
.Item (schema & "sendpassword") = "SomePassword"
End With
.Configuration.Fields.Update
.Send
End With


My System SpecsSystem Spec
Old 12-05-2008   #3 (permalink)
Bwise_IT


 
 

Re: how to send email if my SMTP server requires authentication

Thanks for the script.

I noticed in my outlook settings that my email address, as well as my user
name and password are used during authentication, that is why i send the
email address seperately. Since i am not that proficient with smpt, would
verizon be using my 'username' or my email address for authentication?

what does the smtpauthenticate do?

thanks

"Pegasus (MVP)" <I.can@xxxxxx> wrote in message
news:Oit%23lveVJHA.5520@xxxxxx
Quote:

>
> "BobIT" <ramzr98@xxxxxx> wrote in message
> news:%23D80H7cVJHA.5520@xxxxxx
Quote:

>>i am trying to use a script to send email using the outgoing.verizon.net
>>smtp server, but i get the following message: "The server rejected the
>>sender address.e The server response was: 550 5.7.1 Authentication
>>Required"
>>
>> the authentication part of my script looks like this...
>>
>> ? objEmail.Configuration.Fields.Item _
>> ? ("http://schemas.microsoft.com/cdo/configuration/sendemailaddress")
>> = myemailaddres@xxxxxx
>> ?
>> objEmail.Configuration.Fields.Item _
>> ("http://schemas.microsoft.com/cdo/configuration/sendusername") =
>> "myusername"
>>
>> objEmail.Configuration.Fields.Item _
>> ("http://schemas.microsoft.com/cdo/configuration/sendpassword") =
>> "mypassword"
>> objEmail.Configuration.Fields.Update
>>
>> objEmail.Send
>>
>> am i missing a login piece?
>>
>> thanks
>> Bob
>>
>
> You've got the correct items in your script but I don't know why it fails
> to work. Here the code I normally use for sending mail:
> schema = "http://schemas.microsoft.com/cdo/configuration/"
> Set objEmail = CreateObject("CDO.Message")
> With objEmail
> .From = "James@xxxxxx"
> .To = "Jim@xxxxxx"
> .Subject = "Test Mail"
> .Textbody = "The quick brown fox " & Chr(10) & "jumps over the lazy dog"
> .AddAttachment "d:\Testfile.txt"
> With .Configuration.Fields
> .Item (schema & "sendusing") = 2
> .Item (schema & "smtpserver") = "mail.company.com"
> .Item (schema & "smtpserverport") = 25
> .Item (schema & "smtpauthenticate") = cdoBasic
> .Item (schema & "sendusername") = "James@xxxxxx"
> .Item (schema & "sendpassword") = "SomePassword"
> End With
> .Configuration.Fields.Update
> .Send
> End With
>
>

My System SpecsSystem Spec
Old 12-05-2008   #4 (permalink)
Pegasus \(MVP\)


 
 

Re: how to send email if my SMTP server requires authentication

SMTP servers use your user name and password for authentication.
Just what exactly a "user name" is depends on the server setup.
Sometimes it's an EMail address and sometimes just a name. If
Outlook shows your user name as "verizon" then this is the string to use.

The sender's EMail address is not normally used for authentication.
However, many server check its validity to prevent people from
sending mail under a false sender name.

AFAIK, smtpauthenticate is used do define the method that
should be used. I don't know enough about CDO to be any
more precise.

Copying your Outlook settings into your VB Script code is a
good idea. It usually results in a successful send.

"Bwise_IT" <bodywise_it@xxxxxx> wrote in message
news:eCPYM9wVJHA.3908@xxxxxx
Quote:

> Thanks for the script.
>
> I noticed in my outlook settings that my email address, as well as my user
> name and password are used during authentication, that is why i send the
> email address seperately. Since i am not that proficient with smpt, would
> verizon be using my 'username' or my email address for authentication?
>
> what does the smtpauthenticate do?
>
> thanks
>
> "Pegasus (MVP)" <I.can@xxxxxx> wrote in message
> news:Oit%23lveVJHA.5520@xxxxxx
Quote:

>>
>> "BobIT" <ramzr98@xxxxxx> wrote in message
>> news:%23D80H7cVJHA.5520@xxxxxx
Quote:

>>>i am trying to use a script to send email using the outgoing.verizon.net
>>>smtp server, but i get the following message: "The server rejected the
>>>sender address.e The server response was: 550 5.7.1 Authentication
>>>Required"
>>>
>>> the authentication part of my script looks like this...
>>>
>>> ? objEmail.Configuration.Fields.Item _
>>> ? ("http://schemas.microsoft.com/cdo/configuration/sendemailaddress")
>>> = myemailaddres@xxxxxx
>>> ?
>>> objEmail.Configuration.Fields.Item _
>>> ("http://schemas.microsoft.com/cdo/configuration/sendusername") =
>>> "myusername"
>>>
>>> objEmail.Configuration.Fields.Item _
>>> ("http://schemas.microsoft.com/cdo/configuration/sendpassword") =
>>> "mypassword"
>>> objEmail.Configuration.Fields.Update
>>>
>>> objEmail.Send
>>>
>>> am i missing a login piece?
>>>
>>> thanks
>>> Bob
>>>
>>
>> You've got the correct items in your script but I don't know why it fails
>> to work. Here the code I normally use for sending mail:
>> schema = "http://schemas.microsoft.com/cdo/configuration/"
>> Set objEmail = CreateObject("CDO.Message")
>> With objEmail
>> .From = "James@xxxxxx"
>> .To = "Jim@xxxxxx"
>> .Subject = "Test Mail"
>> .Textbody = "The quick brown fox " & Chr(10) & "jumps over the lazy dog"
>> .AddAttachment "d:\Testfile.txt"
>> With .Configuration.Fields
>> .Item (schema & "sendusing") = 2
>> .Item (schema & "smtpserver") = "mail.company.com"
>> .Item (schema & "smtpserverport") = 25
>> .Item (schema & "smtpauthenticate") = cdoBasic
>> .Item (schema & "sendusername") = "James@xxxxxx"
>> .Item (schema & "sendpassword") = "SomePassword"
>> End With
>> .Configuration.Fields.Update
>> .Send
>> End With
>>
>>
>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Send e-mail using separate SMTP server VB Script
Cannot send mail due to SMTP server error Vista mail
My server requires authentication Vista mail
My Server requires authentication Vista mail
Smtp server not allowing to send emails Vista mail


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46