HyperLink as Emailer?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 03/01/2007 at 14:01, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   8.2-10.0 
    Platform:   Windows  ; Mac  ;  Mac OSX  ; 
    Language(s) :     C++  ;

    ---------
    Would it be possible to use the HyperLinkCustomGui to set up an email to be sent to the developer (me)? Any other way if not? It would need to be completely set up - email address, subject, either have a file attachment or the file as text message content, and then sent all with a button click.

    Thank you very much,
    Robert



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 05/01/2007 at 04:01, xxxxxxxx wrote:

    Since 9.6 it should work like this (pseudocode, haven´t tried it! so check) :

    if(SendMailAvailable())
    SendMail("Subject", "target@mail.com", "copy@mail.com", NULL, FilenameOfAttachements(NULLterminated),"Body", SENDMAIL_SENDDIRECTLY);

    However I doubt you can use a HyperLinkfield. It will instantly call your browser when you click on it. Maybe you can catch the message in the Message function and then do your own operations? I don´t know honestly. :)

    Is that what you wanted? Happy new year Rob!



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 05/01/2007 at 07:19, xxxxxxxx wrote:

    Ah, thank you, Samir!

    That counts out doing it in 8.2, 8.5, and 9.1 then I take it. :) I'd rather not get into trying to add-in and use other APIs to do this.

    Robert



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 05/01/2007 at 11:34, xxxxxxxx wrote:

    So far, really bad. Crashes every time - I've sent the BugReport to Maxon as additional assistance. Email addresses below have been changed to protect the innocent (me!). I've tried with/without attachments and with/without SENDMAIL_SENDDIRECTLY. Here's the code:

         // Can email be sent?  
         if (!SendMailAvailable())  
         {  
              MessageDialog(GeLoadString(IPPS_MSG_CANTEMAIL));  
              return;  
         }  
         // Does the IPPLog.txt file exist?  
         if (!GeFExist(log_Filename))  
         {  
              MessageDialog(GeLoadString(IPPS_MSG_EMAILNOLOG));  
              return;  
         }  
         // Does the IPPLog.txt file contain anything?  
         AutoAlloc<BaseFile>     bfile;  
         if (bfile)  
         {  
              if (bfile->Open(log_Filename))  
              {  
                   if (bfile->GetLength() < 300)  
                   {  
                        MessageDialog(GeLoadString(IPPS_MSG_EMAILLOGEMPTY));  
                        return;  
                   }  
                   bfile->Close();  
              }  
         }  
         // Let user add text to email message body  
         EmailMsgDialog     emdialog;  
         emdialog.Open(-1,-1, 400, 320);  
         if (!emdialog.GetResult())     return;  
         Filename*     attach[2];  
         attach[0] =     &log;_Filename;  
         attach[1] =     NULL;  
         String          toEmail =     "x@y";  
         String          bccEmail =     "y@z";  
         // Send email with IPPLog.txt as attachment to me for examination  
         if (SendMail(String("interPoser Pro Report Log"), &toEmail;, NULL, &bccEmail;, attach[0], emdialog.GetUserMsg(), SENDMAIL_SENDDIRECTLY))  
                   MessageDialog(GeLoadString(IPPS_MSG_EMAILSENT));  
         else     MessageDialog(GeLoadString(IPPS_MSG_EMAILFAILED));  
    

    Thank you very much,
    Robert


Log in to reply