I have the following code:
$message->to($user->W_EMAIL_ADDRESS, '')
->subject($user->W_SUBJECT.$user->W_SITE_ADDRESS);
Is there any possible way to check the existence of the file before put the following line?
$message->attach($user->W_PATH_FILE);
many thanks