473,396 Members | 2,076 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 attach a file in mail() function

nallinattu
Please tell me how to attach a file while sending E mail using mail() function

Also I want to know how to authorise user account before sending mail as the server SMTP port 25 asks for this information .
Jan 7 '07 #1
3 1911
ronverdonk
4,258 Expert 4TB
You are double posting!! Don't do that. The double thread will be removed.

It depends on the type of file you want to attach. See this mail sample , found in the php documentation that gives an example for attaching different file types.

Ronald :cool:
Jan 7 '07 #2
You are double posting!! Don't do that. The double thread will be removed.

It depends on the type of file you want to attach. See this mail sample , found in the php documentation that gives an example for attaching different file types.

Ronald :cool:
Thank You. I had a good idea . Shall try its working . I had to post again as I found a typo in my earlier thread and was NOT knowing how to delete it !
Jan 7 '07 #3
ronverdonk
4,258 Expert 4TB
No problem, I already removed the double thread.
Hope my post can help you.

Ronald :cool:
Jan 7 '07 #4

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

Similar topics

15
by: tabonni | last post by:
Hi I try to grab the checked files from HTML page and then send those PDF files as attachments. It can just send email, there are no PDF files attached. Can anybody point out my error? My...
1
by: bmcelhany | last post by:
I have a windows service that monitors a directory for newly created files. When one is found, an e-mail is generated and the new file is added as an attachment. In order to avoid trying to attach...
1
by: vijaygparikh | last post by:
HI i am writting a code for open default mail client and it works fine. i want to attach a file with the default mail client but file is not attached with "mailto:" option. If any one has idea...
12
by: cj | last post by:
What's the parameter (like ?attachment) or something.
1
nirmalsingh
by: nirmalsingh | last post by:
hi everybody, my code for sending email is <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title>...
3
by: mse07 | last post by:
hi for every one i have program using to send e-mail but i want to attach text file with that e-mail . how attach text file with e-mail automatically ? example : every time send...
0
by: mmatchyn | last post by:
How do I attach an outlook email message as an attachment within another outlook email message. Right now I am using the following code. But I was wondering if there is a better way to do this...
7
by: RRsonawane11 | last post by:
Hello, Can anyone know how to write asp code to attach one file and email it to a specified email address. The attach file is the client choose from their Local Harddisk, just like we ...
2
by: Ken | last post by:
I have a large text file that is send with mail. I would like to save the text as a file (*.txt) and then attach it to the email. Can I do that with PHP? How do I save the text $body as a...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.