Author |
|
hr-pb Newbie
Joined: 06 December 2008
Online Status: Offline Posts: 12
|
Posted: 16 June 2009 at 7:57am | IP Logged
|
|
|
how to forward email to other receipment ?
I have message index on server...
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 16 June 2009 at 8:13am | IP Logged
|
|
|
In order to forward message as attachment, you can use ForwardAsAttachment method. If you need to forward message as text, just modify existing MailMessage object.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
hr-pb Newbie
Joined: 06 December 2008
Online Status: Offline Posts: 12
|
Posted: 17 June 2009 at 2:19am | IP Logged
|
|
|
Igor wrote:
In order to forward message as attachment, you can use ForwardAsAttachment method. If you need to forward message as text, just modify existing MailMessage object.
--
Regards,
Igor, AfterLogic Support |
|
|
I have error :
MailBee.MailBeeSocketRefusedException: Socket connection has been refused by remote host
my code :
Code:
Smtp smtp = new Smtp();
smtp.SmtpServers.Add("mail.hr.pl");
MailMessage newMsg = msg.ForwardAsAttachment();
newMsg.From.AsString = "skrzynka@hr.pl";
newMsg.To.AsString = "pby@hr.pl";
newMsg.Subject = "Problem";
newMsg.BodyPlainText = "";
Smtp.QuickSend(newMsg);
|
|
|
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 17 June 2009 at 2:40am | IP Logged
|
|
|
Are you sure that SMTP server you're using requires no authentication? Try using this overload of SmtpServers.Add method, e.g.:
Code:
smtp.SmtpServers.Add("mail.hr.pl","username","password"); |
|
|
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
hr-pb Newbie
Joined: 06 December 2008
Online Status: Offline Posts: 12
|
Posted: 17 June 2009 at 2:47am | IP Logged
|
|
|
Igor wrote:
Are you sure that SMTP server you're using requires no authentication? Try using this overload of SmtpServers.Add method, e.g.:
Code:
smtp.SmtpServers.Add("mail.hr.pl","username","password"); |
|
|
--
Regards,
Igor, AfterLogic Support |
|
|
im sure
this works fine :
Code:
Smtp smtp = new Smtp();
smtp.SmtpServers.Add("mail.hr.pl");
smtp.From.AsString = this.textBox1.Text + "<noreply@hr.pl>";
smtp.To.AsString = odbiorca;
smtp.Subject = this.textBox2.Text;
smtp.BodyHtmlText = this.textBox3.Text;
smtp.Send();
|
|
|
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 17 June 2009 at 2:59am | IP Logged
|
|
|
But you're not using Send in your code. Try using Send instead of QuickSend. For example, does this one work for you?
Code:
Smtp smtp = new Smtp();
smtp.SmtpServers.Add("mail.hr.pl");
smtp.Message = msg.ForwardAsAttachment();
smtp.From.AsString = "skrzynka@hr.pl";
smtp.To.AsString = "pby@hr.pl";
smtp.Subject = "Problem";
smtp.BodyPlainText = "";
Smtp.Send(); |
|
|
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
hr-pb Newbie
Joined: 06 December 2008
Online Status: Offline Posts: 12
|
Posted: 17 June 2009 at 3:22am | IP Logged
|
|
|
Igor wrote:
But you're not using Send in your code. Try using Send instead of QuickSend. For example, does this one work for you?
Code:
Smtp smtp = new Smtp();
smtp.SmtpServers.Add("mail.hr.pl");
smtp.Message = msg.ForwardAsAttachment();
smtp.From.AsString = "skrzynka@hr.pl";
smtp.To.AsString = "pby@hr.pl";
smtp.Subject = "Problem";
smtp.BodyPlainText = "";
Smtp.Send(); |
|
|
it works,thx
--
Regards,
Igor, AfterLogic Support |
|
|
|
Back to Top |
|
|
Mojesionsyy Newbie
Joined: 24 February 2010 Location: United States
Online Status: Offline Posts: 1
|
Posted: 24 February 2010 at 3:22am | IP Logged
|
|
|
That is very nice site according to me.......There are many different topics available here so I hope that you will read care fully and take more information......
|
Back to Top |
|
|