Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: forward email Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
hr-pb
Newbie
Newbie


Joined: 06 December 2008
Online Status: Offline
Posts: 12
Posted: 16 June 2009 at 7:57am | IP Logged Quote hr-pb

how to forward email to other receipment ?
I have message index on server...
Back to Top View hr-pb's Profile Search for other posts by hr-pb
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 16 June 2009 at 8:13am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
hr-pb
Newbie
Newbie


Joined: 06 December 2008
Online Status: Offline
Posts: 12
Posted: 17 June 2009 at 2:19am | IP Logged Quote hr-pb

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 View hr-pb's Profile Search for other posts by hr-pb
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 17 June 2009 at 2:40am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
hr-pb
Newbie
Newbie


Joined: 06 December 2008
Online Status: Offline
Posts: 12
Posted: 17 June 2009 at 2:47am | IP Logged Quote hr-pb

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 View hr-pb's Profile Search for other posts by hr-pb
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 17 June 2009 at 2:59am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
hr-pb
Newbie
Newbie


Joined: 06 December 2008
Online Status: Offline
Posts: 12
Posted: 17 June 2009 at 3:22am | IP Logged Quote hr-pb

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 View hr-pb's Profile Search for other posts by hr-pb
 
Mojesionsyy
Newbie
Newbie


Joined: 24 February 2010
Location: United States
Online Status: Offline
Posts: 1
Posted: 24 February 2010 at 3:22am | IP Logged Quote Mojesionsyy

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 View Mojesionsyy's Profile Search for other posts by Mojesionsyy Visit Mojesionsyy's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide