Server Sending emails?

Hi all there,
I have a small confusion on how a WEB_SERVER should sent emails.
What i want to do is sent an email from a Server to an User when he/she registers.
Do i have to open a Socket to my SMTP and sent the msg from there? And if yes is the Web_server supposed to be my SMTP's client?
Or do i just send the message from the Web server? If i use this approoach (much more easier than the socket part) what Ips will be displayed at the mail header my servers ips or the clients ips that executed the JSP that send the message?

I'm not really following all of what you're saying, but I'll answer the best I can...
I am not sure if in the header of the email that is
sent the "Recieved From" field is the IP of the
Server or the IP of the client.What do you mean by "server" and "client" here? Regardless, the easiest way to find that out is to send an email to yourself, look at the headers, and see what's what.
I can in no way force a User to login to my SMTP nor
to give my his password so that i can log his. And to
leave my SMTP open so that it doesnt check from where
the mail comes isnt good either.The user doesn't need to login to your SMTP server. Your servlet does. (Well, actually, the servlet shouldn't be doing much of anything but forwarding requests to the appropriate business objects. So your business object--that doesn't know or care whether it's in a servlet context--will log into your SMTP server). Presumably you can provide the appropriate credentials in a config file that your app can use to authenticate to your SMTP server. Or you may be able to configure your SMTP server to just always accept requests from your app's host's IP. This is how it's set up at my company when I send emails. The actual mechanics of configuring SMTP servers can be a bit of a black art though. I know diddly about it--our admins configured ours for me.
So if the ip is from the server i could somehow tell
to my SMTP to allow the mail to be sent. Or if i
should use authentication in my SMTP server.
But if the Ip is from the client i cant check.Server == your app? Client == the web browser that's contacting your servlet?
If so, then see my previous blabber. If I understand your problem correctly, you have a web app, and you want the client to be able to do something that causes email to be sent. Sounds to me like sending the email is a server-side task here, so your app can contact your SMTP server by whatever means is appropriate for that environment.
An the other hand i want the Ip of the header to be
from the client so that the message sent has "HIS
PRINT" on. You want the "received-from" header to show the client's IP? I don't think you can do that. At least, I don't know how you'd make it ultimately appear that the client's machine originated the email. You can get his IP address from the servlet request or headers--or at least the public IP address that his company or ISP is presenting.
But I don't know why you'd need that. Just ask him to enter a "from" email address and set that appropriately. You could maybe add your own X- whatever header that has his (apparent) IP address "X-MyApp-Client-IP:" or something, if you feel you need it for tracking purposes. I really don't know what you'd actually do with that IP though, except maybe use it to contact his ISP if he causes problems or something.
Do i make any sence?I think I'm kind of getting it. Not totally sure though. :-)
And to tell the truth i dont know what i want it to
be. That suggests that you don't have a pressing need for it to be any one thing (whatever "it" is), so just letting it be whatever it happens to be by doing things the most straightforward way is probably sufficient.
Having to write the Socket will force me to SEND the
email from the SMTP and not through the Java API.
There is my confusion.Mine too. I have no clue what you're saying here. Even if you make a socket connection, you won't be doing anything diferent that the JavaMail API does. It might be that you can send some data that JavaMail doesn't give you an option to send. But I'd suggest that if that's the case, there's probably a good reason JavaMail doesn't give you that option. But I'm not an expert on the guts of JavaMail or the details of SMTP, so that's just a guess.

