Please find a new testing script and configs:



#!/bin/sh
############variables


cd
mkdir emaildaily
cd emaildaily

cat $HOME/.emaildaily | while read COL ; do


wget  --user-agent Mozilla/4.0   -k "$COL" -O daily-page.html

        ls -lah daily-page.html


mutt -e 'set content_type="text/html"' [email protected]  -s "$(date)
Dailyemail $CONFIGFILE" < daily-page.html
        echo "$(date), Email sent to $EMAILTOBESENT"
        echo "$(date), Email sent to $EMAILTOBESENT" >> .log

done


rm daily-page.html


exit 0


now the configs:.muttrc:
Code:

# Boring details
set realname = "XXXXXXXXXXX"
set from = "[email protected]"
set use_from = yes
set envelope_from ="yes"

# Use a signature
#set signature="~/.signature"

# Use msmtp rather than sendmail. Check that
# the path is correct for your system:
set sendmail="/usr/bin/msmtp"

# If not set in ~/.bashrc:
set spoolfile = /var/spool/mail/XXXXXXXXXXX


$ cat .msmtprc
Code:

#Gmail account

account gmail
host smtp.gmail.com
from [email protected]
auth on
tls on
tls_certcheck off
user [email protected]
password THEPASSWORDINCLEAR
port 587






On Wed, Feb 17, 2010 at 9:44 PM, yellow protoss <[email protected]>wrote:

>
> Hi Antonio,
>
> I have / had to downgrade to the regular mutt version. Unfortunately I am
> heavily using mutt into scripts, and this change "--" would be too much. I
> will use the older version in the next debian editions. Regarding the
> behavior of mutt with html pages, within crontab, it is very strange thing,
> isnt it?
>
> Regards
>
> Cheers
> Y.
>
>
> On Wed, Feb 17, 2010 at 9:21 PM, Antonio Radici <[email protected]> wrote:
>
>> On Wed, Feb 17, 2010 at 08:42:33PM +0100, yellowprotoss wrote:
>> > Package: mutt
>> > Version: 1.5.18-1
>> > Severity: important
>> >
>> > Hello
>> >
>> > If you start this script from crontab, user, it is not sending anything:
>> > again a found bug :)
>>
>> Please check the manual, in this case to attach a file you should
>> specify -- $i (where $i is the mail)
>>
>> Since you're using squeeze and there is no release anyware of 1.5.18-1 I
>> suppose you're using a mutt >= 1.5.19
>>
>> Cheers
>> Antonio
>>
>
>

Reply via email to