You do not have permission to send to this recipient.

Last post 07-05-2010, 10:25 AM by saqib.razzaq. 5 replies.
Sort Posts: Previous Next
  •  06-21-2010, 8:52 AM 244539

    You do not have permission to send to this recipient. .NET

    I'm getting this error message when trying to send a mail item created by Aspose Network. Please can anyone provide me a solution (or a workaround)?

    Error:

    Your message did not reach some or all of the intended recipients.

     

          Subject:    Test Aspose Network

          Sent: 21/06/2010 11:39

     

    The following recipient(s) cannot be reached:

     

          Test on 21/06/2010 11:39

                You do not have permission to send to this recipient.  For assistance, contact your system administrator.

                MSEXCH:...

    Code:

    Dim loMailMessage As Aspose.Network.Mail.MailMessage

    loMailMessage = New Mail.MailMessage

    'loMailMessage.From = New Mail.MailAddress("test@test.be", "Test", True)

    'loMailMessage.From = New Mail.MailAddress("", "", True)

    loMailMessage.To.Add(New Mail.MailAddress("test@test.be", "Test", True))

    loMailMessage.Subject = "Test Aspose Network"

    loMailMessage.AddAttachment(New Mail.Attachment("C:\Documents and Settings\UserX\Desktop\test.ppt"))

    loMailMessage.HtmlBody = "<html><b>test</b> test</html>"

    Dim outlookMsg As MapiMessage = MapiMessage.FromMailMessage(loMailMessage)

    outlookMsg.SetMessageFlags(MapiMessageFlags.MSGFLAG_UNSENT + MapiMessageFlags.MSGFLAG_FROMME)

    outlookMsg.SetStringPropertyValue(MapiPropertyTag.PR_SENDER_EMAIL_ADDRESS, "")

    outlookMsg.SetStringPropertyValue(MapiPropertyTag.PR_SENDER_NAME, "")

    outlookMsg.SetStringPropertyValue(MapiPropertyTag.PR_SENT_REPRESENTING_EMAIL_ADDRESS, "")

    outlookMsg.SetStringPropertyValue(MapiPropertyTag.PR_SENT_REPRESENTING_NAME, "")

    outlookMsg.Save("d:\test.msg")

     
  •  06-21-2010, 3:21 PM 244624 in reply to 244539

    Re: You do not have permission to send to this recipient. .NET

    Hi,

    Could you please set the from address using MailMessage.From property, save the message in draft mode, open it with Outlook, manually delete the "From" address in Outlook and then send the email?

    Best Regards,
    Saqib Razzaq
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
     
  •  06-22-2010, 2:35 AM 244694 in reply to 244624

    Re: You do not have permission to send to this recipient.

    Attachment: Present (inaccessible)

    I'm sorry, I'm using outlook 2007, and it seems I can't change the from address. I'm only getting the To and CC box. (see attachment)

    Code:

    loMailMessage = New Mail.MailMessage

    loMailMessage.From = New Mail.MailAddress("test@test.be", "Test", True)

    loMailMessage.To.Add(New Mail.MailAddress("test@test.be", "Test", True))

    loMailMessage.Subject = "Test Aspose Network"

    loMailMessage.AddAttachment(New Mail.Attachment("C:\Documents and Settings\UserX\Desktop\test.ppt"))

    loMailMessage.HtmlBody = "<html><b>test</b> test</html>"

    Dim outlookMsg As MapiMessage = MapiMessage.FromMailMessage(loMailMessage)

    outlookMsg.SetMessageFlags(MapiMessageFlags.MSGFLAG_UNSENT)

    outlookMsg.Save("d:\test.msg")

     
  •  06-22-2010, 2:49 AM 244695 in reply to 244694

    Re: You do not have permission to send to this recipient.

    I found it, it's in Options / Show From.

    With the from box cleared, it's not having a problem to send the mail.

    Unfortunally, I can't accept this as a workaround. We can't ask our customers to clear the from box for each mail that has been generated by Aspose.Network.

    I hope you can give me other directions to fix this problem?

    Best regards.

     
  •  07-02-2010, 8:41 AM 246816 in reply to 244695

    Re: You do not have permission to send to this recipient.

    Please, is there any news regarding this problem?

    Thanks.

     
  •  07-05-2010, 10:25 AM 247030 in reply to 246816

    Re: You do not have permission to send to this recipient. .NET

    Hi,

    I am sorry we could not find any other workaround for this issue yet. Sorry for the inconvenience.

    Best Regards,
    Saqib Razzaq
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
     
View as RSS news feed in XML