我在用户创建记录后发送电子邮件,我正在发送记录to:
@email的一些数据,我需要发送到cc:cc@email
所有记录信息。我怎样才能做到这一点?
def appointment_confirmation(appointment)
@appointment = appointment
@greeting = "Hi"
mail to: appointment.email, subject: "Appointment Confirmation", cc: "cc@email"
end