bt(btitish telecom) has provided a mail account where we receive .csv attachments.through programing we need to read the attahments and insert the data into our data base tables..
iam new new to UNIX and i knew very basic things only..
what i need here is i need to connect to the mail box for every 3 mins and save the attachments of all the mails in the inbox to a folder then delete all the mails from inbox.
it will be greateful if u can provide me some sample code ...
bt(btitish telecom) has provided a mail account where we receive .csv attachments.through programing we need to read the attahments and insert the data into our data base tables..
iam new new to UNIX and i knew very basic things only..
what i need here is i need to connect to the mail box for every 3 mins and save the attachments of all the mails in the inbox to a folder then delete all the mails from inbox.
it will be greateful if u can provide me some sample code ...
hi,srikanthkadapal
firstly you must read some documents related this ssue.
i havent tried it before.but i think you can do it after some packages installs and configure these.
-> first stage (fetchmail)
you can use fetchmail for check a pop3 account and download mail from remote IMAP and POP servers and/or save it into local mailboxes(if we desire this).
* if it is not installed on the system then install appropriate fetchmail pckg.
* configure to your account settings in "~./fetchmailrc"
*
for these you can look this page Using fetchmail
-> second stage (procmail+metamail)
* install procmail (it is simply a mda for forwarding mails to separate folders)
* install metamail (for decode,display and save non-text mails and/or and find the correct program for mime based files (for ex..if your attachment is a jpg then it calls convenient jpg viewer on your system but we dont use this now)
and for these you can look at this page Howto: receive mail and save attachment with fetchmail, procmail and metamail | /home/tom
Hi,
I need to send a mail with html code in body and an attachment along with the body and subject.
The html code must display a table with data in it in the mail.
I have tried the 'sendmail' command, but I am am able to display the table in the mail and unable to attach an attachment.
... (5 Replies)
Hi,
Request you to please help on my issue.
My issue is: We are able to send the log files as an email attachment. We are able to get the attachment in our inbox. But when we try to see in web mail, instead of the attachment, junk characters are displaying.
Appreciate your help.
Regards,... (10 Replies)
Hi,
I have to send email from UNIX with multiple excel attachments and the sender name needs to be customized (sender name need not to be UNIX user).
I have checked many ways from this forum and other sources. But, nothing did work for me.
Please help me!
thanks,
Raja. (1 Reply)
Hi ,
Whenever I try to send mails with attachments to external email Id's the attachment is not encoded properly which appears along with body (text) of the mail.
The attachement is always getting corrupted. Can anyone please suggest a solution.
Regards,
Sandipan (1 Reply)
I want to send a mail with three attachments, but nothing happened. I tried it with mail and mailx.
Are there special options for these commands or is it not possible to send mails under Solaris with attachments? Must there be special adjustments in the environment?
Can anyone give an... (6 Replies)
Hi ,
i have tried the following command to send an email with an attachment
its working fine but i am getting mail with the embeded content inside the mail that too truncated.
i wanted it as an attachment.
/usr/lib/sendmail -F "MAC SIA" address "rajendra@abc.com.sg" -t <... (6 Replies)
Another question if you guys don't mind, if you do this:
cat * |mailx -s xxxxx <email>
it will send files to a email address displayed as sdout, is there a quick way to send files to a e-mail address but as a attachement? Say if I renamed files to .xls on unix, and sent them to a e-mail... (4 Replies)
I am using the following command to send a zip file as an attachment to my internet email-id.
uuencode ABC_DEFG_HIJ.zip ABC_DEFG_HIJ.zip | mail -s "attachment from shell" pal@yahoo.com
Eventhough i have given the attached file as 'ABC_DEFG_HIJ.zip', when i receive the mail in my internet... (3 Replies)