how to use database mail from SSIS
The SSIS Send mail task connects directly to a SMTP server - it doesn't use database mail.  If you want to use database mail, you would invoke it through an 'Execute T-SQL Statement' task that calls a stored procedure that wraps the database mail facility, or something similar.