Hello,
I'm looking for a way to send a mail with an attached file. I use the 1.0.5 version of Mantis. I know how send a mail with a recipient, a message and a subject but I don't know how to add an attached file (the attached file is a file which is on the database and which is attached to a bug).
thanks
send a mail with an attached file
Moderators: Developer, Contributor
-
- Posts: 60
- Joined: 20 Mar 2007, 07:21
- Location: www.ibrahimkutluay.net/blog
- Contact:
Re: send a mail with an attached file
me too. this is very help fullcris wrote:Hello,
I'm looking for a way to send a mail with an attached file. I use the 1.0.5 version of Mantis. I know how send a mail with a recipient, a message and a subject but I don't know how to add an attached file (the attached file is a file which is on the database and which is attached to a bug).
thanks
In fact, I took the code of email_send() and I added the code :
with $path like 'C:essai.txt' and $name like 'essai envoi'
Code: Select all
$mail->AddAttachment($path,$name);
I think that their idea is to attach the same file that was uploaded in an issue.cris wrote:In fact, I took the code of email_send() and I added the code :
with $path like 'C:essai.txt' and $name like 'essai envoi'Code: Select all
$mail->AddAttachment($path,$name);
For example:
You create a new issue and attach a file, then when the notification email is sent, it has the attached file embebed.
Cheers
I know it because I created this topic ...
For this question, I have a form where I get the file (named $f_file) to upload (the same code that upload file in Mantis), I give the $f_file['tmp_name'] to my email function, I send the email then I attache the file with the file_add() function.
Is my answer readable ?
For this question, I have a form where I get the file (named $f_file) to upload (the same code that upload file in Mantis), I give the $f_file['tmp_name'] to my email function, I send the email then I attache the file with the file_add() function.
Is my answer readable ?
yeah, guess socris wrote:I know it because I created this topic ...
For this question, I have a form where I get the file (named $f_file) to upload (the same code that upload file in Mantis), I give the $f_file['tmp_name'] to my email function, I send the email then I attache the file with the file_add() function.
Is my answer readable ?
I'm going to try this out and see what's what