hi
i want to attach documents with the email.i have a field in my db which contains the path where the file is stored.when the user want a particular doc ....i want it to fetch from the database and send it to their email address..................
lydia21
9
Junior Poster
Recommended Answers
Jump to Posthi, try something like this: (it works for me)
<?php
$to = 'youraddress@example.com';
$subject = 'Test email with attachment';//create an unique boundary string.
//so we use the MD5 algorithm to generate a random hash
$random_hash = md5(date('r', time()));
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.