Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 48624 invoked from network); 2 Jan 2008 12:09:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jan 2008 12:09:16 -0000 Received: (qmail 7630 invoked by uid 500); 2 Jan 2008 12:08:53 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 7608 invoked by uid 500); 2 Jan 2008 12:08:53 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 7597 invoked by uid 99); 2 Jan 2008 12:08:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2008 04:08:53 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [212.45.32.108] (HELO mailrelay02.solcon.nl) (212.45.32.108) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2008 12:08:41 +0000 Received: from [213.134.232.85] (helo=[192.168.2.100]) by mailrelay02.solcon.nl with esmtp (Exim 4.60) (envelope-from ) id 1JA2Oe-0004qw-73 for users@tomcat.apache.org; Wed, 02 Jan 2008 13:08:32 +0100 Message-ID: <477B7EC1.10301@solcon.nl> Date: Wed, 02 Jan 2008 13:08:33 +0100 From: Johan Borchers User-Agent: Thunderbird 1.5.0.14 (Windows/20071210) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: (successful) Configuring gmail sending mail from Tomcat References: <4778B6D9.2030909@solcon.nl> <4778E14B.3080806@gmail.com> In-Reply-To: <4778E14B.3080806@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org I managed to send emails from a webapp in Tomcat using gmail. The configuration is: I didn't do anything with a keystore! Johan Dee�an Chakravarthy wrote: > Johan Borchers wrote: >> Hello, >> >> I'm using Tomcat 6.0.14 on windows 2003 server with JDK 1.5.0_12. >> I'm using now my 'normal' email account for sending email. >> >> > auth="Container" >> type="javax.mail.Session" >> mail.store.protocol="pop3" >> mail.pop3.host="pop.myprovider.xxx" >> mail.transport.protocol="smtp" >> mail.smtp.host="mail.myprovider.xxx" >> mail.smtp.port="25" >> mail.smtp.auth="true" >> mail.smtp.user="myusername" >> password="mypassword" >> /> >> >> I want to use a gmail account for sending email from Tomcat. >> >> Has anyone succesfully configured a gmail account for sending email >> from Tomcat. >> I can't find the exact parameters to use. >> >> My first try was this: >> >> > auth="Container" >> type="javax.mail.Session" >> mail.store.protocol="pop3" >> mail.pop3.host="pop.gmail.com" >> mail.transport.protocol="smtps" >> mail.smtp.starttls.enable="true" >> mail.smtps.host="smtp.gmail.com" >> mail.smtps.port="465" >> mail.smtps.auth="true" >> mail.smtps.user="myusername@gmail.com" >> password="mypassword" >> /> >> >> I'm not sure if this is allright? >> And I think I'll have to configure some keystore for a certificate. >> > > Looks fine.. Did you try it out ? Does it work ? > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org