7 years ago
2
Topic

Hie everybody :)

Voila, i've done a field transfert file and a field email... i've set P.J option of my email field with the name of my transfert file field to have a P.J with the email i send.

BUT when the email is send, the file is not yet in the server... the mail is send BEFORE the transfert is done... so i don't receive the P.J with the email :(

I know it, because when i put a DIE(); just before the line who send the email, i check my server, and the file is not yet here... so FIRST the email is send and AFTER the file transfert is done... and to be sure, i've send again an email with the same file and here, it's work, because the file is already in the server...

Could you explain me what to do please ?

thx

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
1
Level 1

Emails are sent onAfterStore, so files should be there already.

7 years ago
0
Level 2

yeah, but the upload file too is on an afterstore...

I found where is the problem : if the PJ field is under the email field, the email is send before... but if the PJ field is set before the email field, the email is sent after the upload files...

SO you should precise to place the email field AFTER the PJ field, if not, the email is not send with the PJ !

thx

Get a VIP membership