sendmail:fixed the bug that maintype may be referenced before assigned a value
sendmail:fixed the bug that maintype may be referenced before assigned a value

gongbudaizhe/bilib,gongbudaizhe/bilib,gongbudaizhe/bilib,gongbudaizhe/bilib