in Search
 
Home Blogs Forums Marketplace Files
 
 
 

Specify a ReplyTo address in E-mail

Last post 08-05-2008, 6:36 AM by shaboo. 2 replies.
Sort Posts: Previous Next
  •  07-24-2008, 12:35 PM 14105

    Specify a ReplyTo address in E-mail

    After much trial and error we are successfully using the API to send faxes and e-mails.  The customer is now asking for the ability to specify the sender's name or replyto for an e-mail.  My understanding is that the value that shows as the Sender comes from the server.  Is there a way to specify in code where replies to an e-mail should be directed?

    Thanks.
  •  07-30-2008, 2:55 PM 14112 in reply to 14105

    Re: Specify a ReplyTo address in E-mail

    You are correct that the values that show for Sender come from the user definitions on the RightFax Server - you can however change the "From Name" to be different from that defined for the user on the server, but you canot change the email address being used to send it.

    As far as specifying a reply-to email address, there is not a property on the fax object to do this. At best, if you are attaching a cover sheet, you could include a note in the cover sheet directing the recipient where to reply. Another alternative would be to modify the subject line in the outgoing email to state where replies should be sent. The following sample code does both:

     

    Dim obj_Fax As RFCOMAPILib.Fax

    Dim aRFUser As RFCOMAPILib.User

    Dim FaxAPI As RFCOMAPILib.FaxServer

     

    'create the fax object

    obj_Fax = FaxAPI.CreateObject(CreateObjectType.coFax)

    'now set the sender information

    obj_Fax.Owner = aRFUser

    obj_Fax.FromName = "RF Test User"

    obj_Fax.EmailSubject = "Please reply to email@domain.com"

    obj_Fax.ToEmailAddress = erin@captaris.com

    'now set the coversheet up

    obj_Fax.FCSFilename = FaxAPI.CoverSheets(1).LongFileName

    obj_Fax.HasCoversheet = BoolType.True

    obj_Fax.CoverSheetNotes(1) = "Please reply to name@domain.com"

    'now set it up to send as an email

    obj_Fax.EnableSendViaSecureDocs(BoolType.False, BoolType.False, "")

    'and send it

    obj_Fax.Send()


    Erin Stone
    Captaris Developer Support Engineer
  •  08-05-2008, 6:36 AM 14123 in reply to 14112

    Re: Specify a ReplyTo address in E-mail

    Sorry for 'hijacking' the thread but we have a similar situation.

    In our case we want to use a 'generic' from email address for sending our order confirmations back to customers. So I guess we can setup a generic user on the RightFax server with that email address and send our faxes/emails using that user through APIs. This should work right? or there is only one 'from' email address for the whole server?

    Also, we are not sure what happens in case of a 'bounce back' from that email address? Ideally we would like all the fax and email transmission failures (including bounce backs) to be recorded in RightFax server so that at the end of the day we can do the reconciliation of what was successfully transmitted and what was not. Can you comment on whether this is possible or not and if it is, how should we go by doing that?

    Thanks in advance.


View as RSS news feed in XML
  Privacy    Site Terms   Contact Administrator