В вашем приложении в каталоге config
вы найдете файл outgoing_mail.yml
, который вы должны предоставить, как следующую конфигурацию для настройки SMTP:
development:
address: smtp.gmail.com
enable_starttls_auto: true
port: "587"
user_name: support@example.com
password: ************
authentication: "login"
domain: gmail.com
outgoing_address: support@example.com
default_name: Canvas
test:
delivery_method: "test"
production:
address: smtp.gmail.com
enable_starttls_auto: true
port: "587"
user_name: support@example.com
password: ************
authentication: "login"
domain: gmail.com
outgoing_address: support@example.com
default_name: Canvas
# If receiving mail from multiple inboxes (see incoming_mail.yml.example),
# you'll want to include those addresses in a reply_to_addresses array so
# Canvas will select the Reply-To field of outgoing messages from all of the
# incoming mailboxes.
multiple_inboxes:
address: smtp.gmail.com
enable_starttls_auto: true
port: "587"
user_name: support@example.com
password: ************
authentication: "login"
domain: gmail.com
outgoing_address: support@example.com
default_name: Canvas
reply_to_addresses:
- "canvas1@example.com"
- "canvas2@example.com"
- "canvas3@example.com"
- "canvas4@example.com"