BizTalk SMTP sending dynamic email depending on logic

Hello - I have a database where 2 rows are set like this :
AppName    key    EmailIDs
a1              A      
[email protected], [email protected]..
a1              B       
[email protected], [email protected]...
Now, depending on 'status' field which is promoted , I need to dynamically send emails out. How to approach this.
Below is my code
mailOut(SMTP.DeliveryReceipt)=true;
mailOut(SMTP.Subject) = "Sub: Alert" + payloadOut.status;
mailOut(SMTP.From) = [email protected];
mailOut(SMTP.SMTPAuthenticate)= 0; 
mailOut(SMTP.SMTPHost) = myHost;
mailOut(SMTP.EmailBodyTextCharset) = "utf-8";
mailOut(SMTP.EmailBodyText) = myEmail;
mailOut(SMTP.SMTPTo) = 'Email IDs present in database";
sndUpdateEMail(Microsoft.XLANGs.BaseTypes.Address) = "mailto:" + myEmailInvoice;
sndUpdateEMail(Microsoft.XLANGs.BaseTypes.TransportType) = "SMTP";
System.Diagnostics.EventLog.WriteEntry("Received Response from XLANGSetup","xlang setup");
Finally I need to send emails based on like this :
If status = 'Ok' and 'key' = A THEN Send email of all data present in Config_value.
if status = 'Error' and key =B THEN send email of all data present in Config_value.
Please Advise.
MBH

If your conditions are not gonna change, in that case using "If", "Else" statements can solve your issue easily.
You can use the if-else statement in expression shape (but not in message assignment shape). Following is the syntax:
if (Yourcondition)
else
example:
if (true)
   //Statement to write for true-condition
else
//Statement to write for non-true condition
So in if condition you can perform the check over Status and Key value and later within the braces you can assign the values to the variables required for SMTP dynamic message creation
Thanks,
Prashant
Please mark this post accordingly if it answers your query or is helpful.

