Sending email to gmail from cron

Looking for help sending email to a gmail address from my cron. At the top of crontab

MAILTO="obfuscated@gmail.com" 

But no mail comes. Checking /var/log/maillog, I see

Dec 17 22:46:36 myserver postfix/pickup[30426]: CC21261C6E: uid=501 from=<root> Dec 17 22:46:36 myserver postfix/cleanup[30486]: CC21261C6E: message-id=<20181217224636.CC21261C6E@myserver.novalocal> Dec 17 22:46:36 myserver postfix/qmgr[11071]: CC21261C6E: from=<root@myserver.novalocal>, size=5920, nrcpt=1 (queue active) Dec 17 22:46:37 myserver postfix/smtp[30488]: connect to gmail-smtp-in.l.google.com[2607:f8b0:400e:c03::1b]:25: Network is unreachable Dec 17 22:46:37 myserver postfix/smtp[30488]: CC21261C6E: enabling PIX workarounds: disable_esmtp delay_dotcrlf for gmail-smtp-in.l.google.com[74.125.197.26]:25 Dec 17 22:46:37 myserver postfix/smtp[30488]: CC21261C6E: to=<obfuscated@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.197.26]:25, delay=221, delays=220/0.02/0.34/0.39, dsn=2.0.0, status=sent (250 2.0.0 OK 1545086797 31si11773098plk.310 - gsmtp) Dec 17 22:46:37 myserver postfix/qmgr[11071]: CC21261C6E: removed 

So, clearly, the IPv6 version is blocked, but the fallback gets a success message, yet no mail ever arrives. Same messages if I try using the command-line mail command. However, I can use the command-line mail program to successfully send mail to my company email address.

mail -s "test1" obfuscated@mycompany.com test1 EOT 

The telnet trick seems to indicate I can access the gmail server:

$   telnet gmail-smtp-in.l.google.com 25 Trying 108.177.98.26... Connected to gmail-smtp-in.l.google.com. Escape character is '^]'. 220 ************************************************* ^]  telnet> quit Connection closed. 

My IP tables look like this

Chain INPUT (policy ACCEPT) target     prot opt source               destination          ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED  ACCEPT     icmp --  anywhere             anywhere             ACCEPT     all  --  anywhere             anywhere             ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh  ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:http  REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited   Chain FORWARD (policy ACCEPT) target     prot opt source               destination          REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited   Chain OUTPUT (policy ACCEPT) target     prot opt source               destination          

Any help on this will be greatly appreciated.

embed vs link HTML content in email

Let’s say your company sends its customers quotes via email when a customer requests a quote. In the quote it has some fancy images, logos, and HTML/CSS to help sell the quote to the customer.

The problem: When you embed the HTML/CSS into an email, you are working at the mercy of the email provider to render the HTML/CSS correctly. First, different email providers will render your quote differently. Second, you have a subset of HTML/CSS to work with.

A workaround is to attach a PDF of the quote and also link the quote externally so a browser opens it. Doing it this way, you have the full arsenal of css/html that is available in a standard browser. The body of the email may look like this:

Your quote is attached.  Additionally, you may <a href='url'>click here</a> to view your quote. 

The question is, would there be a huge loss in views since people willing to open an attachment or click on an external link may be less? If possible, support your conclusion with data.

Ideas on email marketing

Do we suppose pitch one product from our store or store itself at once.. Just got the idea with getting email addresses from FB groups members (for instance cactus plant lovers). What would be "open rate " mark? I understeand it is much easier to pitch something to people who are subscribed to newsletter of our example "cactus" blog but do anyone tried to pitch something trough new email list? Please share, thanks…

[Email Scraper Plugin – URL Generator] 2 distinct PAGENUM

Hi everyone,

I’m using the URL Generator in the Email Scraper to scrape a directory. The URLs look like this

Code:
https://domaine.fr/page?keyword&from=1&to=20
https://domaine.fr/page?keyword&from=21&to=40
https://domaine.fr/page?keyword&from=41&to=60
...
https://domaine.fr/page?keyword&from=1781&to=1800

So I tried 
https://domaine.fr/page?keyword&from=1&to={pagenum}
but the website crashes when the pagenum is too high.

I want to do something like
https://domaine.fr/page?keyword&from={pa…o={pagenum}

I tried with
https://domaine.fr/page?keyword&from={ke…o={pagenum}
with  1, 21, 41, 61, etc… as , (from an Excel) but I have thousand of useless URLs…

Can someone help me?

Thanks!

Locked out & email no good

Tried to visit my yahoo groups and was told at login that my email address isn't recognized, so tried to create a new yahoo account, but was told email is already in use! I believe this is because my account has been frozen but not deleted, but this puts me in a bind because I can't get into yahoo to contact yahoo to tell yahoo they've tied up my email and my account! What to do?

Problem with Forgotten Password and Email Address

Sadly I have forgotten my Twitter Password.

Typically this would be easy to solve but for one additional issue.

I joined Twitter several years ago at which time I was using an email address from my isp provider: Primelink1.net.

Since that time I have dropped Primelink1.net as my isp provider so I am unable to send/receive emails related to that provider.

Therefore when Twitter wants to confirm that I am the legitimate owner of my Twitter account they want to send an email to my former…

Problem with Forgotten Password and Email Address

Send email if script outputs string

I found this line:

sh script.sh | grep 'NO' 2>&1 > grep.log && /usr/bin/mail -s "grep found something" m@mail.com < grep.log 

which will write the output of script.sh to grep.log and then email that to an email m@mail.com

Is there anyway to remove the part where this wrote to grep.log and simply mail the output of the script without having to write it to a file?