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

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 
EMailNotificationDetail()
  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

sdugarAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ltlbearand3Commented:
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"        

To:

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.

-Bear
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
13598Commented:
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.
0
sdugarAuthor Commented:
thanks for the great help. you are one of the best here.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.