Upgrade to Pro — share decks privately, control downloads, hide ads and more …

O que devs precisam saber sobre envios de emails

O que devs precisam saber sobre envios de emails

Apresentação feita no GuruSP em Maio de 2015

Celso Crivelaro

May 30, 2015
Tweet

More Decks by Celso Crivelaro

Other Decks in Technology

Transcript

  1. O que devs precisam saber sobre envio de Emails Celso

    Crivelaro GURU-SP 30 de Maio de 2015
  2. S: 220 smtp.domain.com ESMTP Postfix C: HELO sender.example.org S: 250

    Helo sender.example.org, I am glad to meet you C: MAIL FROM: Bob <[email protected]> S: 250 OK C: RCPT TO:Alice <[email protected]> S: 250 OK C: DATA S: 354 End data with <CR><LF>.<LF><CR>
  3. C: DATA S: 354 End data with <CR><LF>.<LF><CR> C: From:

    "Bob Example" <[email protected]> C: To: "Alice Example" <[email protected]> C: Cc: [email protected] C: Date: Tue, 15 January 2008 16:02:43 -0500 C: Subject: Test message C: C: Hello Alice. C: This is a test message with 5 header fields and 4 lines in the message body. C: Your friend, C: Bob C: . S: 250 Ok: queued as 12345 C: QUIT S: 221 Bye
  4. Soft Bounces Hard Bounces 5.2.1 Mailbox disabled, not accepting messages

    5.5.2 The recipient’s mailbox is full 5.5.3 Too many recipients Pode retentar o envio Evitar a retentativa de envio 5.1.1 Bad destination mailbox address 5.6.1 Media not supported 5.1.2 Bad destination system address http://tools.ietf.org/html/rfc3463
  5. Multipart usando ActionMailer app/views/user_mailer welcome_email.text.erb welcome_email.html.erb Oi <%= @user.name %>,

    bem vindo! <div> Oi <strong><%= @user. name %></strong>, <br> Bem vindo! </div>