CF10 Update Notification Email Fails to send

In CF10 under Server Update, you can have it send an email to notify you if there are any updates available.  Unfortunately, the format of the "From" value in not a valid email format so I get the following error in the exception.log
com.sun.mail.smtp.SMTPSendFailedException: 501 5.1.7 Invalid address
The undelivered mail looks like this.  Any way to make the from value from a valid email address instead of just "ColdFusion"?
type:  text/html; charset=UTF-8
server:  redacted.redacted.com:25
from:  ColdFusion
to:  [email protected]
subject:  New Update Available for ColdFusion Server
X-Mailer:  ColdFusion 10 Application Server
body:  1 updates available for ColdFusion Server(version: 10,0,0,282913)<br/>
body:                                          <p><table width="100%" cellspacing="5">
body:  
body:                                                    <tr ><td width="100%"><b>ColdFusion 10 Update 4</b><br/>
body:  
body:  If the version of your ColdFusion 10 installation is 282462, ensure that you have applied the mandatory update
body:  available at http://www.adobe.com/support/coldfusion/downloads_updates.html before applying this update.
body: 
body:  The ColdFusion 10 Update 4 includes several important bug fixes.
body:  For a complete list of fixes included in this update, click "Read More".
body: 
body:  IMPORTANT: After applying the update, reconfigure the connectors using wsconfig tool. It is in {cf_install_home}/cfusion/runtime/bin
body: 
body:  Note that this update is cumulative and includes fixes from previous updates.</td>
body:                                                    </tr>
body:                                                    <tr><td width="1" bgcolor="#FFFFFF"></td></tr>
body:  
body:                                          </table></p><br/>
body:                                          Login to ColdFusion Administrator to get more details and install updates.

i am currently working with adobe coldfusion technical support on this issue
Adobe is aware of  the bug below
https://bugbase.adobe.com/index.cfm?event=bug&id=3373350

