Skip to content

Commit

Permalink
Fix doc comment style/layout. See vibe-d#751.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Aug 3, 2014
1 parent 4006dce commit 2b5fea6
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions source/vibe/mail/smtp.d
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ final class Mail {
}

/**
Sends an email using the given settings and mail. Your message must contain a
valid $(D Mail) object and should define the headers "To", "From", Sender" and "Subject".
Sends an e-mail using the given settings.
The mail parameter must point to a valid $(D Mail) object and should define
at least the headers "To", "From", Sender" and "Subject".
Valid headers can be found at http://tools.ietf.org/html/rfc4021
*/
void sendMail(SMTPClientSettings settings, Mail mail)
Expand Down Expand Up @@ -204,10 +207,11 @@ void sendMail(SMTPClientSettings settings, Mail mail)
}

/**
* The following example demonstrates the complete construction of a
* valid e-mail object with UTF-8 encoding. The Date header, as demonstrated,
* must be converted with the local timezone using the $(D toRFC822DateTimeString) function.
*/
The following example demonstrates the complete construction of a valid
e-mail object with UTF-8 encoding. The Date header, as demonstrated, must
be converted with the local timezone using the $(D toRFC822DateTimeString)
function.
*/
unittest {
import vibe.inet.message;
import std.datetime;
Expand Down

0 comments on commit 2b5fea6

Please sign in to comment.