Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7982731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:45:32+00:00 2026-06-04T10:45:32+00:00

I send a mp3 file download url which was taken from database and mailed

  • 0

I send a mp3 file download url which was taken from database and mailed to an user in php.
When the links are triggerd to users,

  • some links contain “!” marks and No hyperlink is generated.
  • In some of the links, download.php file is downloaded.

Note:

When i print the message sent to mail, all the links are working fine. Only the problem in mail. i checked with Yahoo, and Gmail. Both have the same problem in same files.

$this->_res['Song_Info'] contains the information of all mp3 files such as name , links and so on…

$emailto = "xxxx@yahoo.com";
$user_name = $this->_res['User_Info']['Name'];
$header = "MIME-Version: 1.0" . "\r\n";
$header.= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$header.= "From:no-reply@example.com\r\n";
header.= "Bcc: yyy@gmail.com\r\n";
$message = "<table>";
$message = $message. "<tr><th align='left' colspan='3'>Dear user</th><tr>";
$message = $message."<tr><td colspan='3'>Here is the Download links</td></tr>";
$message = $message."<tr><td colspan='3'></td></tr>";
    foreach ($this->_res['Song_Info'] as $key => $value) {
        $message = $message."<tr><td colspan='3'><a href='www.example.com/download.php?dlink='.trim($value['Song_Url'])."'>".trim($value['Song_Name'])."<a></td></tr>";
    }
$message = $message."<tr><td colspan='3'></td></tr>";
$subject = "Download Links";
mail($emailto,$subject,$message,$header);

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T10:45:33+00:00Added an answer on June 4, 2026 at 10:45 am

    Change below two lines and then check

    1) $ is missing

    $header.= "Bcc: yyy@gmail.com\r\n";
    

    2) String is broken

    $message = $message.'<tr><td colspan="3"><a href="www.example.com/download.php?dlink='.trim($value['Song_Url']).'">'.trim($value['Song_Name']).'<a></td></tr>';
    

    Also make sure when you run any songfile url with download.php?dlink=something it should download song. If it is not working check http://www.zubrag.com/scripts/download.php or [http://www.finalwebsites.com/forums/topic/php-file-download

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I send data from javascript to PHP like this: $.ajax({'url': 'my.php', 'type': 'POST', 'data':
I develop a code to download a MP3 file from server. The code works
I want to send an mp3 file from music library from my iphone over
I want to use the TcpClient and TcpListener to send an mp3 file over
I send from a Service a notification which contents Parcelable ArrayList. //my service code
I'm tryinig to load a file from a web server with a request URL
Ive got an anchor link <a href=http://bucket_name.amazonaws.com/uploads/users/4/songs/7/test.mp3>Download</a> How do I make it so when
I send a valid JSON string to my PHP page from jQueryscript: var data
I am trying to create a google-chrome-extension that will download an mp3 file. I
I send data from Android via HTTP Post to a Server running PHP and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.