[Webinar] Streamline your web hosting managementRegister Today


FedEx Email Notification not received  but the package is shipped !?

Posted on 2010-04-06
Medium Priority
Last Modified: 2012-05-09
I am not getting Email Notification from FedEx .While label creation there is no error.Label creation is getting done properly.Fedex is not sending any notifications during shipment on production server.

Please help me i have attached the codes responsible for email notifications.

request.RequestedShipment.SpecialServicesRequested = New ShipmentSpecialServicesRequested()
  request.RequestedShipment.SpecialServicesRequested.SpecialServiceTypes = New 
ShipmentSpecialServiceType(0) {ShipmentSpecialServiceType.EMAIL_NOTIFICATION}
        request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail = New 
  request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients = New EMailNotificationRecipient(0) {New EMailNotificationRecipient()}       
request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).EMailNotificationRecipientType = EMailNotificationRecipientType.RECIPIENT    
request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).Format = EMailNotificationFormatType.HTML  
request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).FormatSpecified = True       
request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).Localization = New Localization()    
request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).Localization.LanguageCode = "EN"  

'*************For NotifyOnShipment*********************

 request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.PersonalMessage = "aaaaa"      
request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).EMailAddress = "xxx@xxx.com;xxx@xxx.com"        
request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).NotifyOnShipmentSpecified = True        
request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).NotifyOnShipment = True

'*************For NotifyOnException*********************
 request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.PersonalMessage = "aaaaa"
        request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).EMailAddress = "xxx@xxx.com;xxx@xxx.com" 
        request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).NotifyOnExceptionSpecified = True
        request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).NotifyOnException = True

'*************For NotifyOnDelivery*********************

  request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.PersonalMessage = "aaaaaaa"
        request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).EMailAddress = "xxx@xxxl.com;xxx@xxxl.com" 
        request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).NotifyOnDeliverySpecified = True
        request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).NotifyOnDelivery = True

Open in new window

Question by:sdugar
LVL 20

Accepted Solution

ltlbearand3 earned 2000 total points
ID: 29959322
I believe your problem is that you have multiple email addresses being designated per line and therefore it is received by FedEx properly but they can't send out an email since they become an invalid email address.  Try changing:

request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).EMailAddress = "xxx@xxx.com;xxx@xxx.com"        


request.RequestedShipment.SpecialServicesRequested.EMailNotificationDetail.Recipients(0).EMailAddress = "xxx@xxx.com"        

And then only set that line once (your currently set the value 3 times.

See if that solves your problem.

LVL 16

Expert Comment

ID: 30017527
You could try using a comma instead of semicolon as a separator for your e-mail addresses. I had that issue with going from vs2003 to VS2005. It changed.

Author Closing Comment

ID: 32651578
thanks for the great help. you are one of the best here.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
Native ability to set a user account password via AD GPO was removed because the passwords can be easily decrypted by any authenticated user in the domain. Microsoft recommends LAPS as a replacement and I have written an article that does something …
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

590 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question