Jump to content

Problem with e-mail output


brandt

Recommended Posts

I have an e-mail script setup which outputs links depending on what options someone selects from a web form. Lately, I have been seeing junk output coming from my variable. For instance, one of the links that is outputted displays in the e-mail as:

 

http://files.myd!%0a+omain.com/pdf/document1.pdf

 

It is inserting the !%0a+ from somewhere and I cannot figure out where.

 

I have a form where people can select multiple checkboxes to select files they want:

 

$msg  =($_POST['item1'])?"<a href=\"".$path2pdf."document1.pdf\">Download 1 here</a><br>":"";
$msg .=($_POST['item2'])?"<a href=\"".$path2pdf."document2.pdf\">Download 2 here</a><br>":"";

 

and so on...

 

$path2pdf is simply set to http://files.mydomain.com/

 

I have tested it via an echo and it outputs the message perfectly fine. The error only appears in the email itself. I have tested this with a variety of e-mail clients. What could be causing this? Thank you in advance.

Link to comment
https://forums.phpfreaks.com/topic/116427-problem-with-e-mail-output/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.