Similar Messages

  • SMTP Server Sending Emails from mymac.local

    I ran a "fetchmail -a" command in terminal not thinking it would work from the command line. It worked and downloaded all my mail from Gmail locally to my mac into /var/me/mail. About 8000 messages in total.
    But it also started relaying all those messages through a postfix program I didn't know was running.
    From what I can tell it tried to relay every message I was sent in my gmail to mymac.local and when it couldn't it send NDR messages back to the address that was trying to send it (i.e. the original sender that sent it to my gmail).
    So to cut a long story short everyone who ever sent me an email got an NDR saying a message they sent to mymac.local could not be delivered. I was spamming them but I did not know it until a few hours later. At that time I killed the postfix program that (i think) was running an SMTP server relay on my machine. (I have MAMP installed for web development)
    I still do not know if it has stopped sending as I cannot view what has been sent or not been sent in any log files.
    How do I make sure everything (SMTP relays/postfix etc.) has stopped sending?
    How do I turn off ability to send anything from my local machine?

    Hi,
    Some ISPs will only allow a device to send emails from their server when its connecting to the Internet over their network.
    If the iPod touch is connecting to the Internet over the cellular network, you will most likely have to enable an alternate outgoing mail server(one that can only send over the cellular network). This article: http://support.apple.com/kb/TS1426 provides more details about enabling alternate SMTP servers.
    You can avoid ISP related send mail issues by switching to another email provider, like MobileMe, Yahoo!, or Gmail.
    -Jason

  • Exchange server send email

    I want to send automatic email when comeing change AD password time. How can i do it? for exemple, if my password expre time at 10 June, System must be send user email  at 3 June (1 week).

    Hi,
    It seems that there is no direct method to acheive the goal.
    However I found a script:
    Password Expiry Email Notification
    http://gallery.technet.microsoft.com/Password-Expiry-Email-177c3e27
    Disclaimer:
    The sample scripts are not supported under any Microsoft standard support program or service. The sample scrips are provided AS IS without warranty of any kind. Microsoft further disclaims all implied warranties including, without limitation, any implied
    warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. In no event shall Microsoft, its authors, or anyone else involved in the creation,
    production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability
    to use the sample scripts or documentation even if Microsoft has been advised of the possibility of such damages.
    Also found a similar thread for your reference:
    sending email for active directory users about their password expiration date
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/a93db5f5-767a-40b7-b507-a4b012b6bb69/sending-email-for-active-directory-users-about-their-password-expiration-date?forum=ITCG
    Hope it is helpful
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • Exchange server send email issue

    I can receive but not sent emails to my 1 and 1 exchange server. Some time ago my exchange email started playing up on my I phone, i don't use it often so i ignored it. Shortly after followed problems with my iPad and my mac. I talked to my service provider who could not fix my problem. My exchange server works perfectly on a PC and on Safari. The error message when I try to send mail says unexpected data.

    It's been quite a while since I worked with CF 5, but you can
    try setting up the mail server address like this:
    username:[email protected]
    On a side note, is there any reason why you (or the client)
    are not considering an upgrade? I mean, I think HTTP 1.1 was still
    the standard when 5 was released - it's about 40 "
    technology years" old now. *just wondering*

  • Cannot send email from non .mac server

    I am only able to send/reply emails using my .mac address. My 2 other server addresses keep giving me the following message.
    "Cannot send mail. One of the recipient addresses was invalid".
    How can I fix this?

    You should be able to send email from Safari, however I do wonder why you wish to do this and whether there is something inherently wrong with using your mail app and your iCloud address.

  • Cannot send email from my iPhone or iPad. The server rejects a recepient for no apparent reason.  The recipient is not new.  This issue happens on reply or reply to all or froward; not a new email. What is happening?

    Cannot send email from my iPhone or iPad. The server rejects a recepient for no apparent reason.  The recipient is not new.  This issue happens on reply or reply to all or froward; not a new email to the same recepient. What is happening?

    I talked with a tech today and he said I cloud is having problems which should be resolved shortly.
    In the mean time I used the .me smtp server settings which allowed me to send mail.

  • I just updated my IPad to iOS 5 and now can not send email. The error message says the server rejects the address which is not true Asti sends on my desktop.

    I just updated my iPad to iOS 5 and now can't send email- I have tried the obvious but no luck. Any suggestions?

    Usually 'authentication required' means that you need to submit a username (or e-mail address) and password to the e-mail server, when sending a message. This logic is not different between Outlook and Thunderbird, and even with the latest and previous version of Thunderbird.
    Of course you can try the previous version again to see if it solves the problem, although you'll be less secure because you would be missing the latest fixes.
    If you'd be willing to get back to Thunderbird, say if your frustration level with your new app would increase too much, please see our article [https://support.mozilla.org/en-US/kb/cannot-send-messages cannot send messages] for further help.
    In all other cases I'd appreciate it if you could mark this as answer so we know you don't need further help.

  • Send email from OWB with authenticated SMTP server (AUTH_LOGIN)

    Hi all,
    I want to send email from Oracle Warehouse Builder 11.2.0.2 using a SMTP server with basic authentication (AUTH_LOGIN).
    I've created an ACL for OWBSYS user according to note ID 1229769.1 in support.oracle.com.
    But, I need to configure again the ACL to connect to the SMTP server using user and password.
    I read the article in metalink, *How to Send an Email Using SMTP over an SSL Connection [ID 1323140.1]*+
    but I don't know how can I configure again the ACL for use in OWB.
    How OWB is able to authenticate with the SMTP server?
    Thanks!
    Maximiliano.

    Duplicate -
    How to send email from OSB with Mail server that requires SSL or STARTTLS
    Regards,
    Anuj

  • TS3899 I cannot send email from my ipad the message keeps saying rejected by the server but there is nothing wrong with my email account with talk talk as I am able to send email from my iPhone and laptop any ideas?

    My email won't send from my iPad.  It says the server rejects it almost immediately I press the send email button, although there is nothing wrong with my email account when sending from my laptop or iphone. I have cancelled the account and re-entered it but it hasn't made a difference? Anybody help?

    Hi Allan,
    Thank you for your help . The account used to work perfectly until recently, after receiving support from the provider, I deleted the account now I am trying to set the account again. 
    After putting in the first details (name, email, description) Cannot send mail the password or username for "mail.bigpond.com" is incorrect. I would expect this because the information I put in is not for Bigpond. So I press ok & I change the outgoing server (this is the one that is incorrectly labelled bigpond) to aapt, then I press save.
    Then it says "verifying" but comes up with Cannot connect using SSL do you want to try setting up the account without SSL. I press yes.
    Then I get the message "the POP server "mail.aapt.net.au" is not responding. Check your network connection & that you entered the correct information in the incoming mail server. (I ahve already checked this with aapt & it is correct.

  • I cannot send email - error message as follows : 'The sender address (my email address) was rejected by the server smtp.tiscali.co.uk.' I can send email from other apple devices, and the email settings are identical. Any ideas?

    For some reason I cannot send email - all was working fine, but now I get the following error message when I try to send email:
    'The sender address (my email address) was rejected by the server smtp.tiscali.co.uk'
    I can receive incoming mail ok and I can send email from other Apple devices. The problem seems confined to my Mac Book Pro.
    Ant ideas?

    Hello there, Pablo639.
    The following Knowledge Base article offers up some great steps for troubleshooting mail issues on your Mac:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/TS3276
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Messaging Server cannot send email to gmail but can send email to yahoo

    I'm using Messaging server 7.0. My company's domain is {color:#ff0000}*sun-vietnam.com*{color} and the email server name is {color:#ff0000}*mail.sun-vietnam.com*{color}, this name is {color:#ff0000}*registered and resolved*{color} correctly in the DNS server of the ISP.
    When using an email account form this domain, I can send email to an email address from {color:#ff0000}*yahoo.com*{color} such as {color:#ff0000}****@yahoo.com*{color} and the {color:#ff0000}****@yahoo.com*{color} account can receives this email immediately.
    But when I try to send an email address to an email address from {color:#ff0000}*gmail.com*{color} such as {color:#ff0000}****@gmail.com*{color}, the email succesfully sent without no error notified, however the {color:#ff0000}****@gmail.com*{color} account cannot receives this email although I waited for serveral days.
    If anyone know the solution to fix this problem, please help me, thanks all of you very much.
    Edited by: chuotbeo on Feb 15, 2009 7:26 PM

    Hi Shane.
    I'm so sorry, the administrator in my company didn't provide enough information for me.
    Actually, when I sent email to ***@gmail.com, there was a notification sent to me by the system. The error notification is :
    "*{color:#ff0000}Subject: Delivery Notification: Delivery has been delayed Return-path: <[email protected]> {color}*
    Received: from tcp-daemon.mail.sun-vietnam.com by mail.sun-vietnam.com
    (Sun Java(tm) System Messaging Server 7.0-0.04 64bit (built Jun 20 2008))
    id <[email protected]>;
    Sat, 14 Feb 2009 00:30:02 +0700 (ICT)
    Received: from Mali ([118.71.41.126]) by mail.sun-vietnam.com
    (Sun Java(tm) System Messaging Server 7.0-0.04 64bit (built Jun 20 2008)) with ESMTPA
    id <[email protected]> for [email protected]; Wed, 11 Feb 2009 14:21:39 +0700 (ICT) "
    Have you ever seen this error notification, please help me. Thank you anyway :)
    Best regards,

  • Cannot send Email "The recipient "..." was rejected by the server."

    Hi,
    I have a quite usual problem by sending Emails from my IPad. As written in the title each recipient is rejected by the server. Everything works fine with my Gmail account but now I also added my webmail account and got that problem. I double checked all settings and the username and password for the outgoing SMTP server are (at least I think these are) correct filled in. I am not sure if the inserted data are the required ones but I tried some surely wrong and then the athentification failed. Therefor I assume that what I filled in are the correct data. Also the SMTP Server is turned on.
    Thanks for help!

    most of the time , this problem is caused by the incorrect settings of the outgoing server in your mail account. Contact your internet provider and ask them for the correct setting of the outgoing server in your mail account

  • When i try to send email from my ipad i get the message The recipient "£)()&&£)" was rejected by the server. This has only just started to happen and I don't know why. Please help. I have tried lots of things now and cannot solve it.

    When i try to send email from my ipad i get the message The recipient "£)()&amp;&amp;£)" was rejected by the server. This has only just started to happen and I don't know why. Please can someone help. I have tried lots of things now and cannot solve it.

    "Your email account" means to tap on the name of your email account. Whatever it is listed as in the settings.
    In my mail settings, one of my email accounts is a Comcast account. I tap on the Comcast name and it brings up this window.
    Then I tap on the arrow under the Outgoing mail server smtp setting to get to the next window.
    In the resulting window, I then tap on the arrow next to the smtp server under the Primary Server setting.
    That brings up this window in which I check to make sure that my user name and password have been entered correctly. If those items are missing, enter them in the appropriate fields and then tap done.

  • I cannot send email from my ipad. Getting address is rejected from server message.

    I cannot send email from my ipad. Getting address is rejected from server message.

    Check the outgoing mail server setting. Make sure that your username and password are in there.
    Settings>Mail, Contacts, Calendars>Your email account>Account>Outgoing mail server - tap the server name next to SMTP and check in the primary server and make sure your username and password are entered and correct - even if it says that the password is optional.

  • Cannot send emails from my ipad air - recipient server rejected

    I am using plus net and have entered all the settings into the Ipad using the IMAP settings detailed by Plus Net.  I receive emails but cannot send as the message 'the recipients server rejected the message.........' comes up.  I have tried pop settings as well to the same effect.

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
     Cheers, Tom

Maybe you are looking for

  • Vista SP1 update - Error code 0x8007312

    After not being able to install Vista SP1 x86 from Windows Update on 32-bit ASUS laptop, I downloaded the stand alone Update to a flash drive, disconnected from the internnet, turned off the firewall, exited Defender and w/no anti virus running tried

  • How can I make the Label go on top of the Text box?

    How can I make the Label go on top of the Text box? Thanks again, Doug

  • PixelGrabber is too slow and has memory problems!

    Have any of you figured out a way to get pixels from an Image WITHOUT using PixelGrabber?? PixelGrabber is really slow -- is a memory hog -- and has other problems that cause me to need another way to get pixels from an image. Does anyone else have a

  • No output with IMPORT_TEXT for RTF, but perfect in preview mode

    I need to print a WORD document with the Job Ticket.  I have saved the document in RTF formant and added the IMPORT_TEXT logic to bring the document in.  In PRINT PREVIEW mode, the result is exactly what we want, but if run to produce printed output,

  • Setting up my email?

    I have been trying to set up my email all day and i need some help! Is there anyone out there that can help me?