Similar Messages

  • Dynamic email address in MAIL adapter

    Hi ALL,
                 Is there a way of sending dynamic email addresses in mail adapter?
    Regards,
    XIer

    Xier,
    Yes. You can do it. Using Mail adapter option with Use MailPackage option.
    raj.

  • Sending an email with text Content using SMTP Adapter.

    I am trying to send an email Message with the .txt attachment using SMTP adapter. I am getting an XML input and I am mapping the input Schema to Flat File Schema. I am trying to Send this Flat File(.txt attachment) in the Email. But I am receiving it as 
    HTML format only.
    The Expression in the Message Transform is,
         SMTPUtils.Part.SetContentType(OutgoingFlatFile_Msg.BodyFlatFile,"text");
         OutgoingFlatFile_Msg(SMTP.EmailBodyTextCharset)="UTF-8";
         DynamicEmailPort(Microsoft.XLANGs.BaseTypes.Address) = "mailto:[email protected]";
         OutgoingFlatFile_Msg(SMTP.CC) = "[email protected]";
         OutgoingFlatFile_Msg(SMTP.Subject) = "TESTMAIL";
         OutgoingFlatFile_Msg(SMTP.From) = "[email protected]";
         OutgoingFlatFile_Msg(SMTP.SMTPHost) = "smtp.org";
         OutgoingFlatFile_Msg(SMTP.SMTPAuthenticate) = 0;
    The Email attachment is HTML format,
    <?xml version="1.0" encoding="utf-8"?><ns0:Root xmlns:ns0="http://SampleSMTPEmail.OutgoingFlatFile"><Record><CustomerID>Cus001</CustomerID><OrderID>Ord001</OrderID></Record></ns0:Root>
    How to attach the .txt file to the email.

    Have you tried the following steps:
    Create the message (“msgEnvelope”) as a Multi-Part message, with the required message in the Message Body Part (“Attachment”)
    Set the following properties of the Envelope Message:
    msgEnvelope(SMTP.Subject) = <Email Subject>;
    msgEnvelope(SMTP.From) = <Sender Email>;
    msgEnvelope(SMTP.SMTPHost) = <Email Host name>";
    // This is the default value
    msgEnvelope(SMTP.SMTPAuthenticate) = 0;
    // Set the message text included in the email
    msgEnvelope(SMTP.EmailBodyText) = <Text in body of email>;
    // Important - This is required if the EmailBodyText is set
    msgEnvelope(SMTP.EmailBodyTextCharset) = "utf-8";
    // A value of '1' means include Message Body Part as email attachment
    msgEnvelope(SMTP.MessagePartsAttachments) = 1;
    Set the following properties of the Message Body Part (“Attachment”):
    // Important - Change this MIME type if not sending a Text file
    msgEnvelope.Attachment(Microsoft.XLANGs.BaseTypes.ContentType) = "text/plain";
    // Set the Filename of the attachment
    msgEnvelope.Attachment(MIME.FileName) = <Physical name of the attachment>;
    Set the following property on the Dynamic Send Port:
    // We set the Email Address on the Port itself
    Dynamic_Send_Port(Microsoft.XLANGs.BaseTypes.Address) = <recipient email address>;
    http://biztalktalk.wordpress.com/2008/08/28/sending-attachments-through-a-dynamic-send-port/
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Send iCloud email from alternative smtp server?

    How do I send iCloud email from alternative smtp server? The setting is 'greyed out' on my iPhone so I cannot tell iCloud to use another server.
    The reason is so I can have my outgoing email appear from my own domain email address rather than my me.com address. Mobileme would allow this - and Mail on the Mac does allow it, but the iPhone under iOS 5 seems not to allow it....
    Any ideas?

    I have spent about 4-6 hours working directly with folks from Tim Cooke's office, various support levels, and through them their engineers.
    As much as I tried to convince them their logic is flawed, the engineers for iCloud come back and say this is expected behavior because somehow it helps secure iCloud from being a spam source. The fine and helpful gentleman from Cooke's office now understands how it is a MobileMail.app client issue, having nothing to do with iCloud servers (because we are in fact trying to bypass their servers) still totes the "it's expected behavior" line from the server engineers.
    I have implored him to follow up with the iOS MobileMail app programmers and not the iCloud programmers. I am hopeful he will. Until then you have to choose between having iCloud push and losing your online identity, or losing push email and keeping your preferred address.
    Fun to try: turn off all smtp servers. Send email. Gets stuck in outbox. Turn on your preferred smtp server. That one email will use your preferred alternate address, but subsequent ones revert back to the old .me.com smtp servers. Personally I believe this points to a client programming error more than reinstating a preferred behavior. Aggravating!
    I spend $500 on a new phone. Google takes away my exchange client ability and apple makes me choose push email vs outgoing email address.

  • My N9 can't send a email via using icloud smtp ser...

    I follow the guideline from iCloud mail server information to setup email account, but every time i was trying to send an email, a pop-up message show : 'Can't connect to SMTP server :" smtp.mail.me.com" or it doesn't exist '. Everyone can help me to configure out why? Thank you so much!

    N9 imap mail sending does not work with .mac/.me (iCloud) mail. I have these settings (automatic and also manually set from Apple page).
    Mails stays at outbox with smtp server error (lates N9 update)
    SMTP (outgoing mail server) information:
    Server name: smtp.mail.me.com
    SSL Required: Yes
    Port: 587
    SMTP Authentication Required: Yes
    Username: [email protected] (use your @me.com address from your iCloud account)
    Password: Your iCloud password
    http://support.apple.com/kb/HT4864

  • Why all of a sudden am I having difficulty sending Gmail emails? I get a send error. When I run diagnostics there is a SMTP and IMAP account for Gmail and I am not sure how to fix this.

    Why all of a sudden am I having difficulty sending Gmail emails? I get a send error. When I run diagnostics there is a SMTP and IMAP account for Gmail and I am not sure how to fix this.

    Hi jodilynnf,
    When using Connection Doctor to see what is could be causing the issue, look for the red dots to let you know what is wrong. Then all you have to do is correct that information. You can double click on the section that is giving you issue and it will take you there. Most issues could be just password being entered incorrectly. Take a look at the article below to walk you through troubleshooting issues with Mail.
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/en-us/TS3276
     Take it easy,
    -Norm G.

  • TS3276 I cannot get my outgoing SMTP server togo "On-Line" and cannot send out emails.

    I cannot get my outgoing SMTP server togo "On-Line" and cannot send out emails.

    I had this problem too but I fixed it today.
    Go to the mail menu preferences.
    Click on account in question.
    Select the outgoing SMTP mail server (the one offline), this has a drop down list, click on the edit server list.
    Click on the advanced button.
    Make sure use default port is checked.
    Make sure SSL is unchecked (unless your provider requires it, mine does not work with it checked).
    Have authentication set to password.
    User name should be your email address for that account.
    Make sure correct password is entered (for some strange reason my password box was blank on this account).
    Push the ok button.
    For me the SSL box was checked and the password was missing. This is strange to me considering I have unchecked the SSL Box on the mail preference advance page. Also, I went through the complete set up account when I first created the account, why was my outgoing server password box empty?
    I hope this helps.
    Here is a link to some visual aids with the steps from my ISP
    http://support.knology.net/content/smtpauth/smtpredirect.cfm

  • Send mHTML email using publication but without dynamic recipients

    I need to send the content of a report as part of the email body. I have used Publications to achieve the same. However, I do not want to use Dynamic recipients as I need the same email with the same content to go to the same list of people like a normal schedule.
    I tried not configuring the dynamic recipients and only put an email in the Destinations section but that didn't work.
    Is it possible to send mHTML emails using publication without using dynamic recipients?

    I thought you could send a publication anywhere, but I'm not sure you can - I think you have to specify recipients - either Enterprise or Dynamic.
    The 3.x admin guide says:
    ...which kinda points that way.
    HTH
    NMG

  • SMTP error when sending multiple emails (hammering)

    Dear Sirs,
    I have a problem.
    When I send many emails to many different addresses very fast (newsletter) after the 8th or 9th email the SMTP server blocks the sending.
    I think that because tere is not a pause between the messages Mail hammers the SMTP server that stop working for 5 minutes to prevent "hackers" attaks.
    Is there a way to set a pause between the messages in the outbox?
    Thank you very much.
    Dr. Bernardo Barberani

    If you are using SBC Yahoo by chance see this link http://discussions.apple.com/thread.jspa?threadID=1444416&tstart=0.

  • HT3228 When I try to send an email from my Iphone it will not send and tells me the recepient will not allow relaying.  The email will sit in my outbox and then at some point will send.  It sometimes takes days.  What is wrong with my settings?

    When I try to send an email either new, or reply on my phone I receive a notification that recepient will not allow relaying.  The email will then sit in my outbox.  At some point it will send but it is hardly dependable.  What is wrong with my settings?

    The collum to the right listed similar problems.  The solution appears to be that under smtp outgoing settings the user name and password are listed as optional.  I have not plugged in the information and it seems to be working.  However from my office it always allowed the relaying.  The true test will be when I try to respond later from the road.
    Thank you for your help.

  • Problem by  Sending an Email with attached Adobe Interactive Form (Code)

    Thanks. I have written Programm, but it does not work as i want it to do. I will send an Email with attached Adobe Interactive Firm to [email protected]. I tried it with "*lo_recipient = cl_sapuser_bcs=>create( sy-uname )" at the marked(bold, fat) position. It worked but the Email was send to my SAP-Account, but i want to send to [email protected], so I tried this (see at code in bold, fat):
    lo_rec TYPE adr6-smtp_addr VALUE '[email protected]'. " Empfänger Receiver
    lo_recipient = cl_cam_address_bcs=>create_internet_address( lo_rec ).
    But it doens`t send the email.
    Can anybody help me please???
    Kevin
    Here my Code:
    Report FP_EXAMPLE_01
    Printing of documents using PDF based forms
    REPORT z_example_02.
    Data declaration
    DATA: carr_id TYPE sbook-carrid,
    customer TYPE scustom,
    bookings TYPE ty_bookings,
    connections TYPE ty_connections,
    fm_name TYPE rs38l_fnam,
    fp_docparams TYPE sfpdocparams,
    fp_outputparams TYPE sfpoutputparams,
    error_string TYPE string,
    l_booking TYPE sbook,
    t_sums TYPE TABLE OF sbook,
    l_sums LIKE LINE OF t_sums,
    fp_formoutput TYPE fpformoutput.
    PARAMETER: p_custid TYPE scustom-id DEFAULT 38.
    SELECT-OPTIONS: s_carrid FOR carr_id DEFAULT 'AA' TO 'ZZ'.
    PARAMETER: p_form TYPE tdsfname DEFAULT 'FP_EXAMPLE_01'.
    PARAMETER: language TYPE sfpdocparams-langu DEFAULT 'E'.
    PARAMETER: country TYPE sfpdocparams-country DEFAULT 'US'.
    Get data from the following tables: scustom(Flight customer)
    sbook (Single flight reservation)
    spfli (Flight plan)
    SELECT SINGLE * FROM scustom INTO customer WHERE id = p_custid.
    CHECK sy-subrc = 0.
    SELECT * FROM sbook INTO TABLE bookings
    WHERE customid = p_custid
    AND carrid IN s_carrid
    ORDER BY PRIMARY KEY.
    SELECT * FROM spfli INTO TABLE connections
    FOR ALL ENTRIES IN bookings
    WHERE carrid = bookings-carrid
    AND connid = bookings-connid
    ORDER BY PRIMARY KEY.
    Print data:
    First get name of the generated function module
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
    i_name = p_form
    IMPORTING
    e_funcname = fm_name.
    IF sy-subrc <> 0.
    MESSAGE e001(fp_example).
    ENDIF.
    Set output parameters and open spool job
    fp_outputparams-nodialog = 'X'. " suppress printer dialog popup
    fp_outputparams-getpdf = 'X'. " launch print preview
    CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
    ie_outputparams = fp_outputparams
    EXCEPTIONS
    cancel = 1
    usage_error = 2
    system_error = 3
    internal_error = 4
    OTHERS = 5.
    Set form language and country (->form locale)
    fp_docparams-langu = language.
    fp_docparams-country = country.
    *fp_docparams-fillable = 'X'.
    *fp_docparams-langu = 'E'. "wird jetzt automatisch gesetzt, bzw. kann dynamisch verändert werden
    *fp_docparams-country = 'GB'. "wird jetzt automatisch gesetzt, bzw. kann dynamisch verändert werden
    currency key dependant summing
    LOOP AT bookings INTO l_booking.
    l_sums-forcuram = l_booking-forcuram.
    l_sums-forcurkey = l_booking-forcurkey.
    COLLECT l_sums INTO t_sums.
    ENDLOOP.
    Now call the generated function module
    CALL FUNCTION fm_name
    EXPORTING
    /1bcdwb/docparams = fp_docparams
    customer = customer
    bookings = bookings
    connections = connections
    t_sums = t_sums
    IMPORTING
    /1bcdwb/formoutput = fp_formoutput
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    CALL FUNCTION 'FP_GET_LAST_ADS_ERRSTR'
    IMPORTING
    e_adserrstr = error_string.
    IF NOT error_string IS INITIAL.
    we received a detailed error description
    WRITE:/ error_string.
    EXIT.
    ELSE.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDIF.
    Close spool job
    CALL FUNCTION 'FP_JOB_CLOSE'
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *********************Send the form*******************
    *********************to the Customer*****************
    *********************via Email***********************
    *IF i_down = abap_true.
    DATA: filename TYPE string,
    path TYPE string,
    fullpath TYPE string,
    default_extension TYPE string VALUE 'PDF'.
    Data:
    lt_att_content_hex TYPE solix_tab.
    *DATA: data_tab TYPE TABLE OF x255.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = fp_formoutput-pdf
    TABLES
    binary_tab = lt_att_content_hex.
    CLASS cl_bcs DEFINITION LOAD.
    DATA:
    lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
    lo_send_request = cl_bcs=>create_persistent( ).
    DATA:
    lt_message_body TYPE bcsy_text VALUE IS INITIAL.
    DATA: lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
    APPEND 'Dear Vendor,' TO lt_message_body.
    APPEND ' ' TO lt_message_body.
    APPEND 'Please fill the attached form and send it back to us.'
    TO lt_message_body.
    APPEND ' ' TO lt_message_body.
    APPEND 'Thank You,' TO lt_message_body.
    lo_document = cl_document_bcs=>create_document(
    i_type = 'RAW'
    i_text = lt_message_body
    i_subject = 'Vendor Payment Form' ).
    DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
    TRY.
    lo_document->add_attachment(
    EXPORTING
    i_attachment_type = 'PDF'
    i_attachment_subject = 'Vendor Payment Form'
    i_att_content_hex = lt_att_content_hex ).
    CATCH cx_document_bcs INTO lx_document_bcs.
    ENDTRY.
    lo_send_request->set_document( lo_document ).
    DATA:
    lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
    lo_send TYPE adr6-smtp_addr VALUE '[email protected]'. "Absender SENDER
    lo_sender = cl_cam_address_bcs=>create_internet_address( lo_send ).
    Set sender
    lo_send_request->set_sender(
    EXPORTING
    i_sender = lo_sender ).
    Create recipient
    DATA:
    lo_recipient type ref to if_recipient_bcs value is initial.
    Data:
    lo_rec TYPE adr6-smtp_addr VALUE '[email protected]'. " Empfänger Receiver
    lo_recipient = cl_cam_address_bcs=>create_internet_address( lo_rec ).
    *lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
    Set recipient
    lo_send_request->add_recipient(
    EXPORTING
    i_recipient = lo_recipient
    i_express = 'X' ).
    *lo_send_request->add_recipient(
    *EXPORTING
    *i_recipient = lo_recipient
    *i_express = 'X' ).
    Send email
    DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
    lo_send_request->send(
    EXPORTING
    i_with_error_screen = 'X'
    RECEIVING
    result = lv_sent_to_all ).
    COMMIT WORK.
    MESSAGE 'The payment form has been emailed to the Vendor' TYPE 'I'.

    Hi Kevin,
    Please try this code to send your mail, i wrote it and works well in many system.
    Take care if in your profile you got an e-mail adress define .
    Take care also of trnasaction SCOT customizing, are you able to send mail to e-mail adress ?
    Let me know if it's works.
    Best regards.
    <i>**----
    CLASS-DEFINITIONS
    DATA: send_request       TYPE REF TO cl_bcs.
    DATA: document           TYPE REF TO cl_document_bcs.
    DATA: sender             TYPE REF TO cl_sapuser_bcs.
    DATA: recipient          TYPE REF TO if_recipient_bcs.
    INTERNAL TABLES
    DATA: l_mailtext TYPE soli_tab.
    DATA: iaddsmtp   TYPE TABLE OF bapiadsmtp.
    DATA: ireturn    TYPE TABLE OF bapiret2.
    VARIABLES
    DATA: mail_line  LIKE LINE OF l_mailtext.
    DATA: bapiadsmtp         TYPE bapiadsmtp.
    DATA: subject    TYPE so_obj_des.
    DATA : att_subject TYPE so_obj_des.
    DATA : w_except TYPE REF TO cx_root .
    CONSTANTS : c_defmail TYPE ad_smtpadr VALUE
                     '[email protected]' .
    FIELD-SYMBOLS : <smtp> TYPE bapiadsmtp.
    *Convert the pdf given by function module into Binary .
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer     = output-pdf "PDF file from function module
      TABLES
        binary_tab = hexa.
    *Set subject of the mail
    subject = 'Exemple de PDF interactif'.
    Set text of the mail
    mail_line = 'Merci de remplir le formulaire et nous le retourner'.
    APPEND mail_line TO l_mailtext .
    Set the name of the attached document
    att_subject = 'Template du PDF'.
    TRY.
    Create persistent send request
        send_request = cl_bcs=>create_persistent( ).
    Get sender object
        sender = cl_sapuser_bcs=>create( sy-uname ).
    Add sender
        CALL METHOD send_request->set_sender
          EXPORTING
            i_sender = sender.
    Read the E-Mail address for the user
        CALL FUNCTION 'BAPI_USER_GET_DETAIL'
          EXPORTING
            username = sy-uname
          TABLES
            return   = ireturn
            addsmtp  = iaddsmtp.
        LOOP AT iaddsmtp ASSIGNING <smtp> WHERE std_no = 'X'.
          CLEAR bapiadsmtp.
          MOVE <smtp> TO bapiadsmtp.
        ENDLOOP.
        CASE bapiadsmtp-e_mail.
          WHEN space.
    No adress main for user, so send it to the default mail adress
            recipient =
         cl_cam_address_bcs=>create_internet_address( c_defmail ).
          WHEN OTHERS.
            recipient =
         cl_cam_address_bcs=>create_internet_address( bapiadsmtp-e_mail ).
        ENDCASE.
    Add recipient with its respective attributes to send request
        CALL METHOD send_request->add_recipient
          EXPORTING
            i_recipient  = recipient
            i_express    = 'X'
            i_copy       = space
            i_blind_copy = space
            i_no_forward = space.
    Set that you don't need a Return Status E-mail
        CALL METHOD send_request->set_status_attributes
          EXPORTING
            i_requested_status = 'E'
            i_status_mail      = 'E'.
    set send immediately flag
        send_request->set_send_immediately( 'X' ).
    *Build Document
        document = cl_document_bcs=>create_document(
                            i_type    = 'RAW'
                            i_text    = l_mailtext
                            i_subject = subject ).
        add attachment to document
        CALL METHOD document->add_attachment
          EXPORTING
            i_attachment_type    = 'PDF'
            i_attachment_subject = att_subject
            i_att_content_hex    = hexa.
    Add document to send request
        CALL METHOD send_request->set_document( document ).
    Send document
        CALL METHOD send_request->send( ).
        COMMIT WORK.
      CATCH cx_send_req_bcs INTO w_except.
      CATCH cx_address_bcs INTO w_except.
      CATCH cx_document_bcs INTO w_except.
    ENDTRY.</i>

  • Receiving an Error message when trying to send an email

    Help
    All of a sudden whenever I try to send an email I receive an Error message stating it cannot be delivered. The message suggests verifying addressee, checking SMTP server settings and verifying any advanced settings. I have tried different addressees, and all the information in the Mail Preferences looks accurate to me. Any ideas what could be causing this? It just started happening.
    Any info is greatly appreciated
    Susan
    Quad Core   Mac OS X (10.4.6)  

    Hi Susan,
    Many ISPs have recently started blocking outgoing (smtp) mail via port 25 that doesn't use their own smtp server. (This is to try and combat spam).
    There are generally two ways to overcome this:
    1) Use the smtp server of the ISP that you are currently connected to. (If you have a laptop and connect from different places this may mean you have to select an appropriate smtp server at each location.)
    2) Connect to your preferred smtp server on a port other than 25. This will depend on the setup of that server. For instance the Apple .Mac smtp server allows connections on port 587 (reference Apple support article: http://docs.info.apple.com/article.html?artnum=75124)
    Graham

  • Error during sending an email

    Hi,
    For test purposes we had planned to use google smtp server for sending emails,
    For that we had used google's smtp settings
    like
    smtpserver ==>smtp.google.com
    smtuserid ==> mygmailid
    smtppassword ==>mygmail password
    But google had additionally provided some settings like
    1.Use Authentication: Yes
    2.Use Secure Connection: Yes (this can be TLS or SSL depending on your mail client)
    3.Port: 465 or 587
    In ccb i cant find any place to enter the above 3 settings
    1.Cant i use google's smtp server for sending emails through ccb?
    2.Is smtp outgoing server port not necessary for ccb application to send an email
    3.what port does ccb uses?
    4.where can i change the default port?
    plz help guys.
    Edited by: shanker on Mar 29, 2011 3:39 AM

    Hi Rajesh,
    As I had replied to you in other post. Create Synchronous Service Interfaces.
    And for the response Message Type you use MailReceipt structure. You can get this structure from the Mail Package xsd.
    Download this MailPackage xsd from the sap note: 748024
    Regards,
    Aravind

  • BizTalk SMTP Relay Issue

    We go to send mail via SMTP from all of servers, we are only able to send mail to @Dell.com addresses only.(same network)
    We would not able to send to all address (like an @Microsoft.com or an @csc.com address)
    I am able to send an email to all address through dot net application but not Biztalk
    Please share your thoughts how to resolve the issue 

    I hope your .Net Application sending e-mail is NOT OUTLOOK? :D
    From the BizTalk Server can you do an interactive SMTP session with the SMTP server and check if relay is permitted? If you get relay denied then very clearly the SMTP Server configuration requires modification. (the responses from the SMTP server are in
    BOLD)
    > telnet <your smtp server name/ip> 25
    220 <your SMTP Server name> Microsoft ESMTP MAIL Service, Version: 7.5.7601.17514
    ready at  Fri, 6 Mar 2015 11:45:03 +0530
    HELO <your BizTalk Server FQDN>
    250 <your BizTalk Server FQDN> Hello [<ip of your BizTalk Server>]
    mail from: <some-email-address>@dell.com
    250 2.1.0 <some-e-mail-address>@dell.com....Sender OK
    rcpt to: <[email protected]>
    What is the response? do you get "250 2.1.5 <[email protected]>" or "relay denied".
    Either way you should get someone who know mail & messaging involved to help to ensure that it is not a SMTP issue.
    I agree with Ashwin on this NOT being a BizTalk related issue.
    Regards.

  • How to use Forms10g to send mass email to users via MS Outlook?

    Does anyone has tried to write a Forms that retrieve emails from a database schema and then send mass emails to these users viad Microsoft Outlook? If yes, would you like to share your valuable experience with us?

    i would be easier to depend on database packages for achieving this result, whether you create procedures or database triggers, you can still invoke these construct form your form. If you database is a 10g database, it is easier to handle mass email since there is an already built-in package for this.
    below is an example
    Using UTL_MAIL (only for Oracle 10g)
    make sure that the UTL_MAIL package is installed
    SQL>start utlmail.sql
    SQL>start prvtmail.plb
    both can be found under $ORACLE_HOME/rdbms/admin
    utl_mail.send(
    sender IN VARCHAR2 CHARACTER SET ANY_CS,
    recipients IN VARCHAR2 CHARACTER SET ANY_CS,
    cc IN VARCHAR2 CHARACTER SET ANY_CS DEFAULT NULL,
    bcc IN VARCHAR2 CHARACTER SET ANY_CS DEFAULT NULL,
    subject IN VARCHAR2 CHARACTER SET ANY_CS DEFAULT NULL,
    message IN VARCHAR2 CHARACTER SET ANY_CS DEFAULT NULL,
    mime_type IN VARCHAR2 CHARACTER SET ANY_CS DEFAULT 'text/plain;
    charset=us-ascii',
    priority IN PLS_INTEGER DEFAULT 3);
    Example
    declare
    vSend VARCHAR2(30) := '[email protected]';
    vSubj VARCHAR2(50) := '10g new mail package';
    vMesg VARCHAR2(4000);
    vMType VARCHAR2(30) := 'text/plain; charset=us-ascii';
    BEGIN
    vmesg:= 'Hello mail 10g worked';
    utl_mail.send(vSend, '[email protected]', NULL, NULL, vSubj,
    vMesg, vMType, NULL);
    END ;
    Note: for this to work, you need to set the SMTP Server
    SQL>ALTER SYSTEM SET smtp_out_server ='smtp.realsoft-me.com' scope=spfile ; -- added Aug 15,2005
    -- Use your own smtp server name
    Re-bounce the instance for the changes to take place
    If you database is oracle 9i, then you have to depend on packages like UTL_SMTP , UTL_TCP. i have another example that uses the sames sample code that Mark refered to and you can find such example at my website
    http://www.e-ammar.com/Oracle_TIPS/oramail.htm
    The code my seem a bit complex, but you many not need to use it all, additionally, it makes a difference if you are going to use attachments or not.
    hope this helps
    Ammar Sajdi
    www.e-ammar.com
    www.palco-me.com
    www.realsoft-me.com
    Amman - Jordan Oracle certified partner
    Partner, CEO and consultant

Maybe you are looking for

  • Can't format hard drive for time machine

    I couldn't find a better community for this question so here goes: I just purchased a 1 TB Toshiba hard drive to use as a Time Machine device.  I installed the NTFS software, but know I understand that I need to format it in HFS+ (MacExtended Journal

  • PCI-6052E doesn't save all data, buffer too small?

    WinXP,Labview6.1,PCI-6052 board,collect data from all 16 channels every 5 seconds (Test 1) I set external scan clock 10KHz, external channel clock 200KHz, buffersize 10K, "number of scan to read" 10K, theorically, in each file I should have 50,000x16

  • Unable to clear printer queue

    I am unable to cancel a print document?

  • Display noise after using VGA projector

    I taught two terms at the university using my MB Air 2012 with a VGA projector. Each time I connected the Mac to the projector and took it off, there was random noise on the display. I considered it as normal. Now the lessons are over and I don't use

  • Product availability

    So l went in to purchase a Corsair K70 mechanical keyboard with Cherry MX Brown switches, but there were none in the store.  Does BBY only stock the reds and if so, how can I get the brown via BBY?   From what I have been reading the browns are in hi