Error in writing Data

Skip Navigation LinksHome  /  Support  /  Forums  /  FireMail for .NET (v1)  /  Error in writing Data

FireMail for .NET (v1) Forum

 Nov 05 2007 5:54 PM
Hi,

I am testing FireMail but keep getting this error when trying to send an e-mail:

Error in writing Data, possibly no valid recipients.
Source Error:
Line 545:
Line 546:
Line 547:      msg.Send("localhost")  <- This is the error line
Line 548:
Line 549:      Return ""
 
Source (VS2005, WinXP, .net 2.0.5xxxx):

Dim msg As ceTe.FireMail.PlainTextMessage = New ceTe.FireMail.PlainTextMessage("Michael Nielsen", "michael@nielsen.com")
msg.To.Add("michael@nielsen.com", "michael@nielsen.com")
msg.Subject = "test"
msg.Body = "test body"
msg.Send("localhost")


 Nov 06 2007 9:03 AM
Posted by a ceTe Software moderator
Hello,

You will have to use the SMTP server name as the parameter in the Send method of the PlainTextMessage object instead of the "localhost" and this will solve your problem.

Thanks,
ceTe Software Support Team.
 May 25 2011 3:27 PM
here's the error I got:

Specified argument was out of the range of valid values.
Parameter name: size   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at zz95a.b(Byte[] A_0)
   at zz95a.b()
   at ceTe.FireMail.Message.Send(Connection connection)
 May 25 2011 3:32 PM
Hi all:

I got the following error while sending the emails through the firemail:

Specified argument was out of the range of valid values.
Parameter name: size   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at zz95a.b(Byte[] A_0)
   at zz95a.b()
   at ceTe.FireMail.Message.Send(Connection connection)



Thanks
 May 25 2011 4:56 PM
Posted by a ceTe Software moderator
Hello,

Please give us more info regarding this error. Please send an email to support@cete.com with the following information so we can look into this further.

1. Code you are using to send the email.
2. Are you sending any attachments? If so how many?
3. Are you using a valid SMTP server?
4. Are all the emails sent using this code failing with this error?

Thanks,
ceTe Software Support Team.
 

All times are US Eastern Standard time. The time now is 11:52 PM.