예제 #1
0
파일: Common.cs 프로젝트: mmorfin/CreeSer
    public static void SendMailByDictionary(Dictionary <string, string> dicEmailInfo, Dictionary <string, Stream> dicFiles, string emailTo, String Key, string razon, string comentarios, string fumigacion)
    {
        clsEmail email = new clsEmail(Key);

        try
        {
            email.setMessage(dicEmailInfo);
            email.setFiles(dicFiles);
            email.ToAdress = emailTo;
            email.Send(razon, comentarios, fumigacion);
        }
        catch (Exception ex)
        {
            throw new Exception(ex.Message);
        }
    }
예제 #2
0
    //correo para solicitar confirmación de cuenta
    public static void SendMailByDictionary(Dictionary <string, string> dicEmailInfo, Dictionary <string, Stream> dicFiles, string emailTo, String Key, string mail, string token)
    {
        clsEmail email = new clsEmail(Key);

        try
        {
            email.setMessage(dicEmailInfo);
            email.setFiles(dicFiles);
            email.ToAdress = emailTo;
            email.Send(mail, token);
        }
        catch (Exception ex)
        {
            throw new Exception(ex.Message);
        }
    }
예제 #3
0
    //correo para solicitar confirmación de cuenta
    public static void SendMailByDictionary(Dictionary<string, string> dicEmailInfo, Dictionary<string, Stream> dicFiles, string emailTo, String Key, string mail, string token)
    {
        clsEmail email = new clsEmail(Key);
        try
        {

            email.setMessage(dicEmailInfo);
            email.setFiles(dicFiles);
            email.ToAdress = emailTo;
            email.Send(mail, token);
        }
        catch (Exception ex)
        {
            throw new Exception(ex.Message);
        }
    }