SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to send email in 1 with CC instead of 3 separates?

    Hi All,

    We are using self build online store on CentOS server(php,mysql,https) - CMS.
    First Developer created for us field in online store back-end where we can modify emails that are send to customers. As of now, 2 copies are send in separate emails. We want them to be send as one with CC field. How can we modify attached script to do that?

    Thanks.

    1:
    PHP Code:
    emailResponseScript:$salesParameters['directoryURL']="https://somedirsomedir/somedir";$salesParameters['submitButtonURL']="https://somedir/somedir/somedir/images/signupnow.gif";
    $salesParameters['fieldLabelStyleString']="style=\'font-size:10pt;color:red;padding-right:5pt;\'";$salesParameters['tagFormatString']="<DIV style=\'width:100%;text-align:left;\'><!tag!></DIV>";$salesParameters['anchorStyleString']="style=\'text-decoration:none;color:#4C310D;font-size:12pt;font-weight:bold;\' ";
    $emailMessagesArray['1']['templateURL']="https://somedir/somedir/emailTemplates/customerNotification.html";$emailMessagesArray['1']['subjectTemplate']="TEST <!first!> <!last!> <!cartHeader:totalPrice!> <!city!> <!state!>  (#<!cartHeader:itemID!>)";
    $emailMessagesArray['1']['fromEmailAdr']="registration@something.com";
    $emailMessagesArray['1']['fromEmailName']="REGISTRTION DEPARTMENT";
    $emailMessagesArray['1']['destEmailAdrTemplate']="<!emailAdr!>";
    $emailMessagesArray['1']['destEmailNameTemplate']="<!first!> <!last!>";
    $emailMessagesArray['2']['templateURL']=" https://somedir/somedir/emailTemplates/customerNotification.html ";
    $emailMessagesArray['2']['subjectTemplate']="Party <!first!> <!last!> <!cartHeader:totalPrice!> <!city!> <!state!>  (#<!cartHeader:itemID!>)";
    $emailMessagesArray['2']['fromEmailAdr']="registration@something.com";
    $emailMessagesArray['2']['fromEmailName']="REGISTRATION DEPARTMENT";
    $emailMessagesArray['2']['destEmailAdrTemplate']="registrationdept@something.com";
    $emailMessagesArray['2']['destEmailNameTemplate']="Registration" 

  2. #2
    SitePoint Wizard cmuench's Avatar
    Join Date
    Jul 2005
    Location
    At my computer
    Posts
    2,251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wow that is some crazy code.
    I use the following whenever I have to email in php.
    http://swiftmailer.org/

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    We do not have access to the shell on the linux server to install anything, because its hosted by the hosting provider.
    Is there a simple way to add another email to the "To" field? so it will show up like it was send to 2 people from 1 email by not using/installing any other software?

    Thanks

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    It will be either commas or semi-colons that need to go between the elail addresses when you add more than one into the same field.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  5. #5
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    tried both and none worked.

    Thanks


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •