On Apr 13, 2006, at 10:41 PM, Robert Carroll wrote:

Hi Kevin,

You are right, I should have said that the entire message appears in the viewer pane.

What I am referring to is that with other "normal" email, the first lines at the top of the viewer pane are the "from:', 'Subject:', date", and 'To:' fields, then there is a grey line below which the body of the email follows.

The email generated with the RB code below shows only the subject & date above this line. The from address, to address and some of the header info appears below the line before the correct body of the message. This is the text shown in the 5 lines quoted at the end of my previous post.

I'd just like the email to appear as having a sender address. In the in box list, these emails show a blank space for the sender, but do show the subject properly.
On Apr 13, 2006, at 2:54 PM, Robert Carroll wrote:

Hi,

I am having a problem getting the from address to show up properly
in an email created and sent with RB 5.5.5.

Using:

  mail = New EmailMessage
  mail.fromAddress = "[EMAIL PROTECTED]"
  mail.subject = /"test"
  mail.bodyPlainText = "test"
  mail.headers.appendHeader "X-Mailer","RSM Mailer"

Something like this code works for me.

  mail = new EmailMessage
  mail.FromAddress = "[EMAIL PROTECTED]"
  mail.Subject = "A subject"
  mail.BodyPlainText = "bodytext "
  mail.AddRecipient "[EMAIL PROTECTED]"
  mailSocket = new SMTPSocket
  mailSocket.port = 25
  mailSocket.address = "smtp.server.com"
  mailSocket.Messages.Append mail
  mailSocket.SendMail

Do you have the AddRecipient in the code somewhere and just left it out of your post. If that's the case, then my second guess is that it has something to do with the appendHeader. What happens if you remove it.

You can also look at the raw source of the message in Mail.app and see if anything jumps out at you as being different from a regular email.

Kevin

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to