![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 > 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||