Email Test Fails

If you are having a problem using Vault, post a message here.
Post Reply
dustinlaine
Posts: 3
Joined: Wed Mar 30, 2011 11:43 am

Email Test Fails

Post by dustinlaine » Wed Mar 30, 2011 11:49 am

I am trying to configure email, and using the test tool to do so. Upon testing I receive the following error:
An error occurred: Exception: The transport failed to connect to the server. Inner Exception: Exception has been thrown by the target of an invocation. Inner Exception: The transport failed to connect to the server.
If I check the server event logs I see this entry:
Event Type: Error
Event Source: Application
Event Category: None
Event ID: 0
Date: 3/30/2011
Time: 10:36:35 AM
User: N/A
Computer: LC-SRV-STG-01
Description:
The description for Event ID ( 0 ) in Source ( Application ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Sending email failed with exception: The transport failed to connect to the server.

Stack trace: at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args)
at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMessage message)
at System.Web.Mail.SmtpMail.Send(MailMessage message)
at VaultServiceBase.Emailer.Send(Item item, Boolean pleaseThrowExceptions).
These same settings work via .NET SMTP classes in standalone test.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Email Test Fails

Post by Beth » Wed Mar 30, 2011 12:33 pm

Are you providing information for every field in the email settings? No settings can be skipped and valid information needs to be entered.
These same settings work via .NET SMTP classes in standalone test.
Did you try that test on the same machine as the Vault server?

Can you check the logs on your email server as well to see if it logged any errors?
Beth Kieler
SourceGear Technical Support

dustinlaine
Posts: 3
Joined: Wed Mar 30, 2011 11:43 am

Re: Email Test Fails

Post by dustinlaine » Wed Mar 30, 2011 12:39 pm

Yes, everything is filled out. I am using Gmail as the email server and my tests have been done from the same server.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Email Test Fails

Post by Beth » Wed Mar 30, 2011 12:57 pm

Thanks for letting me know. Gmail is a bit picky. The settings for Gmail I think should be the following.

smtpserver = smtp.gmail.com
smtpserverport = 25
smtpusessl = True
smtpauthenticationtype = 1 (this in in the database only.)
smtpusername = myaccount@gmail.com
smtppassword = plaintextpassword
smtpfromaddress = myaccount@gmail.com
server URL = http://myserver/vaultservice

When I tried it myself, I found it wouldn't work if I had periods in my username before the @ sign. Also, I couldn't make it work on a VM.

Are your settings similar?
Beth Kieler
SourceGear Technical Support

dustinlaine
Posts: 3
Joined: Wed Mar 30, 2011 11:43 am

Re: Email Test Fails

Post by dustinlaine » Wed Mar 30, 2011 1:22 pm

I got it working, not a SG problem at all, so sorry about the troubles. However, you helped because I changed the port to 25 and it worked. Google's doc's told me to use 587 which failed.

Thanks again

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Email Test Fails

Post by Beth » Wed Mar 30, 2011 1:26 pm

I know which document you mean. I never got the ports 587 nor 465 to work either, so I'm not sure if they're valid or not.

Thanks for the update.
Beth Kieler
SourceGear Technical Support

Post Reply