We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 151a956 commit e64c0d1Copy full SHA for e64c0d1
1 file changed
README.md
@@ -131,11 +131,11 @@ email.setHtml("<h1>My first email through SendGrid");
131
### Attachments
132
133
```java
134
-email.addAttachment("contents", "text.txt");
+email.addAttachment("text.txt", "contents");
135
// or
136
-email.addAttachment(new File("./file.txt"), "text.txt");
+email.addAttachment("image.png", new File("./image.png"));
137
138
-email.addAttachment(new InputStream(new File("./file.txt")), "text.txt");
+email.addAttachment("text.txt", new InputStream(new File("./file.txt")));
139
```
140
141
## [X-SMTPAPI](http://sendgrid.com/docs/API_Reference/SMTP_API/index.html)
0 commit comments