Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Sending "On behalf of" Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Dunc_NZ
Newbie
Newbie
Avatar

Joined: 04 May 2010
Location: United Kingdom
Online Status: Offline
Posts: 3
Posted: 04 May 2010 at 7:25am | IP Logged Quote Dunc_NZ

Hi,

I've been using MailBee v3.1.2.90 with good success for some time now, sending from the name and email address of a user logged into my website.

The mailserver I've been using has been updated to require a valid local email address, which seems to be becoming the standard. This has killed my ability to send messages from the website in the format I want to.

I've seen emails being sent from a given address "on behalf of" someone else, which displays both the sender email and the reply-to address, and when someone replies to the message, it goes to the replyto address.

I've tried setting the replyto address with an EmailAddressCollection containing just the one EmailAddress on the MailBee component, but it seems to just ignore it and send from the "from" address.

How can I send from a different address to the replyto address?

Thanks in advance,

Duncan
Back to Top View Dunc_NZ's Profile Search for other posts by Dunc_NZ
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 04 May 2010 at 8:03am | IP Logged Quote Igor

Even though the topic was placed under MailBee ActiveX SMTP, I believe this is about MailBee.NET SMTP, right?

I must say, I don't really understand the problem. Did you try specifying ReplyTo property? This way, you can have different From and Reply-To addresses. Is this what you need?

You can also send a message from email address different from the one specified in From header using this overload of Smtp.Send method.

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

Joined: 04 May 2010
Location: United Kingdom
Online Status: Offline
Posts: 3
Posted: 04 May 2010 at 9:13am | IP Logged Quote Dunc_NZ

Hi Igor,

My apologies - in a moment of genius, I did post to the wrong forum. If you can move it to the right one, I would appreciate it.

I did try to specify the ReplyTo property:

// Set sender as a valid name for mailserver
smtp.From = new EmailAddress("info@mysite.co.uk", "My Site");

// Set replyto as the logged on user
EmailAddressCollection emailAddressCollection = new EmailAddressCollection();
emailAddressCollection.Add(new EmailAddress("someoneelse@somewhere.com", "Alias user"));
smtp.ReplyTo = emailAddressCollection;

...but that doesn't seem to work.

I've looked at the Send overload, but that only seems to allow an email address - no friendly sender name?
Back to Top View Dunc_NZ's Profile Search for other posts by Dunc_NZ
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 05 May 2010 at 2:49am | IP Logged Quote Igor

Code:
smtp.ReplyTo = emailAddressCollection;
...but that doesn't seem to work.


First things first, lets see what exactly this one should do. When you specify Reply-To address, and recipient clicks "Reply" in his/her email client, message is supposed to be sent to Reply-To address, not From. Considering this, are you sure that it's what you need and that it doesn't work?

Code:
I've looked at the Send overload, but that only seems to allow an email address - no friendly sender name?


It's not required there as its never visible, recipient would still see "From" (and Reply-To, if his/her client is configured for this). The email address specified in Send method call is used if message could not reach the recipient. Delivery status message (also known as bounce message) will be send to this address, not to one specified in From.

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

Joined: 04 May 2010
Location: United Kingdom
Online Status: Offline
Posts: 3
Posted: 06 May 2010 at 2:07am | IP Logged Quote Dunc_NZ

Hi Igor,

I've managed to get the version with no send parameters working, there was an issue with how I was setting the "from" values.

I never did manage to get the version using parameters on the send command running; for some reason despite providing a replyto address and a from email address, the email came from 'no recipient'.

Thanks for your help.
Back to Top View Dunc_NZ's Profile Search for other posts by Dunc_NZ
 

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