-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Robert Virkus
committed
Apr 15, 2020
1 parent
620e316
commit f867316
Showing
6 changed files
with
38 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,21 +100,12 @@ void main() { | |
}); | ||
|
||
test('SmtpClient sendMessage', () async { | ||
var message = MimeMessage(); | ||
message.from = <MailAddress>[ | ||
MailAddress.fromEnvelope( | ||
'Rita Levi-Montalcini', null, 'Rita.Levi-Montalcini', 'domain.com') | ||
]; | ||
message.recipients.add('[email protected]'); | ||
message.headerRaw = 'From: [email protected]\r\n' | ||
'To: [email protected]\r\n' | ||
'Subject: Enough MailKit Hello 2\r\n' | ||
'Message-ID: chat\$232.123o29892232.domain.com\r\n' | ||
'Date: Mon, 13 Jan 2020 15:47:37 +0100\r\n' | ||
'Conten-Type: text/plain; charset=utf-8; format=flowed\r\n' | ||
'Content-Transfer-Encoding: 8bit\r\n'; | ||
message.bodyRaw = | ||
'Today as well.\r\nOne more time:\r\nHello from Enough MailKit!'; | ||
var from = | ||
MailAddress('Rita Levi-Montalcini', '[email protected]'); | ||
var to = [MailAddress('Rosalind Franklin', '[email protected]')]; | ||
var message = MessageBuilder.buildSimpleTextMessage(from, to, | ||
'Today as well.\r\nOne more time:\r\nHello from Enough MailKit!', | ||
subject: 'enough_mail hello'); | ||
var response = await client.sendMessage(message); | ||
expect(response.type, SmtpResponseType.success); | ||
expect(response.code, 250); | ||
|