Welcome Guest, Not a member yet? Register   Sign In
Help with email attachment filename
#2

[eluser]pistolPete[/eluser]
Please use [ code ] tags!

I once created an extension of the email ibrary: http://ellislab.com/forums/viewreply/564654/
It allows you to attach a "virtual" file.

In your case you could use:

Code:
$filename = $this->model->the_correct_filename_stored_on_the_database();
$file_contents = file_get_contents('/path/to/generated_random_string');
$this->email->attach($filename, 'attachment', $file_contents );


Messages In This Thread
Help with email attachment filename - by El Forum - 11-02-2009, 11:45 PM
Help with email attachment filename - by El Forum - 11-03-2009, 12:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB