[root@jiaoyou ~]# sendmail -t< mail.txt 
[root@jiaoyou ~]# cat mail.txt 
From: abc@gmail.com
To: abc@gmail.com
MIME-Version: 1.0
Content-Type: multipart/alternative;
Subject: Test HTML e-mail.

This is a MIME-encapsulated message

Anything wrong here?

link|improve this question

22% accept rate
How about the complete lack of details? Is your sendmail set up correctly? Are you relaying through your ISP, or sending directly to gmail? How do you know it failed? Logs? – Bill Weiss Aug 26 '09 at 15:28
I didn't receive the email from my gmail account. – abcgreen Aug 26 '09 at 15:33
feedback

2 Answers

Gmail won't forward mail. You can only send mail via gmail as an authenticated user.

link|improve this answer
feedback

Gmail will generally pop up a message in the from account asking you if you want to allow someone else to send mail from you. Once this is enabled it should go through.

Also, check your mailq.

link|improve this answer
Is there anything wrong with my usage of sendmail here? – abcgreen Aug 26 '09 at 15:34
Doesn't look that way. Its going to require logs from the server so, as Bill said, sendmail could be setup to not forward mail and it could be just sitting in your mailq. Run mailq, then check /var/log/mail.info – Ryaner Aug 26 '09 at 19:19
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.