Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: Unique email with a different subject? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
juris
Groupie
Groupie


Joined: 27 June 2011
Location: Italy
Online Status: Offline
Posts: 72
Posted: 25 April 2015 at 12:14pm | IP Logged Quote juris

Hello,

Can I send a single email to multiple recipients but with a different subject for each recipient ?

Example:

// Set e-mail
mailer.Message.From = new EmailAddress("joe@company.com", "Joe T.");
mailer.Message.To.Add("jane@domain.com", "Jane D.");
mailer.Message.To.Add("mike@domain.com", "Mike R.");
mailer.Message.To.Add("john@domain.com", "John V.");
mailer.Message.To.Add("karl@domain.com", "Karl J.");
mailer.Message.Subject = "Message for jane";
mailer.Message.Subject = "Message for mike";
mailer.Message.Subject = "Message for john";
mailer.Message.Subject = "Message for karl";
mailer.Message.BodyPlainText = "plain-text message";
mailer.Message.Attachments.Add(@"C:\Docs\document1.doc");


Note: I need the email is unique (with different subject). Is there a way to do this?

Regards, Lello
Back to Top View juris's Profile Search for other posts by juris
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 27 April 2015 at 3:45am | IP Logged Quote Igor

While that can be done within a single session, you would need to call Send several times, adjusting email content (e.g. changing subject) for the particular recipient. You can find a sample of this here.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
juris
Groupie
Groupie


Joined: 27 June 2011
Location: Italy
Online Status: Offline
Posts: 72
Posted: 27 April 2015 at 9:15pm | IP Logged Quote juris

Hello Igor,

Not multiple single email, but single emails with different "subject" for each recipient (see example). I can do this with your library?

Regards, Lello
Back to Top View juris's Profile Search for other posts by juris
 
juris
Groupie
Groupie


Joined: 27 June 2011
Location: Italy
Online Status: Offline
Posts: 72
Posted: 27 April 2015 at 11:53pm | IP Logged Quote juris

Hello Igor,

Not multiple single email, but single emails with different "subject" for each recipient (see example below). I can do this with your library?

mailer.Message.From = new EmailAddress("joe@company.com", "Joe T.");
mailer.Message.To.AsString = "jane@domain.com, mike@domain.com, john@domain.com";
mailer.Message.Subject = "Message for jane";
mailer.Message.Subject = "Message for mike";
mailer.Message.Subject = "Message for john";
mailer.Message.BodyPlainText = "plain-text message";
mailer.Message.Attachments.Add(@"C:\Docs\document1.doc");

// Send unique e-mail.
mailer.Send();

Note: I need the email is unique (with different subject). I can do this with your library?


Regards, Lello
Back to Top View juris's Profile Search for other posts by juris
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 28 April 2015 at 2:46am | IP Logged Quote Igor

No, that's not possible - and I don't mean it's a limitation of MailBee, SMTP protocol itself doesn't allow that.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
long123
Newbie
Newbie
Avatar

Joined: 08 July 2015
Location: Armenia
Online Status: Offline
Posts: 5
Posted: 19 July 2015 at 11:52pm | IP Logged Quote long123

This even applies to those situations when all appears to be going well
Back to Top View long123's Profile Search for other posts by long123
 

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