Exemplo n.º 1
0
    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);
        }
    }
Exemplo n.º 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);
        }
    }
Exemplo n.º 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);
        }
    }