using AegisImplicitMail; IConfiguration _config; MimeMailer _oSMTPAIMClient; public MessageSender(IConfiguration config) { public Task SendEmailAsync(string email, string subject, string message) { _oSMTPAIMClient = new MimeMailer( _config.GetValue<string>("Email:Host"), // (smtp.office365.com) _config.GetValue<int>("Email:Port") //465 ); _oSMTPAIMClient.Credentials = new System.Net.NetworkCredential( _config.GetValue<string>("Email:Username"), _config.GetValue<string>("Email:Password") ); _oSMTPAIMClient.EnableImplicitSsl...
Hi and thank for using AIM, it is very hard to give you an answer based on what you provide, please send the code and logs On 24 Sep 2020, at 4:38 PM, bysiu bysiu@users.sourceforge.net wrote: Hi, Maybe I'm doing something wrong ? I've got: host: smtp.office365.com port: 587 EnableImplicitSsl: true (nor false) - same result SslType: SslMode.Tls (nor Auto), for Ssl - connection is droped at all (it also automatically changes EnableImplicitSsl to true). 451 5.7.3 STARTTLS is required to send mail @...
Hi, Maybe I'm doing something wrong ? I've got: host: smtp.office365.com port: 587 EnableImplicitSsl: true (nor false) - same result SslType: SslMode.Tls (nor Auto), for Ssl - connection is droped at all (it also automatically changes EnableImplicitSsl to true).
Hello, I'm experiencing the same problem, my language is Brazilian Portuguese, and I've tested all the encods but none work for the subject, the body is ok, can someone help me? This library is perfect, it fulfills my need, but I would really need the subject spelled correctly. Thanks!
Hello, I'm experiencing the same problem, my language is Brazilian Portuguese, and I've tested all the encods but none work for the subject, the body is ok, can someone help me? This library is perfect, it fulfills my need, but I would really need the subject spelled correctly. ThanksThanksThanksThanksThanksThanksThanksThanks
I found that this feature does not work. It adds the attachment as inline only and all mail servers reject this. var ms = new MemoryStream(<byte[]>); var attachment = new MimeAttachment(ms, <file name="">, new ContentType("application/pdf"), AttachmentLocation.Attachmed); mymessage.Attachments.Add(attachment);</file></byte[]>
Please have a look at https://sourceforge.net/p/netimplicitssl/tickets/4/?page=1&limit=25#734b https://sourceforge.net/p/netimplicitssl/tickets/4/?page=1&limit=25#734b On 28 Feb 2020, at 4:27 AM, themistoklis sarigiorgis starmanf16v@users.sourceforge.net wrote: fixed it by dowloading your code at github and replacing the dll file at my project... [tickets:#4] https://sourceforge.net/p/netimplicitssl/tickets/4/ Encoding Status: accepted Milestone: 2.0 Labels: encoding unicode AIM Languedge Created:...
Hi, 1.0.3.0 wouldn't support https://sourceforge.net/p/netimplicitssl/tickets/4/?page=1&limit=25#734b
fixed it by dowloading your code at github and replacing the dll file at my project...
Hello I'm using 1.0.3.0. I'm Greek. Subject encoding has problem. => ?? mailMessage.SubjectEncoding = Encoding.UTF8; mailMessage.Subject = "Θελω να μου βρείτε λύση"; // <= display text is "??" help me, please... Best Regards. Themis
fix by Jon Bush - works perfectly!! https://sourceforge.net/p/netimplicitssl/tickets/4/?page=1&limit=25#734b
Hi, how can I add attachment as Stream?
Mime mailer is busy already, please try later
Send Date Time Wrong
Sure, I would like to. I will check my code base, it's quite old and archived. I will get back to you in couple of days. Srikanth Anandateertha +91 9538614121 On Tue, 16 Apr 2019 at 10:23, Araz Farhang Dareshuri nilnull@users.sourceforge.net wrote: may I ask if you can help us with this ? [tickets:#15] https://sourceforge.net/p/netimplicitssl/tickets/15/ Need support for alternateviews* Status: open Milestone: 2.0 Labels: Alternateviews Inline images Created: Fri Feb 02, 2018 03:40 AM UTC by Srikanth...
may I ask if you can help us with this ?
Error when adding attachment
check our github for mono version
Add support for mono
Email not send if attachment used
Email not send if attachment used
Fix: Adding an attachment results to error '554 Too long line was received.' from server.
Proposed fix for Ticket #17 (Email not send if attachment used)
Fix: Adding an attachment results to error '554 Too long line was received.' from server.
Great, would you be kind enough to do a pull request?
Attachment is sent as a base64-encoded string and it looks like some email servers (hMailServer in my case) have limits for string length . So basically I just split one huge line to smaller parts.
Added .gitignore
May I ask if you have any explenation for this?
Had the same issue, mail server reported: "554 Too long line was received" when I tried to add an attachment. Fixed it by adding "\r\n" to stream chunks in SmtpSocketClient.cs, at the end of SendAttachments() method: ... char[] bufln = new char[2] { '\r', '\n' }; while (num > 0) { _con.SendData(Encoding.ASCII.GetChars(fbuf, 0, num), 0, num); _con.SendData(bufln, 0, 2); // <-------- num = cs.Read(fbuf, 0, 2048); } ...
In my case, i get "250 2.1.0 OK" as response from SendMail(...), but no mail sended.
Works great for Chinese! Thanks! Holp this project will move to github.
Hello, my english is not so good. I'm using 1.0.3.0. I'm Korean. Subject and Sender Name encoding has problem. => ?? mailMessage.SubjectEncoding = Encoding.UTF8; mailMessage.Subject = "테스터"; // <= display text is "??" help me, please... Best Regards. KIM.
Email not send if attachment used
Error when adding attachment
I have seen you had fix quite few more issues in your own fork. It would be greate if you can contribute those changes as well.
this has a conflict with your previouse changes .
Merge /u/cbello/netimplicitssl/ branch isBodyHtmlFix into master
Fix ignored property IsBodyHtml
Implemented Stream-based MimeAttachments
Posting a screenshot. The attachment was created using a MemoryStream. Also, it contains a name with a space.
Also fixed the NullReferenceException with the SubjectEncoding
Implemented Stream-based MimeAttachments
Subject field has wrong encoding if you set next value - "Инвойс со складами №0-ИнвСкл-00000007 от 18.06.2018" If you download and compile sources the error will not go away. For me helped another solution. I use "Convert.ToBase64String" with one parameter instead of "TransferEncoder.ToBase64'" in GetEncodedSubject function. private string GetEncodedSubject() { if (MailMessage.SubjectEncoding.Equals(Encoding.ASCII)) { return MailMessage.Subject; } else { var encodingName = MailMessage.SubjectEncoding.BodyName.ToLower();...
Subject field has wrong encoding if you set next value - "Инвойс со складами №0-ИнвСкл-00000007 от 18.06.2018" If you download and compile sources the error will not go away. For me helped another solution. I use "Convert.ToBase64String" with one parameter instead of "TransferEncoder.ToBase64'" in GetEncodedSubject function. private string GetEncodedSubject() { if (MailMessage.SubjectEncoding.Equals(Encoding.ASCII)) { return MailMessage.Subject; } else { var encodingName = MailMessage.SubjectEncoding.BodyName.ToLower();...
attachment name
Fix ignored property IsBodyHtml
Fix NullReferenceException when SubjectEncoding is null
Hi Great and thanks, would appriciate if you can help us. and provide us your changeset
I think, I kind of fixed this. Let me know if any assistance is needed on this front.
I mean bring this capaility: https://stackoverflow.com/a/11000938/5702399
Need support for alternateviews
string textBody = " <table border=" + "1 solid black" + " cellpadding=" + 0 + " cellspacing=" + 0 + " width = " + 400 + "><tr bgcolor='#4da6ff'><td><b>Column 1</b></td> <td> <b> Column 2</b> </td></tr>"; for (int loopCount = 0; loopCount < dt1.Rows.Count; loopCount++) { textBody += "<tr><td>" + dt1.Rows[loopCount]["email"] + "</td><td> " + dt1.Rows[loopCount]["pending"] + "</td> </tr>"; } textBody += "</table>"; this is my mail body but its not working.It displaying html tags in mail
string textBody = " <table border=" + "1 solid black" + " cellpadding=" + 0 + " cellspacing=" + 0 + " width = " + 400 + "><tr bgcolor='#4da6ff'><td><b>Column 1</b></td> <td> <b> Column 2</b> </td></tr>"; for (int loopCount = 0; loopCount < dt1.Rows.Count; loopCount++) { textBody += "<tr><td>" + dt1.Rows[loopCount]["email"] + "</td><td> " + dt1.Rows[loopCount]["pending"] + "</td> </tr>"; } textBody += "</table>"; this is my mail body but its not working.It displaying html tags in mial
string textBody = " <table border=" + "1 solid black" + " cellpadding=" + 0 + " cellspacing=" + 0 + " width = " + 400 + "><tr bgcolor='#4da6ff'><td><b>Column 1</b></td> <td> <b> Column 2</b> </td></tr>"; for (int loopCount = 0; loopCount < dt1.Rows.Count; loopCount++) { textBody += "<tr><td>" + dt1.Rows[loopCount]["email"] + "</td><td> " + dt1.Rows[loopCount]["pending"] + "</td> </tr>"; } textBody += "</table>"; this is my mail body but its not working.It displaying html tags in mial
string textBody = " "; for (int loopCount = 0; loopCount < dt1.Rows.Count; loopCount++) { textBody += ""; } textBody += "Column 1 Column 2 " + dt1.Rows[loopCount]["email"] + " " + dt1.Rows[loopCount]["pending"] + " "; this is my mail body but its not working.It displaying html tags in mial
Hi, Unfortunately this one is not in the priority list. However, doing of it is not that complicated . You will only need to have to format body when the text is set . Please keep me updated if you do it. Thanks On 2 Jan 2018, at 8:57 PM, Veena veenahosur@users.sf.net wrote: We are using same thing.Is this problem resolved? if so how to do it [tickets:#12] https://sourceforge.net/p/netimplicitssl/tickets/12/ How to use custom formatted HTML body Status: open Milestone: 1.0 Created: Thu Oct 20, 2016...
We are using same thing.Is this problem resolved? if so how to do it
please accept this, solved important bug
After downloading and compiling the sourcecode, I can confirm that encoding works well for Korean characters. Now, I am waiting for nuget package update. Thanks.
I downloaded the code, compiled it and it works for me. I used Encoding.UTF8 for my problem. Thank you very much.
I downloaded and compiled the code, since the latest code is still not available on Nuget. (help from @Erik Rocha Witkowski)
@Bùi Văn Nhân I tried with given .dll and also with nuget package AIM -Version 1.0.3. But this also did not work for me. Can you please specify which encoding you have used and is there any other propery to be set ? I am trying to add superscript in subject,e.g. Test™, but it is showing "Test?"
@Bùi Văn Nhân I tried with given .dll and also with nuget package AIM -Version 1.0.3. But this also did not work for me. Can you please specify which encoding you have used and is there any other propery to be set ?
I was successful. Thank you very much.
You need to download and compile the code, since the latest code still not avaliable on Nuget.
i'm using last version (Install-Package AIM -Version 1.0.3) Result subject "tiếng việt" -> "ti?ng vi?t"
Please try to check out our latest code, the subject encoding is believed to be implemented but yet to be tested. Please don't forget to inform us about the results
Hi Araz Farhang Dareshuri, I'm using 1.0.3.0 mailMessage.SubjectEncoding = Encoding.UTF8;//(unicode for vietnamese) mailMessage.Subject = "tiếng việt"; There's any fix to this? Thank you.
We wish to do so but need more features be solved and tested before a release.
No problem! Do you have plans on updating nuget?
I think my previous commit solves this matter
Thanks
enable subject encoding. Just merge SmtpSocketClient.cs file
Sorry, the title is wrong. Anyway, I think that adding support for .NET 4.5 async/await should be done to be able to write async controller actions that make use of AIM (with MVC 4 and above).
I have set the BCC email list with address, however these addresses are visible in the email which is received? This shouldnt be the case, is there a setting for hiding a BCC list?
End of line characters, /r/n, in email body get converted to white space.
Hi, I couldn't find a good sample code / example to send an email with an embedded...
yep, I'm interested. Please Share. Thanks
Having an issue whenever using a MimeMailAddress that contains an address and a name....
Hello, Please see attached source files that address following AIM issues: Fix: MailMessage.IsBodyHtml...
In your code, what kind of object is variable buf?
I have the same problem with the date message, value sent is different than actu...
I have the same problem with the date message, value sent is different than actu...
Send emails contain only date in "Date" header DATE: Thursday, March 10, 2016 It...
AegisImplicitMail.MimeMailMessage msg = new MimeMailMessage(); ... msg.IsBodyHtml...
Same for me!
When will a new release which solves this time issue be released?
Hi there ! I'm trying to get it works with unity 5. For Info I'm working in .NET...
i got same issue
The problem was due to sending asyncronous and disposing before the message had been...
I need to delete the attachment after sending it (a temporary PDF report) and I cannot...
applied
Added display name
Dear Naveen, I suspect that error has nothing todo with AIM. Its a generic c# error...
Hello Araz .. Thanks for replying back .. Following are the details - Message : The...
I have commited my changes in my branch
You can solved this issue?
the same problem
Got the same problem !
Thank you all for your support and choosing AIM, unfortunatly I could not fix this...