Similar Messages

  • SharePoint Designer workflow emails sometimes fail to send

    Hi. I have had no luck following this up with support so posting to this group for visibility in the SharePoint Online team :)
    I have built a SharePoint Designer workflow that sends a notification email when a new item is created on a list. Generally this works fine, but about 20% of the time I find that the email fails to send. I get this error message reported by the workflow:
    The e-mail message cannot be sent. Make sure the outgoing e-mail settings for the server are configured correctly.
    After some research I thought this was due to me using a SharePoint Online Group in the To field: so I changed the To field to a hard coded email address... but I still got the same problem periodically.
    There is definitely something odd going on within the guts of SharePoint Online. Please can someone investigate this?
    Thanks,
    MylesCatch me on Twitter

     
    Hello Myles,
    Custom workflows are currently unsupported by Microsoft Online, however I am not sure why you are using a workflow to send a email notification when a new item is created as an alert can be setup to achieve this. 
    If this information is not helpful, and find no resolution, you should consider these resources as well:
    http://office.microsoft.com/en-us/sharepointdesigner/FX100646991033.aspx Designer help
    http://blogs.msdn.com/sharepointdesigner/default.aspx Designer blog
    Hope this helps,
    Justin Bakelaar – BPOS Support

  • SCOM 2012 SP1 failed to send notifications by IM Channel

    Hello, I have a problem with my SCOM 2012 SP1. When it tries to send notification by IM Channel I get the following alert in SCOM:
    Notification subsystem failed to send notification using
    device/server 'live.august.ru:5060' over 'sip' protocol to
    'sip:[email protected]'.
    Microsoft.Rtc.Signaling.OperationFailureException: The GetInbandDataAsyncResult
    operation has failed with message: "The data session subscription to server
    failed.". See the InnerException and FailureReason properties as well as the
    logs for additional information. . Rule id:
    Subscription077dc311_59c0_4ba5_a432_072b486cd287
    At the same time the following event in the Application Event Log generates on the server with IM service:
    Event Type: Warning
    Event Source: Live Communications Server Authentication
    Event Category: (1003)
    Event ID: 16435
    User:  N/A
    Computer: LCS
    Description:
    At least one invalid authentication signature was detected.
    There were 2 messages with invalid signatures in the last 7112 minutes. The last one had the FROM header: sip:[email protected]
    Cause: This could be due to a client or server which is not handling authentication correctly, or it could be due to an attacker.
    Resolution:
    None needed unless the failure count is high (>100). Check your network for any rogue clients. Restart the server if problem persists.
    Notifications sent by the SMTP channel work fine!
    I Have the following Servers:
    LCS (live.august.ru) - Win 2003 EE SP2 + Live Communication Server 2005 SP1
    SCOM - Win 2012 + SCOM 2012 SP1
    Also I have a third server (Win 2003 + SCOM 2007 R2) and it sends notifications to the same VMLCS server successfully. The configurations of IM Channels are identical on both servers:
    IM server: live.august.ru
    Return address: sip:[email protected]
    Protocol option: TCP
    Authentication method: Kerberos
    IM port: 5060
    I tried to change the Authentication method to NTLM, and the port to 5061, but it doesn't help...

    Hi,
    Please refer to these following articles to configure IM channel correctly:
    How to Create and Configure the Notification Action Account
    http://technet.microsoft.com/en-us/library/hh212835.aspx
    How to Enable an Instant Message Notification Channel
    http://technet.microsoft.com/en-us/library/hh212690.aspx
    Enabling Instant Messaging Notifications in System Center 2012 Operations Manager
    http://opsmgrunleashed.wordpress.com/2012/02/24/enabling-instant-messaging-notifications-in-system-center-2012-operations-manager/
    Alex Zhao
    TechNet Community Support

  • Emailing Wiki Update Notifications

    I have been searching for what I thought would be a common topic on this forum, but have had no luck finding anything.
    I have set up a Snow Leopard server Wiki for some users who are used to Microsoft's Sharepoint. They like the simplicity of Apple's Wiki, but are asking for one missing feature: having Wiki update notifications emailed to the group. They don't like the use of RSS and want emails.
    I saw in Apple's documentation that this is only possible via some Javascript coding (is this true?). Does anyone have an example or instructions on how to pull this off?

    According to the web services admin documentation, in the javascript/xsl section, it does discuss that the wiki server supports a variety of notifications. It appears to me, that you need to write you own javascript as part of your theme customization, to listen for the events you're interested in, and to create actions for the events you're interested in.
    Bottom line, looks possible, but not pre-configured in the same way Sharepoint is.

  • Help! I have recently updated LR5 and before doing so I was able to email files to clients! (Very Convenient) Now my problem is I have not been able to get pass this error message reading "failed to send" which gives no further detail about what to do to

    Help! I have recently updated LR5 and before doing so I was able to email files to clients! (Very Convenient) Now my problem is I have not been able to get pass this error message reading "failed to send" which gives no further detail about what to do to rectify the situation. Someone please guide me through this! Thanks in advance!

    Did this ever get resolved, as I am having the same issue.  Trying to learn LR5 AFTER a decade using Aperture.   I was able to set up a validated account but when I try to send an e-mail or photo I get the simple " Failed to Send " message.   Using latest version of Mac OS X.

  • Subscribe to this entry is not working, no notification email send to subscriber

    When we subscribe any entry by click the "Subscribe to This Entry".
    Normally, it should automatic send a notification email to the subscriber
    when this entry had any changed such as reply or modify. But we tried use
    this function on different users accounts but all of us cannot received
    email notification. This function is very important for us as we had some
    discussion folder which will have some discussion topic need to repsonse
    immediately in the folder and we don't want to check it frequently on each
    hour / each minutes to found out any update or reply on those discussion
    entry. Could anyone can help me to solve this problem? Thanks
    FYI, we can send email when entry submitted properly so we assume our email
    server configuration setting should be normal.
    Servver Platform: Windows 2008, Teaming 2.1
    Regards

    Joey,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Error in sending Notification email with Embedded CLOB message in the body

    Hi,
    Workflow version is : 2.6.3.5
    Apps Version is 11.5.10.1
    Oracle Database 9.2.0.5.0
    I am embedding a CLOB message document attribute to my Notification
    Message Body.
    Everything works fine when I check my notifications in the "workflow worklist"
    i.e. Oracle Apps. <Notifications> tab.
    but the emails are not going to the users and below message is displayed in the
    status monitor. (eventhough it displays below error - I can able to respond the notifications using the worklist and can able to COMPLETE the workflow process
    successfully)
    Please help me to resolve the below error, so that the Same notification which I am able to see using the workflow worklist should be sent to the user in email as embedded text.
    NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.
    Workflow Errors: XXDBCAPR, SDA-10314
    Failed Activity Send Approve_Reject Responce Notification
    Activity Type Notice
    Error Name WF_ERROR
    Error Message [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrC' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK= WF_MAIL.GetLOBMessage3(18841, WFMAILER, 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrClob(18841, MESSAGE_BODY, text/html) WF_NOTIFICATION.GetFullBody(nid => 18841, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 18841, r_ntf_pref => MAILHTML), Step -> Getting text/html body) WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) Wf_Event.setMessage(oracle.apps.wf.notification.send, 18841, WF_XML.Generate) Wf_Event.dispatch_internal()
    Error Stack
    thanks,
    Shashi
    NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.

    Hi,
    Below solution worked for us :
    Whenever the document message related procedure is modified and compiled we need to STOP and START all the workflow related services,
    Homepage -> Workflow Manager -> Service Components => STOP all Services => Start All Services
    NOTE: Even when we bounced the database, application server the error is still occuring, only when we STOP and START the services whenever we compiled the document message procedures then the emails are getting processed.
    The Metalink Forum note 588112.992 (ORA-04061: existing state of has been invalidated ORA-04061: existing state of package) is helpful in getting the solution Below is a snippet of the same :
    From: David Hsu 01-Aug-05 20:06
    Subject: Re : ORA-04061: existing state of has been invalidated ORA-04061:
    existing state of package
    Loren,
    we had a similar ORA-04061 error when we tried to compile a Workflow package
    after we modified it with new attributes. What we were told was that some
    workflow process or listener is still "thinking" the package is invalid even
    though it is valid. Whenever packages referred by the workflow process is
    changed, the Agent listeners and mailer must be bounced. Worst case scenario
    if the error still persist is that the database may have to be bounced as
    well.
    Please try bouncing the Agent listeners or, if it possible, bounce the
    database and see if you are still getting the error after that.
    The listeners that you need to bounce are all the listeners that you have
    enabled under OAM > Workflow Manager > Service Components,
    including the Workflow Notification Mailer.
    Hope this helps thanks,
    Shashi

  • Notifications failed to send mail for journal approval with attachments

    Issue : Notifications failed to send mail for journals sent for approvals with attachments.
    Error :
    [WF_ERROR] ERROR_MESSAGE=3835: Error '-6502 - ORA-06502: PL/SQL: numeric or value error: character string buffer too small' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK=
    WF_XML.GetAttachments(71009549, http://vfilvappclone.verifone.com:8000/pls/EBIZRPT, 13525)
    WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 71009549)
    WF_XML.Generate(oracle.apps.wf.notification.send, 71009549)
    WF_XML.Generate(oracle.apps.wf.notification.send, 71009549)
    Wf_Event.setMessage(oracle.apps.wf.notification.send, 71009549, WF_XML.Generate)
    Wf_Event.dispatch_internal()
    Cause : Above error is thrown for Journals with attachment of file type Microsoft Office Excel Macro-Enabled Worksheet (.xlsm)
    Can anybody help with this?

    Please post the details of the application release, database version and OS.
    Please see if these docs help.
    ORA-20001 & ORA-06502 Workflow Errors [ID 761638.1]
    Manager Approval Notification Gives Error: Ora-O6502: Pl/Sql: Numeric Or Value Error: Character String Buffer Too Small [ID 352213.1]
    Approval Confirmation Email Is Not Received By Preparer - ERROR_MESSAGE=3835 ORA-20001 ORA-6502 [ID 465146.1]
    Notification Fails To Be Generated When A DOCX Document Is Attached [ID 1058183.1]
    Not Able To Send Multiple E-Mails Upon Approval Of Purchase Order [ID 333719.1]
    Expenses Workflow Error: "ORA-06502: PL/SQL: numeric or value error: associative array shape is not consistent with session parameters has been detected in fnd_global.put(CONC_LOGIN_ID,-1)" [ID 455882.1]
    Using Microsoft Office 2007 and 2010 with Oracle E-Business Suite 11i and R12 [ID 1077728.1] -- Notification Generation Fails
    ORA-06502 Buffer Too Small Error in Contracts Workflow Notification [ID 870712.1]
    Thanks,
    Hussein

  • CLOB: Error in sending Notification email with Embedded message in the body

    Hi,
    Oracle Database 9.2.0.5.0
    Workflow version is : 2.6.3.5
    Apps Version is 11.5.10.1
    I am embedding a CLOB message document attribute to my Notification
    Message Body.
    Everything works fine when I check my notifications in the "workflow worklist"
    i.e. Oracle Apps. <Notifications> tab.
    but the emails are not going to the users and below message is displayed in the
    status monitor. (eventhough it displays below error - I can able to respond the notifications using the worklist and can able to COMPLETE the workflow process
    successfully)
    Please help me to resolve the below error, so that the Same notification which I am able to see using the workflow worklist should be sent to the user in email as embedded text.
    NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.
    Workflow Errors: XXDBCAPR, SDA-10314
    Failed Activity Send Approve_Reject Responce Notification
    Activity Type Notice
    Error Name WF_ERROR
    Error Message [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrC' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK= WF_MAIL.GetLOBMessage3(18841, WFMAILER, 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrClob(18841, MESSAGE_BODY, text/html) WF_NOTIFICATION.GetFullBody(nid => 18841, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 18841, r_ntf_pref => MAILHTML), Step -> Getting text/html body) WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) Wf_Event.setMessage(oracle.apps.wf.notification.send, 18841, WF_XML.Generate) Wf_Event.dispatch_internal()
    Error Stack
    thanks,
    Shashi
    NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.

    Hi,
    Below solution worked for us :
    Whenever the document message related procedure is modified and compiled we need to STOP and START all the workflow related services,
    Homepage -> Workflow Manager -> Service Components => STOP all Services => Start All Services
    NOTE: Even when we bounced the database, application server the error is still occuring, only when we STOP and START the services whenever we compiled the document message procedures then the emails are getting processed.
    Metalink Forum note 588112.992 (ORA-04061: existing state of has been invalidated ORA-04061: existing state of package) is helpful in getting the solution Below is a snippet of the same :
    From: David Hsu 01-Aug-05 20:06
    Subject: Re : ORA-04061: existing state of has been invalidated ORA-04061:
    existing state of package
    Loren,
    we had a similar ORA-04061 error when we tried to compile a Workflow package
    after we modified it with new attributes. What we were told was that some
    workflow process or listener is still "thinking" the package is invalid even
    though it is valid. Whenever packages referred by the workflow process is
    changed, the Agent listeners and mailer must be bounced. Worst case scenario
    if the error still persist is that the database may have to be bounced as
    well.
    Please try bouncing the Agent listeners or, if it possible, bounce the
    database and see if you are still getting the error after that.
    The listeners that you need to bounce are all the listeners that you have
    enabled under OAM > Workflow Manager > Service Components,
    including the Workflow Notification Mailer.
    Hope this helps thanks,
    Shashi

  • Before Workflow Notification Mailer fails sends failure alert.

    Hi,
    We are using Oracle E-Business Suit R12. It happens few times that Workflow Notification Mailer fails (unknown reason), thus stopping all the upcoming alerts.
    1). Please tell me if there is way to identify those unknown reasons?
    2). Secondly is there any way that before Workflow Notification Mailer fails generate an alert on just before failure?
    Regards,
    Farooq Khan.

    We are using Oracle E-Business Suit R12. It happens few times that Workflow Notification Mailer fails (unknown reason), thus stopping all the upcoming alerts.
    1). Please tell me if there is way to identify those unknown reasons?Please check the Workflow log file for details about the error.
    How to Troubleshoot when the Workflow Services Go Down [ID 564394.1]
    How to Perform a Meaningful SMTP Telnet Test to Troubleshoot Java Mailer For Sending Email Notifications [ID 75384
    How To Troubleshoot Java-based Workflow Notification Mailer [ID 242941.1]
    A Guide For Troubleshooting Workflow Notification Emails - Inbound and Outbound [ID 831982.1]
    Oracle Workflow FAQ [ID 465887.1]
    Workflow Scripts [ID 183643.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Workflow+AND+Troubleshoot&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Workflow+AND+Diagnostics&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    2). Secondly is there any way that before Workflow Notification Mailer fails generate an alert on just before failure?https://forums.oracle.com/forums/search.jspa?threadID=&q=Workflow+AND+Monitoring&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Failed to send Email to user root. (90017)Invalid protocol: null

    Dear All ,
    After having configure the notification i goto the following error when a notification is enable.
    Failed to send Email to user root. (90017)Invalid protocol: null
    How to fix it
    Regards

    Thanks for the prompt return
    The link you send to me refer to notification with Grid control and there is no feature to perform a test to send an email . Or may me from cli .
    How can i check if EC can send an email . On Os level we use sedmail and it work
    Tx

  • Create Upgrade Evaluation Site Collections Timer Job does not send notification Email when the Site is created

    Hello Everyone,
    My problem is:
    The Create Upgrade Evaluation Site Collections job does not send a Notification Email when the Eval Site is created. I only get a notification E-Mail that mention that a Upgrade Evaluation Site Colletion is requested and then after 27 Days that the Evla
    Site will be deleted in three Days.
    My Enviroment:
    SharePoint Foundation 2013 Sp1 on Windows Server 2012
    Exchange 2010 SP3
    I hope someone can help.
    best regards
    domschi

    Hi domschi,
    As I understand, you didn’t receive email generated from Create Upgrade Evaluation Site Collections timer job. While you might receive email generated from Delete Upgrade Evaluation Site Collections.
    When you request an evaluation site collection, the request is added to a Timer job
     which runs once a day. You will receive an e-mail message when the upgrade evaluation site is available. This might take up to 24 hours. The message includes a link to the evaluation site. Upgrade evaluation site collections are set to automatically
    expire (after 30 days by default).
    Please go to CA > Monitoring > Review Job Definitions, locate issue timer job and click Run Now. Then go to Job History and check if the issue job failed to run.
    Also, please check if the email are received by Exchange Hub server.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Email notification for failed Jobs

    Hello,
    We are using Oracle Database 10gR2 (10.2.0.2.0) on AIX 5.3
    How can I setup email notifications for Failed Jobs ?
    Here is what I did:
    1. Setup email and Test mail (working)
    2. Setup email address
    3. Create schedule for notification
    4. Create rule for Failed Job Count and select Send Email
    But when the job fails, I do not get the email
    I think I am missing something here.. Can you please help ?
    Thanks a lot :)

    Hi,
    Does up to the Below Three.. are they working properly..
    1. Setup email and Test mail (working)
    2. Setup email address
    3. Create schedule for notification (Does this working..try to test then go for next step)
    Coming to Step 4:-
    4. Create rule for Failed Job Count and select Send Email
    What do you mean by Failed Job Count .. ??
    what is the Logic you are following to find the latest Failed Job.??
    - Pavan Kumar N

  • HT4863 I have an error message coming up when trying to send an email which says 'sending the message failed because you're exceeding the limit' can anyone help me to resolve this please

    I have an error message coming up when trying to send an email which says 'sending the message failed because you're exceeding the limit' can anyone help me to resolve this please

    Try reentering the password in your iCloud mail settings.

  • MailServiceHelper Failed while sending email java.lang.NullPointerException

    Hi guys,
    I am trying to send email with Adobe CQ API.
    But i am getting a nullpointer exception at this line:  MsgGateway.send(htmlEmail);    
    This is my method that i am using to send.
    import com.day.cq.mailer.MessageGateway;
    import com.day.cq.mailer.MessageGatewayService;
    import javax.mail.internet.InternetAddress;
       public boolean sendHtmlEmail(SlingHttpServletRequest sling,
                String fromMailAdress, List<String> recepientmailAddress,
                String emailSubject, String htmlbodyMail) {
            HtmlEmail htmlEmail = new HtmlEmail();
            List<InternetAddress> emailAddress = new ArrayList<InternetAddress>();
            try {
                for (String recipient : recepientmailAddress) {
                    if (!StringUtil.isEmpty(recipient)) {
                        emailAddress.add(new InternetAddress(recipient));
                        log.error(recipient);
                if (!StringUtil.isEmpty(fromMailAdress)) {
                    htmlEmail.setFrom(fromMailAdress);
                htmlEmail.setTo(emailAddress);
                htmlEmail.setSubject(emailSubject);
                htmlEmail.setHtmlMsg(htmlbodyMail);
                htmlEmail.setCharset("utf-8");
                MessageGatewayService MsgService = getMessageGateWayService(sling);
                MessageGateway<HtmlEmail> MsgGateway = MsgService.getGateway(HtmlEmail.class);
                MsgGateway.send(htmlEmail);   //nullpointer exception caught here        
                return true;
            } catch (Exception e) {
                log.error("Failed while sending email", e);
            return false;
    I have checked to ensure the bundle com.day.cq.cq-mail and my own bundle is running .
    I am also sure that 'htmlEmail' is not null by retrieving the email subject via .getSubject and it did return me the subject.
    I do not understand what is returning the nullpointerexception.
    Thanks in advance !

    The MessageGateway instance (MessageGateway<HtmlEmail> MsgGateway) is null therby throwing a null pointer.
    Instead of instanciating msgGateway as :
    MessageGatewayService MsgService = getMessageGateWayService(sling);
    MessageGateway<HtmlEmail> MsgGateway = MsgService.getGateway(HtmlEmail.class);
    Inject your MessageGateway as:
    @Reference
    private MessageGateway<HtmlEmail> msgGateway;
    and then call send on msgGateway as msgGateway.send(htmlEmail)
    ~ Aditya

Maybe you are looking for

  • How to manage different apple id's for icloud and itunes purchases and game center etc. ?

    Hi Myself and my brother have been sharing the same apple id for all the itunes purchases. We both have iphone 4. Since the introduction of icloud, we are little confused about the id managing process. Yesterday, we both updated our iOS to iOS 5. And

  • HT1430 My ipod keeps restarting...

    ...and the battery shows full and then the red battery and plug icon shows up.  Then the "ipod is too hot to use" icon appears. This has never happened to me. I have tried reseting, restarting and restoring.  Not working.  Anything else I can try?  O

  • Help in generating the same random numbers each time of the program executi

    dear friends i am facing a problem that the random numbers generated at time of each exectuion of the program are not the same, i want to generate the same random numbers every time time i run the program. i need your help. i am giving the code in c+

  • How to total Hierarchy of EMP in Scott / Tiger?

    I need to show total of each employee in front of his manager or rollup, using EMP Table, how can I ? Best Regards, Luqman

  • Need Urgent Help in remote debugging

    Folks! Im having difficulties remote debugging my application. Im using jdev rc2 using oc4j 9.0.2 externally on a win2k machine. My sources are compiled outside jdeveloper using the oracle compiler. Ive setup the server to run with: d:\oradev\jdk1.3\