NavigationUser loginSpam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
sendemail with gmail?Anyone succeeded using sendemail (its not sendmail) with gmail? I installed the tls related packages, enabled -tls=yes in the command line, but no go. And I already did what this guy at |
sendemail with gmail?
On Fri, Mar 09, 2007 at 12:21:00PM -0300, Bruno Buys wrote:
> Anyone succeeded using sendemail (its not sendmail) with gmail? I
> installed the tls related packages, enabled -tls=yes in the command line,
> but no go. And I already did what this guy at
> http://caspian.dotconf.net/menu/Software/SendEmail/ said, under 'tls
> support'.
> Other smtp's do work.
>
> Any help is appreciated!
In sid, the following works for me:
sendEmail -f -t \
-u test -m "this is a test" \
-s smtp.gmail.com \
-o tls=yes \
-xu my.account -xp mypasswd
With the appropriate values for -f, -t, -xu and -xp, the mail is sent
successfully and arrives as expected.
Good luck,
--j
sendemail with gmail?
On 3/9/07, Juergen Fiedler <juergen@fiedlerfamily.net> wrote:
On Fri, Mar 09, 2007 at 12:21:00PM -0300, Bruno Buys wrote:> Anyone succeeded using sendemail (its not sendmail) with gmail? I> installed the tls related packages, enabled -tls=yes in the command line,
> but no go. And I already did what this guy at> http://caspian.dotconf.net/menu/Software/SendEmail/ said, under 'tls> support'.
> Other smtp's do work.>> Any help is appreciated!In sid, the following works for me:sendEmail -f my.account@gmail.com -t
\ -u test -m "this is a test" \ -s smtp.gmail.com \ -o tls=yes \ -xu my.account -xp mypasswdWith the appropriate values for -f, -t, -xu and -xp, the mail is sent
successfully and arrives as expected.Good luck, --jHi Juergen, thanks for replying.
I tried your line, and here's the output:
Mar 09 14:58:26 cestudos sendEmail[3111]: WARNING => Name/Value pair [tls=yes] will be ignored: unknown key [tls]
Mar 09 14:58:27 cestudos sendEmail[3111]: ERROR => Received: 530 5.7.0 Must issue a STARTTLS command first b12sm3710770ana
Shall I generate a tls key first? How?
sendemail with gmail?
On Fri, Mar 09, 2007 at 02:59:33PM -0300, Bruno Buys wrote:
[...]
> Hi Juergen, thanks for replying.
> I tried your line, and here's the output:
>
> Mar 09 14:58:26 cestudos sendEmail[3111]: WARNING => Name/Value pair
> [tls=yes] will be ignored: unknown key [tls]
> Mar 09 14:58:27 cestudos sendEmail[3111]: ERROR => Received: 530 5.7.0
> Must issue a STARTTLS command first b12sm3710770ana
>
> Shall I generate a tls key first? How?
Are you sure that your version od sendemail supports TLS? It rather
looks like it doesn't. The version that I have installed is 1.55-1,
TLS is only supported in 1.54 and later.
--j
sendemail with gmail?
Juergen Fiedler wrote:
> On Fri, Mar 09, 2007 at 02:59:33PM -0300, Bruno Buys wrote:
> [...]
>
>> Hi Juergen, thanks for replying.
>> I tried your line, and here's the output:
>>
>> Mar 09 14:58:26 cestudos sendEmail[3111]: WARNING => Name/Value pair
>> [tls=yes] will be ignored: unknown key [tls]
>> Mar 09 14:58:27 cestudos sendEmail[3111]: ERROR => Received: 530 5.7.0
>> Must issue a STARTTLS command first b12sm3710770ana
>>
>> Shall I generate a tls key first? How?
>>
>
> Are you sure that your version od sendemail supports TLS? It rather
> looks like it doesn't. The version that I have installed is 1.55-1,
> TLS is only supported in 1.54 and later.
>
> --j
>
Hi Juergen,
That was the case. I was running 1.52 from etch. The 1.55 from the dev's
website does run ok with gmail.
thanks!
--
Re: sendemail with gmail?
Thanks, original poster and Juergen Fiedler for this great post. I have been looking for something that is simple to use from the command line to send emails and this is it. I send my emails threw Gmail and it works great this is what i had to do to get it to work.
I am using Debian Etch.
aptitude install libio-socket-ssl-perl libnet-ssleay-perl
Download sendEmail from here.
http://caspian.dotconf.net/menu/Software/SendEmail/
---------------
Examples
---------------
Simple Email:
sendEmail -f \
-t \
-s relay.isp.net \
-u "Test email" \
-m "Hi buddy, this is a test email."
Sending to mutiple people:
sendEmail -f \
-t "Scott Thomas " \
-s relay.isp.net \
-u "Test email" \
-m "Hi guys, this is a test email."
Sending to multiple people using cc and bcc recipients:
(notice the different way I specified multiple To recipients, you can do this for cc and bcc as well)
sendEmail -f \
-t ;jason@isp.net;renee@isp.net \
-cc \
-bcc \
-s relay.isp.net \
-u "Test email with cc and bcc recipients" \
-m "Hi guys, this is a test email."
Sending to multiple people with multiple attachments:
sendEmail -f \
-t \
-cc \
-s relay.isp.net \
-u "Test email with cc and bcc recipients" \
-m "Hi guys, this is a test email." \
-a /mnt/storage/document.sxw "/root/My Documents/Work Schedule.kwd"
Sending an email with the contents of a file as the message body:
cat /tmp/file.txt | sendEmail -f \
-t \
-s relay.isp.net \
-u "Test email with contents of file"
Sending an email with the contents of a file as the message body (method 2):
sendEmail -f \
-t \
-s relay.isp.net \
-o message-file=/tmp/file.txt \
-u "Test email with contents of file"
Sending an html email: (make sure your html file has at the beginning)
cat /tmp/file.html | sendEmail -f \
-t \
-s relay.isp.net \
-u "Test email with html content"