Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

email - don't want any reply

  • 24-01-2009 07:17PM
    #1
    Closed Accounts Posts: 174 ✭✭


    I'm using Apache Commons in an app to send emails.
    http://commons.apache.org/email/ all good.
    Using the smtp server on my hosting account.
    So email would be
    SimpleEmail email = new SimpleEmail();
    email.setHostName("mail.domain.com");
    email.addTo("jhhgjh@office.com", "John Doe");
    email.setFrom("noreply@domain.com","Company");
    email.setSubject("new email");
    email.setMsg("hello world");
    email.send();
    
    If there something I can set to ensure I don't get emails bounced if the address is invalid ?


Comments

  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    Sure you'd WANT the bounced emails so that you don't keep sending to those addresses ?


  • Closed Accounts Posts: 174 ✭✭patftrears


    Liam Byrne wrote: »
    Sure you'd WANT the bounced emails so that you don't keep sending to those addresses ?
    it's an automated thing and some people won't have email addresses,
    but will use name@company as a unique identifier.
    So when they do a certain action, it grabs the email/unique identifier and firers off an email.


  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    You might want to check out the Data Protection Act before you try that!

    All emails need to be opt-in.


  • Closed Accounts Posts: 174 ✭✭patftrears


    Liam Byrne wrote: »
    You might want to check out the Data Protection Act before you try that!

    All emails need to be opt-in.
    it's used by companies for internal stuff


  • Closed Accounts Posts: 174 ✭✭patftrears


    we ended up setting the reply-to address to a bounced@company.com and just checking this periodically to delete messages so it won't overload.


  • Advertisement
Advertisement