Fail to send Email with MBSCurl

Hi all,

I am using CURLEmailMBS to help me to send email. In debug mode, emails sent out successfully, but when I build a cgi to run on Linux Apache, it pops an exception as below:

All the entries, email address, subject, content … and settings are the same during debug mode and deploy mode. Please help.

Unhandled NilObjectException
Message:

Stack:
TextOutputStream.!Append%o%o
UploadCURL.Constructor%%o
SendEmail.DoUpload
SendEmail.SendEmail%b%ssssss
RegisterWebPage.RegisterWebPage.SendEmailtoUser%%o<RegisterWebPage.RegisterWebPage>s
RegisterWebPage.RegisterWebPage.ProceedRegister%%o<RegisterWebPage.RegisterWebPage>
RegisterWebPage.RegisterWebPage.ProceedButton_Action%%o<RegisterWebPage.RegisterWebPage>o
Delegate.IM_Invoke%%o
AddHandler.Stub.29%%
WebButton._ExecuteEvent%b%osA1v
WebControl.!_ExecuteEvent%b%ssA1v
WebSession._HandleEvent%%oso<_HTTPServer.HTTPRequestContext>
WebSession._HandleRequest%i8%oso<_HTTPServer.HTTPRequestContext>
WebApplication._HandleHTTPRequest%%oo<_HTTPServer.HTTPRequestContext>
_CGIGateway.GatewayRequestThread.Event_Run%%o<_CGIGateway.GatewayRequestThread>

Maybe you check the folder item you pass to TextOutputStream.Append function for being nil?

Is that maybe to write debug messages to a log file?

Thanks Christian, it seems that there is a log file generated on the desktop, can you teach me how to toggle it off? But if there is a nil exception, why is that the email still send out in debug mode?

just read the code and maybe comment out what you don’t want.