Menu

General Bugs

Bug Report
2015-04-11
2015-10-24
  • Anonymous

    Anonymous - 2015-02-03

    The Date of message is not actual. For example today is: 03.02.2015 18:42 but Date of sended message is 03.01.2015 00:00

     
  • Marc Kotlaris

    Marc Kotlaris - 2015-04-09

    The Date Header did not work for me in Outlook; it shows some weird Date and Time.
    This worked for me:

    DateTimeOffset now = DateTime.Now;
    buf.Append(SmtpCommands.Date);
    buf.Append(now.ToString("r"));
    

    But I haven't done any serious testing

     
    • Araz Farhang Dareshuri

      Thanks for using AIM, I will appreciate if you can provide the code that didn't work and output

       
      • Anonymous

        Anonymous - 2015-04-28

        Hi.
        I modify SendMail in SmtpSocketClient (Line 797) : //buf.Append(today.ToLongDateString());
        I changed with
        buf.Append(GetRFC822Date(today));
        where:
        private static string GetRFC822Date(DateTime date)
        {
        int offset = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).Hours;
        string timeZone = "+" + offset.ToString().PadLeft(2, '0');

                if (offset < 0)
                {
                    int i = offset * -1;
                    timeZone = "-" + i.ToString().PadLeft(2, '0');
                }
        
                return date.ToString("dd MMM yyyy HH:mm:ss " + timeZone.PadRight(5, '0'));
            }
        

        Bye

         
    • Anonymous

      Anonymous - 2016-03-03

      In your code, what kind of object is variable buf?

       
  • Araz Farhang Dareshuri

    thanks for your helps and support AiM is free and open source and forever needs your help. WE WILL ADD THIS IN OUR NEXT RELEASE

     
  • Anonymous

    Anonymous - 2015-09-15

    I have the same problem with the date message, value sent is different than actual

     
  • Anonymous

    Anonymous - 2015-09-15

    I have the same problem with the date message, value sent is different than actual

     
  • Fabio

    Fabio - 2015-10-24

    I hi think the correct function must be

            private static string GetRFC822Date(DateTime date) {
                return date.ToUniversalTime().ToString("r");
            }
    
     

    Last edit: Fabio 2015-10-24
  • Anonymous

    Anonymous - 2016-03-03

    When will a new release which solves this time issue be released?

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.