# File lib/mailfactory.rb, line 219
  def generate_boundary()
    randomstring = Array.new()
    1.upto(25) {
      whichglyph = rand(100)
      if(whichglyph < 40)
        randomstring << (rand(25) + 65).chr()
      elsif(whichglyph < 70)
        randomstring << (rand(25) + 97).chr()
      elsif(whichglyph < 90)
        randomstring << (rand(10) + 48).chr()
      elsif(whichglyph < 95)
        randomstring << '.'
      else
        randomstring << '_'
      end
    }
    return("----=_NextPart_#{randomstring.join()}")
  end