You need to sign in to do that
Don't have an account?
Emai to Case and Google Mail
The setup goes OK but I am getting an error which looks like the
process is refused connection to the gmail server. I have had the
config files checked by salesforce.com tech support and they said they
were OK.
Has anyone tried this process, or a similar one before? Does it work?
Has anyone any ideas why I might not be able to connect.
Here is a clip from the error log I get when running the process.
2008-04-02 08:48:14,369 7162 [main] INFO
com.sforce.mail.EmailService - Scheduling poll process against
imap.googlemail.com
2008-04-02 08:48:14,369 7162 [main] INFO
com.sforce.mail.EmailService - Port : default
2008-04-02 08:48:14,369 7162 [main] INFO
com.sforce.mail.EmailService - UserID : [email address]
2008-04-02 08:48:14,369 7162 [main] INFO
com.sforce.mail.EmailService - Password:
2008-04-02 08:48:14,369 7162 [main] INFO
com.sforce.mail.EmailService - Interval: 10 minute(s)
2008-04-02 08:48:14,369 7162 [main] INFO
com.sforce.mail.EmailService - InBox : Inbox
2008-04-02 08:48:14,369 7162 [main] INFO
com.sforce.mail.EmailService - ReadBox : Sent Mail
2008-04-02 08:48:14,370 7163 [main] INFO
com.sforce.mail.EmailService - ErrorBox: Drafts
2008-04-02 08:48:14,370 7163 [main] INFO com.sforce.SalesforceAgent
- Service imap.googlemail.com:0:[email address]:Inbox
successfully registered
2008-04-02 08:48:14,370 7163 [main] INFO com.sforce.SalesforceAgent
- com.sforce.mail.EmailService loaded as a timer service.
2008-04-02 08:49:29,268 82061 [Timer-0] ERROR
com.sforce.mail.GenericClient - Unable to connect to mail service.
Service: imap.googlemail.com
User: [email address]
Message: Operation timed out;
nested exception is:
java.net.ConnectException: Operation timed out
End of LOG
<url>imap.gmail.com</url>
<protocol>imaps</protocol>
<userName>xxx</userName>
<password>yyy</password>
<interval>10</interval>
<inbox>Inbox</inbox>
<readbox>Processed</readbox>
<errorbox>Error</errorbox>
</server1> Have never had an issue with this (unless of course you are behind a firewall that completely disallows this connection.
Very odd this as I thought my config files etc were ok. I will post a " What I did" here soon so my experience is recorded and can be shared.
emailtocase.txt
<configFile>
<server1>
<url>imap.googlemail.com</url>
<protocol>imaps</protocol>
<userName>[enter your account]@googlemail.com</userName>
<password>[enter account password]</password>
<interval>10</interval>
<inbox>Inbox</inbox>
<readbox>Processed</readbox>
<errorbox>Error</errorbox>
</server1>
</configFile>
Note:
Processed and Error were set up as lables in the gmail account. Inbox already existed.
sfdcConfig.txt
<configFile>
<sfdcLogin>
<url>https://www.salesforce.com/services/Soap/u/7.0</url>
<userName>[username for the sfdc org]</userName>
<password>[password for the username followed by personal security token]</password>
<loginRefresh>30</loginRefresh>
<timeout>600</timeout>
</sfdcLogin>
<notify>
<notifyEmail>[An email address of person to be notified of errors]</notifyEmail>
<from>[an email address which is used to say who the email is from]</from>
<host>[the outgoing mail smpt address so mail can be sent - in form smpt.xxxxx. </host>
<port>25</port>
<user></user>
<password></password>
<service>com.sforce.mail.SMTPNotification</service>
</notify>
<attachments>
<largeAttachmentDirectory>[directory for files]</largeAttachmentDirectory>
<largeAttachmentURLPrefix>[url of location of above directory]</largeAttachmentURLPrefix>
<largeAttachmentSize>0.5</largeAttachmentSize>
</attachments>
<services>
<com.sforce.mail.EmailService>email2case.txt</com.sforce.mail.EmailService>
</services>
</configFile>