searls03 Posted May 8, 2011 Share Posted May 8, 2011 how do I make a link to the correct fpdf file that will be created.......I want to know how I can have an email sent, and then I put a link into the email which looks like: <a href="/ticket.php?eventid=' . $eventid . '">Ticket</a>. does this make sense? do I have to save the document on the server to do this? Quote Link to comment https://forums.phpfreaks.com/topic/235815-mail-function-and-pdf/ Share on other sites More sharing options...
searls03 Posted May 8, 2011 Author Share Posted May 8, 2011 did that make sense? Quote Link to comment https://forums.phpfreaks.com/topic/235815-mail-function-and-pdf/#findComment-1212171 Share on other sites More sharing options...
MadTechie Posted May 8, 2011 Share Posted May 8, 2011 Erm.. you put the link in the body of the email! $body = '<a href="/ticket.php?eventid=' . $eventid . '">Ticket</a>'; or re-phrase the question Quote Link to comment https://forums.phpfreaks.com/topic/235815-mail-function-and-pdf/#findComment-1212174 Share on other sites More sharing options...
searls03 Posted May 8, 2011 Author Share Posted May 8, 2011 I tried that, but it doesnt pull $eventid(obviously since in an email). how could I make it so that it pulls it, or does the document need to be saved to the website first? Quote Link to comment https://forums.phpfreaks.com/topic/235815-mail-function-and-pdf/#findComment-1212175 Share on other sites More sharing options...
PFMaBiSmAd Posted May 8, 2011 Share Posted May 8, 2011 URLs in emails must be fully qualified absolute address. Quote Link to comment https://forums.phpfreaks.com/topic/235815-mail-function-and-pdf/#findComment-1212177 Share on other sites More sharing options...
MadTechie Posted May 8, 2011 Share Posted May 8, 2011 good point PFMaBiSmAd, the body would be parsed so $eventid would be actual id Quote Link to comment https://forums.phpfreaks.com/topic/235815-mail-function-and-pdf/#findComment-1212182 Share on other sites More sharing options...
searls03 Posted May 8, 2011 Author Share Posted May 8, 2011 I found workaround as to what to do, I will make the email look like the doc, then it can just be printed. Quote Link to comment https://forums.phpfreaks.com/topic/235815-mail-function-and-pdf/#findComment-1212185 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.