SMTP email function with authentica​tion

Hi need help on the SMTP function...I need to set the user name and pass word for sending email out..how to do tis?

Search

Similar Messages

  • Help with SMTP class function with authentication

    My server is no longer supporting the php mail() functionality.  I need to use SMTP class function with authentication in my php code and they suggested this to replace it: http://www.yrhostsupport.com/index.php?/Knowledgebase/Article/View/101/2/smtp-class-functi on-with-authentication-in-php-code
    So I tried it, but can't get it to work. This is my test form:
    <form method="post" action="forms/sendmail-test2.php" onsubmit="return checkEmail(this);">
    <script type="text/javascript" language="JavaScript">
    </script>
    <fieldset><legend>Info</legend>
    <label> Name </label>
      <input type="text"
      name="name" size="30" maxlength="40"/><br />
    <label> <span class="redText">*</span> Email </label>
        <input name="email" type="text" size="30" maxlength="40"/>
        <br />
    <label><span class="redText">*</span> Message </label>
      <textarea cols="40" rows="5" name="message" type="text" /></textarea><br />
        </fieldset>
    <input type="reset" value="Reset" />
    <input type=submit value="Submit Form" />
    </fieldset>
    </form>
    This is sendmail-test2.php where the form goes. It won't send unless I comment out the first 10 lines.
    <?php
    include('Mail.php');
    //$to = "[email protected]";
    //$name = $_REQUEST['name'] ;
    //$email = $_REQUEST['email'] ;
    //$message = $_REQUEST['name'] ;
    //$headers = "From: $email";
    //$subject = " price quote";
    //$fields = array();
    //$fields{"name"} = "Name"; 
    //$fields{"email"} = "Email";
    //$fields{"message"} = "Message";
    $recipients = '[email protected]'; //CHANGE
    $headers['From']    = '[email protected]'; //CHANGE
    $headers['To']      = '[email protected]'; //CHANGE
    $headers['Subject'] = 'Test message';
    $body = 'Test message';
    // Define SMTP Parameters
    $params['host'] = 'levy.dnsbox25.com';
    $params['port'] = '25';
    $params['auth'] = 'PLAIN';
    $params['username'] = '[email protected]'; //CHANGE
    $params['password'] = 'xxxxxx'; //CHANGE
    /* The following option enables SMTP debugging and will print the SMTP
    conversation to the page, it will only help with authentication issues. */
    $params['debug'] = 'true';
    // Create the mail object using the Mail::factory method
    $mail_object =& Mail::factory('smtp', $params);
    // Print the parameters you are using to the page
    foreach ($params as $p){
          echo "$p<br />";
    // Send the message
    $mail_object->send($recipients, $headers, $body);
    ?>
    It used to work fine when I used
    $send = mail($to, $subject, $body, $headers);
    $send2 = mail($from, $subject2, $autoreply, $headers2);
    But they said I can't use it any more. I'm good with HTML and CSS but I don't know much about php. Thanks for any help integrating a from into this new code!

    Thanks, bregent. I changed it to this and it sends, but nothing shows up in the body except "Test message". How would I "insert the form fields' 'email' and 'name' and 'message' in the body"?
    <?php
    include('Mail.php');
    $to = "[email protected]";
    $name = $_REQUEST['name'] ;
    $email = $_REQUEST['email'] ;
    $message = $_REQUEST['name'] ;
    //$headers = "From: $email";
    $subject = " price quote";
    $fields = array();
    $fields{"name"} = "Name"; 
    $fields{"email"} = "Email";
    $fields{"message"} = "Message";
    $recipients = '[email protected]'; //CHANGE
    $headers['From']    = '[email protected]'; //CHANGE
    $headers['To']      = '[email protected]'; //CHANGE
    $headers['Subject'] = 'Test message';
    $body = 'Test message';
    $fields = array();
    $fields{"name"} = "Name"; 
    $fields{"email"} = "Email";
    $fields{"message"} = "Message";
    // Define SMTP Parameters
    $params['host'] = 'levy.dnsbox25.com';
    $params['port'] = '25';
    $params['auth'] = 'PLAIN';
    $params['username'] = '[email protected]'; //CHANGE
    $params['password'] = xxx'; //CHANGE
    /* The following option enables SMTP debugging and will print the SMTP
    conversation to the page, it will only help with authentication issues. */
    $params['debug'] = 'true';
    // Create the mail object using the Mail::factory method
    $mail_object =& Mail::factory('smtp', $params);
    // Print the parameters you are using to the page
    foreach ($params as $p){
          echo "$p<br />";
    // Send the message
    $mail_object->send($recipients, $headers, $body);
    ?>

  • Do I need to purchase SMTP Email function?

    Seems I can only run this VI from top of the window: NI_SMTPEmail.lvlibMTP Email Send Message.vi:1 (clone) Not in my package? Do I need to purchase this function?
    Error message in 2nd snapped window: please see attachment
    Attachments:
    Seems I can only run this VI from top of the window1.doc ‏230 KB

    No, you seem to have it right there, so you must be having LabVIEW full or above. (Only LabVIEW base does not have it).
    What problem do you encounter?
    Your code does not make a lot of sense. What is the purpose of the FOR loop???
    LabVIEW Champion . Do more with less code and in less time .

  • Email access fails authentica​tion

    I have recently set up email on Verizon and it works fine through the webmail browser interface. It does not authenticat the password from any mail client (Apple Mail, iPhone, iPad, Thunderbird on Windows) constantly requiring the password, which never authenticates. I spent hours with Verizon support and they are unable to get it to work. All the information is entered correctly (many, many times!) but to no avail. Anybody have any ideas?
    Launch AppleMail. The Welcome to Mail screen appears.
    Fill in each field:
    Your Name
    Email Address (format is [email protected]).
    Incoming Mail Server field, type pop.verizon.net. 
    Mail Server Type: Click POP.
    User Name
    Password
    Outgoing Mail Server field, type smtp.verizon.net.
    Click OK.
    From the menu bar at the top of your screen, click Mail.
    Click Preferences.
    When the Accounts window appears, from the Description box, highlight your email account and click Edit.
    From the Account Information tab, in the Outgoing Mail Server list box, verify thatsmtp.verizon.net is selected.
    Click Options.
    From the SMTP Server Options window, in the Authentication list box, choose Password.
    In the User name and Password fields, type your user name and password.
    Click OK.
    I ensure the port for pop.verizon.net is 995, with SSL and password authentication and smtp.verizon.ne is port 465 with SSL and password. As i said, it's the same in Windows and my mobile devices and the result is the same.
    Solved!
    Go to Solution.

    kcreary wrote:
    She said they did a scrub. They changed the user name from "abc.xyz" to "axyz".  axyz was on an old account and all the old information was resored (and is there!) Everything works except only from the webmail interface.
    Sounds like you have an account issue, not a settings issue. You will probably have to contact tech support and get them to put in a ticket to the "OSC" for investigation.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • SMTP Email Alerts with RVS4000

    Hey everyone,
    We recently changed mailservers and now I can't get our RVS4000 to email logs via SMTP. We just started using google apps, which run SMTP through port 587 and require authentication. Is there any way of getting the RVS4000 to use a non-standard port for SMTP? Thanks for any help or insight you can offer.
    -matthaus

    Check this link.

  • SAP and standard email function in Adobe form

    In SAP, we're using lifecycle designer 9, We're using standard email function (with a big pushbutton in our form). Ours issues are :
    - we're not abble to change dynamically the mail object and body.
    - we're not abble to add some secondary receivers in the mail.
    Thanks a lot for any solution or idea.
    We 've already try with a javascript but it produce a mix objet ...
    Best regards,
    Pierre PRUVOST

    Hi Pruvost,
    Have you tried the event.target object.. using mailDoc function?
    var oDoc = event.target;
    oDoc.mailDoc({
         bUI: false,
         cTo: "[email protected]",
         cCC: "",
         cSubject: "Here is the Subject of the email.",
         cMsg: "Here is the Message of the email."

  • Executable build failing with no error message with smtp email VIs

    I have a VI which I want to build into a .exe which will be used as an HMI for a real-time system. I am using the SMTP VIs to text/email me various notifications about the system state. The main VI works fine if run but will not build into an .exe. The error message comes back blank so no help there (LabView 2010). If I just simply disable the portion of the code in the HMI.VI which contains the email VI code, the application builds. I searched for anwers and was unable to resolve the problem. Any ideas? Do I need to include anything in the build that is specific to the LabView SMTP VIs? I'm new to building .exe's so I appologize for any rookie mistakes I may have made.
    Thanks.

    mikeporter wrote:
    You said you searched for answers (on the forum?).
    Yes.
    What did you find?
    I found a bunch of topics on email send errors after the application was built but nothing related to .exe building failures (related to the SMTP/email VIs). I also found topics dicussing the bug that fails to report an (any) error during the .exe build (for 2011). The solution was to install the service pack. if that's my problem then I will have to go through the motions to get that done (corporate computers / lack of persmissons and such).
    What have you tried? This question has been answered many, many, many times.
    I tried what I stated in the OP. If I disable the portion of the code which contains the email SMTP VIs, the application builds, otherwise, the build fails and no error code or description is given.
    PS: probably has nothing to do with the SMTP drivers, per se.
    If the answer has been given many, many times, then I appologize for not being able to find it before posting. Trust me, the last thing I want to is waste my time fishing for answers on the forum, especially when I get a response from forum members who would rather point out that my mis-identified problem has been answered many, many times, rather then just helping me out.

  • Font size issue with the email functionality of infopath form

    Hi,
    We have a SharePoint list created and customised the form to send the form via email using email functionality in infopath form.
    We have made the font size of the form fields( rich text box) to 11. But it is showing as 10 in email. Also for a text box we set the font size to 14. But it is 13.5 in the email.
    Could anyone please let me know how to fix this issue?

    http://social.technet.microsoft.com/Forums/sharepoint/en-US/afbd9fc3-b8d3-4ef9-a8bf-9cb136d12039/formatting-problem-with-email-from-an-browser-enabled-infopath-2010-form-in-sharepoint-2010?forum=sharepointcustomizationprevious
    Yes, this is normal. Forms Services has to convert the form to an aspx page, and things get lost in translation when this gets submitted via email.  My workaround has always been to set static widths to columns/controls, but you said that didn't work
    for you?  It's always worked for me.
    https://go4answers.webhost4life.com/Example/infopath-send-form-email-162481.aspx
    http://www.formotus.com/15413/blog-infopath/making-the-most-of-email-submit-with-infopath-and-formotus-forms

  • Will Thunderbird function if I have only a GANDI email account with no gmail or other webmail?

    I began Thunderbird with synch to my gmail. I then added a GANDI account and email address. In a couple of months, I may wish to eliminate my gmail account entirely. I shall then have no webmail at all, just a GANDI account and address. Will Thunderbird function for me with only a GANDI account?

    Thunderbird will function with whatever IMAP or POP mail accounts you have.
    So, Yes

  • Smtp authentication for email invites with RTC

    I'm trying to configure email invitations for Real-Time conferences and am following the documentation.
    Problem I'm encountering is we use smtp host authentication with Exchange but I don't see any way to set this up for RTC invites.
    rtcctl> setProperty -system true -pname EmailEnabled -pvalue true
    rtcctl> setProperty -system true -pname SmtpHost -pvalue "mail-net.company.com"Where do I set an SMTP username and password?
    Thanks.

    Any comments from Oracle? Isn't anyone doing smtp authentication for outbound emails?

  • Help with email function on new iPhoto?

    When I email photos to pc users the words are garbled and the layouts and text don't load in the same format. Is this an issue for others? Solution?
    Is there any way to get the old function of sending photos via email where I could add unlimited text? It worked great in the old version!
    Also once I select  photos and put them into an email via the email function, I can't delete one if I change my mind..... I have to delete the whole email and start over. Advice? Thanks

    Is there any way to get the old function of sending photos via email where I could add unlimited text? It worked great in the old version!
    iPhoto Menu -> Preferences -> General and choose your preferred email client there.
    Regards
    TD

  • How di I get mail to function with my msn email?

    do anyone know how I make my msn account function with mail ?
    Need help people !

    Welcome to the forums!
    To use Mail to access your msn mail account you need the http mail plug-in, which you can download here.
    [ Edited by Host, See Terms of Use, section 4.2.2 ]

  • I am losing my carriage returns when sending emails. How to keep? uses SMTP Email MIME Text Content-Type.vi

    I am losing my carriage returns when sending emails using the Internet email vi's.
    All carriage returns are stripped out and I get one long word wrapped paragraph.
    I want to avoid html.
    Ideally, using the vi's for rich text would be perfect, but a simple text message with carriage returns and line feeds in any font ok. 
    uses SMTP Email MIME Text Content-Type.vi
    i have tried text/plain, text/html, and mixed yada something

    You need to use Line feed constant and then use concatenate function.See the screen shot.
    Naqqash
    Attachments:
    Using Line feed.png ‏15 KB

  • How to change the password and username in the scan to email function of a HP laserjet 300

    Trying to set up the scan to email function. Using the printer pad, I get as far as getting to  SMTP outgoing and then I get an error message that the username or password is incorrect.    I do not know what the correct  username or password is.
    I would like to get rid of what ever the incorrrect information is and  redo the information.  NO one seems to understand the problem.  Any help?

    @Ray2905 
    ‎Thank you for using HP Support Forum. I have brought your issue to the appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publicly post ( serial numbers and case details).
    If you are unfamiliar with the Forum's private messaging please click here to learn more.
    Thank you,
    Omar
    I Work for HP

  • Email function only allows log on by email address

    The Email function only allows an email address to be used as the log on.
    My ISP's email system uses a single word hostname, therefore I cannot set up an email account with valid SMTP log on credentials.
    This is obviously OK for systems like GMail, where xyz@gmail is used together with a password but there are many systems that require just xyz and a password.

    Hi,
    The fix for this bug, might fix the issue you have.
    NX-OS 5.2(6b) Release Notes
    http://www.cisco.com/en/US/docs/switches/datacenter/mds9000/sw/5_2/release/notes/nx-os/mds_nxos_rn_526b.html#wp916553
    CSCuc03438
    Symptom: The first SSH login on a Cisco MDS 9100 or 9200 Series switch always fails.
    Workaround: This issue is resolved
    Regards,
    David.

Maybe you are looking for

  • While Idoc to File  XI processing : data format change

    Hi All, need help. I am processing  idoc to file in a sscenario. Here we have one  field in  Idoc is "Miscdata"   Where we are passing one String with multiple spaces" While this String goes to XI it remove the multiple space and make single space. I

  • Help with Exchange 2007, Active Sync and iPhone 3g - software 2.0.2

    Hello good evening and ******* Now that's said, is anyone else having 'issues' with this? I'm on install number ten of Exchange 2007 and god knows how many different variations of trying to connect to it on the phone. I can get OWA working on the pho

  • HDCP Error AppleTV Can't watch Netflix

    I need to know where is Apple showing a solution about the HDCP error in AppleTV's arround the world. People are paying to get services like Netflix and this error besides being ridiculous, frankly is a huge frustration for users of Apple that certai

  • Service-related revenue recognition

    Hi Experts, When post VF44 for a contract with Service-related revenue recognition (revenue recognition category B) get the message below. No RR FI document posted too. <<Document for SD reference number u2018delivery orderu2019 does not exist Messag

  • SD question

    Hi! I don't know could it be made using customizing, so I would like to ask it here. Is there a user exit or an another tool to perform the required action? Described below... First I would like to describe the situation with an example. We have 2 SD