Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save AnkurVyas-BTC/8db4fa5da6e66e954fdf91b6a492d6b0 to your computer and use it in GitHub Desktop.

Select an option

Save AnkurVyas-BTC/8db4fa5da6e66e954fdf91b6a492d6b0 to your computer and use it in GitHub Desktop.
How to write formatted code when there are more parameters
def send_mail(source)
Mailer.deliver( to: 'ankurvy1@gmail.com',
from: 'someone@someone.com',
subject: 'Message subject',
body: source.text)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment