Branch: Tag:

2000-10-03

2000-10-03 08:25:13 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

added (cautious) \n -> \r\n converter for simple mail (it's suposed to be simple)

Rev: lib/modules/Protocols.pmod/SMTP.pmod:1.14

102:       void simple_mail(string to, string subject, string from, string msg)    { +  if (search(msg,"\r\n")==-1) +  msg=replace(msg,"\n","\r\n"); // *simple* mail /Mirar    send_message(parse_addr(from), ({ parse_addr(to) }),    (string)MIME.Message(msg, (["mime-version":"1.0",    "subject":subject,