473,396 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to send a mail with attachments?

Hi everyone,

I need to send a mail with attachment...the challenge is that is anyway apart from modules for attaching the content with mail..

Like we use MIME For attachments but i have been told not to use any modules from perl...

Any help will be highly appreciated...

Thanks in advance...

Lastknight..
Sep 1 '07 #1
4 1349
numberwhun
3,509 Expert Mod 2GB
Its funny you should ask that because at my job, we don't have any modules installed for mail and to get them installed would take an act of an unearthly being.

So, to send mail, we rely on a secondary Perl script which takes an array of parameters. For instance, here is what I can remember of the options you can feed the script:

-a email address(es) to send to. Separated by coma's if multiple.
-A a file containing email adddress(es) to send to. One per line if multiple.
-s subject, in double quotes, even if a variable is used containing the subject.
-b body of the email.
-B a file containing the body of the email.


There are other options, but those are right off the top of my head. What the mail script ends up doing is actually calling the system's "mailx" program, which is fairly simple to use to send emails. In case you are wondering, we are working on Solaris Unix.

Regards,

Jeff
Sep 1 '07 #2
KevinADC
4,059 Expert 2GB
You can always look at the MIME::Lite source code (or any other module) and see how it goes about sending an attachment and incorporate that code into yours.
Sep 1 '07 #3
Hi

thanks for your help guys..

I am grateful for the timely help offered by you people...

regards,

Lastknight
Sep 5 '07 #4
numberwhun
3,509 Expert Mod 2GB
Any time. That is what we are here for. What did you end up using as a solution?

Regards,

Jeff
Sep 5 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Osiris Sawiris | last post by:
I inherited an Inventory control application that updates the stock from the branches at the end of each day. We receive the stock transactions via e-mail attachments (Excel Sheets). Those...
2
by: Venkat | last post by:
I use this code : MailMessage mail = new MailMessage(); mail.From = FromAddress; mail.To = MailAddress; mail.Subject = Subject; mail.Body = MessageText; mail.BodyFormat = MailFormat.Html;...
3
by: RN | last post by:
I am tired of sending mail from the built-in SMTP service for so many reasons (errors are nondescriptive in the event log, it doesn't let me control which IP address it sends from, and it...
2
by: Richard Grene | last post by:
I am using webmail with asp.net with vb. I need a method for Web users to attach files from their local drives. How can this be done since the file to be attached is not on the Web Server? ...
4
by: Sachin Gusain | last post by:
Hi, I am trying to send an email with attachments(these attachments are in temporary folder) in ASP.NET using classes defined in System.Web.Mail Namespace. I dont have SMTP service installed...
2
by: Husam | last post by:
Hi EveryBody: I made windows application project as e-mail sender. This project consist of 13 textbox and one label and one button. I add {system.web.dll} as refrance to this project to help me...
6
by: ErwinF | last post by:
Hi there, I would like to know the following: How to send send email attachments using WebDAV in VB .NET? Sample code please................... Thanks for your help.
0
by: bambi | last post by:
I am facing issues while adding attachments in an E-mail via Mapisend. The code I use is below. If I try to send , I am getting error messgae in Mailmessage.12. Mailmessage.12 is expected as numeric,...
0
by: PraveenKatiyar | last post by:
Hi, when i send mail using xp_smtp_sendmail it gives error--- Server response: 554 <libsoft@iitk.ac.in>: Sender address rejected: Access denied I m using-- declare @rc int exec @rc =...
1
by: maxxxxel | last post by:
Hi Can anyone help me with some asp code , I changed the code to use CDO.message instead of the old cdont.sys to send mail from a ASP webpage which works fine. Our problem is that when we send...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.