Excluding sender mail id in the mail
Hi,
I want to develop and application to send a mail. I can do it
but the problem is i want to hide or exclude from address in the
mail. I am not setting the from address then it taking the system
user name as the sender of the mail. I don't want to show anything
in the from field of the mail. how can i achieve it.
phani.
It's easy enough to build a message without a from address. The problem is that most mail servers will reject the message for transport or delivery since spammers are the only ones who try faking the address.
Similar Messages
-
How to sending simple text in the mail body
Hi friends,
How to send simple text in the mail body through ABAP code
plz send me the related code and setting for that mail.
Thanks&Regards,
Srinivastry this...
FORM send_file_as_email_attachment .
DATA: objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
DATA: reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
DATA: objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA : i_body TYPE soli_tab WITH HEADER LINE.
DATA: it_attach LIKE it_display1 OCCURS 0 WITH HEADER LINE.
DATA: doc_chng LIKE sodocchgi1.
DATA: tab_lines LIKE sy-tabix.
DATA: att_lines TYPE i.
DATA: lv_lines TYPE i.
DATA: file TYPE string.
data: g_datum like sy-datum.
data: g_datum1(10) type c.
DATA: len TYPE n.
LOOP AT it_email.
CLEAR : objpack,
objhead,
objbin,
objtxt,
reclist.
REFRESH: objpack,
objhead,
objbin,
objtxt,
reclist.
g_datum = sy-datum - 1.
concatenate g_datum6(2) '.' g_datum4(2) '.' g_datum+0(4) into
g_datum1.
doc_chng-obj_descr = 'Aged Stock more than 45 Days'.
CONCATENATE 'Aged Stock more than 45 Days' '-' it_email-vkbur INTO
doc_chng-obj_descr.
CONCATENATE 'Please find enclosed Aged Stock Details ( >45days ) report as on'
g_datum1
INTO objtxt-line SEPARATED BY space.
APPEND objtxt.
objtxt-line = ' '.
APPEND objtxt.
objtxt-line = 'Regards'.
APPEND objtxt.
objtxt-line = 'LIS SAP Projects'.
APPEND objtxt.
objtxt-line =
'PS: Pls send feedback for futher improvements to SAP office.'.
APPEND objtxt.
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'TXT'.
objpack-obj_name = 'Run_prog'.
objpack-obj_descr = 'Agestock.txt'.
lv_lines = tab_lines.
APPEND objpack.
*CONCATENATE 'Plant' 'Material Number' 'Qty(More than 45days)'
*'Amount' INTO
it_display SEPARATED BY space.
append objbin.
clear: objbin.
CLEAR:it_display2.
REFRESH it_display2.
it_display2-werks = 'Plant|'.
it_display2-matnr = 'Material Number'.
it_display2-qty = '|Qty > 45 days'.
it_display2-amount = ' |Amount'.
APPEND it_display2.
it_display2-werks = ''.
it_display2-matnr = ''.
it_display2-qty = ''.
it_display2-amount = ''.
APPEND it_display2.
CLEAR : it_display2.
sort it_display1 by amount descending.
LOOP AT it_display1 WHERE werks = it_email-vkbur.
AT FIRST.
*CONCATENATE 'Plant ' 'Material Number' 'Qty(More than 45days)'
*'Amount' INTO
objbin-line SEPARATED BY space.
append objbin.
clear: objbin.
ENDAT.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = it_display1-matnr
IMPORTING
output = it_display1-matnr.
it_display1-qty = TRUNC( it_display1-qty ).
MOVE-CORRESPONDING it_display1 TO it_display2.
APPEND it_display2.
CLEAR:it_display1,it_display2,objbin.
CLEAR:it_display1.
ENDLOOP.
objbin[] = it_display2[].
DESCRIBE TABLE objbin LINES tab_lines.
objhead = 'Suug'.
APPEND objhead.
objpack-transf_bin = 'X'.
objpack-head_start = 3.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'RAW'.
objpack-obj_name = 'Run_prog'.
objpack-obj_descr = 'Agestock.txt'.
APPEND objpack.
reclist-receiver = '[email protected]'.
reclist-rec_type = 'U'.
APPEND reclist.
=====================================================================
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = doc_chng
commit_work = 'X'
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
CLEAR : it_email.
ENDLOOP.
ENDFORM. "send_mail
Message was edited by:
Sugumar Ganesan -
How to clear the send recipient history on the mail?
How to clear the send recipient history on the mail?
If you are talking about clearing the autocomplete email suggestions that are given when addressing emails, these can't be deleted without restoring your phone as new.
-
I am sending a mass e-mail out to my mailing list and the mail program gets locked up and stops responding before sending the e-mail. How can I fix this issue? I have done it in the past successfully.
Holly, how many are you sending to?
Are you using the To; or BCC: field?
Individual names or Groups?
I suspect one malformed address at the moment without much else to go on. -
Why wont my mail open? The mail not being able to open is making me not able to shut down my macbook.
Press power button down and hold up to 30 secs to force shut down and then start up and see how u goes on ur mail....
-
I am unable to open scanned documents (with .jpg file extension) in my e-mail inbox, on the Mail app on my iPad. Please provide a clear answer. Thanks a lot.
Can you actually see that the attachment has a .jpg extension? Some mail systems strip it off (I've seen AOL do that) which makes the attachment difficult to open.
-
i get an error message saying itunes could not sync mail accounts. because the mail accounts are in use by the iPhone. It asks that i close the mail accounts settings on the iPhone and sync again. Is it requesting that i delete my email accounts?
just as i've posted the same issue here hope that someone could give us a hand. I have just swtched from nokia to iPhone for my company cell and i have more than 1000 contacts... it would be murder to create those contacts one by one )))))
-
I deleted my old Email and only used my new Email to set up the Mail app on my laptop. And the old Email is completely dead, hotmail.com says the Email no longer excists when I try to sign back in to it however my Emails remain saying 'Sent from Jordan [*old Email*].
I can't find a solution!!If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact AppleCare(or Apple ID Support), upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do. -
How to send multiple Recipients using the mail.jar and activation.jar
hi!
could somebody help me. how do i send multiple Recipient using mail.jar. when i would input 2email address in to Recipient
(example: [email protected], [email protected])
i get a DEBUG: setDebug: JavaMail version 1.3.2
but if i send a single email it just works properly.
heres my code
import java.io.*;
import java.util.*;
import javax.mail.*;
import javax.mail.event.*;
import javax.mail.internet.*;
public class SendMail
public SendMail(String to, String from, String subject, String body)
//public SendMail(String to)
String message_recip = to;
String message_subject = subject;
String message_cc = "";
String message_body = body;
//The JavaMail session object
Session session;
//The JavaMail message object
Message mesg;
// Pass info to the mail server as a Properties, since JavaMail (wisely) allows room for LOTS of properties...
Properties props = new Properties( );
// LAN must define the local SMTP server as "mailhost" to be able to send mail...
//props.put("mail.smtp.host","true");
props.put("mail.smtp.host", "mailhost");
// Create the Session object
session = Session.getDefaultInstance(props, null);
session.setDebug(true);
try
// create a message
mesg = new MimeMessage(session);
// From Address - this should come from a Properties...
mesg.setFrom(new InternetAddress(from));
// TO Address
InternetAddress toAddress = new InternetAddress(message_recip);
mesg.addRecipient(Message.RecipientType.TO, toAddress);
// CC Address
InternetAddress ccAddress = new InternetAddress(message_cc);
mesg.addRecipient(Message.RecipientType.CC, ccAddress);
// The Subject
mesg.setSubject(message_subject);
// Now the message body.
mesg.setText(message_body);
// XXX I18N: use setText(msgText.getText( ), charset)
// Finally, send the message!
Transport.send(mesg);
}//end of try
catch (MessagingException ex)
while ((ex = (MessagingException)ex.getNextException( )) != null)
ex.printStackTrace( );
}//end of while
}//end of catch
}//end of SendMail
public static void main(String[] args)
//String t = "[email protected], [email protected]"; - this I think causes error
String t = "[email protected]";
String f = "[email protected]";
String s = "Hello World";
String b = "the quick brown fox jumps over the lazy dog";
SendMail sm = new SendMail(t,f,s,b);
}//end of main
}//end of class
could someone please help me im stuck-up with this. thanx!i need it ASAP
i am a beginner in java and jsp
Need to knw how can I parse the addresss field
Below
is the code
<code>
package
public class EMailBean {
private String smtp,username,password,from,bcc,subject,body,attachments,cc;
/*setter*/
public void setSmtp(String str){this.smtp=str;}
public void setUsername(String str){this.username=str;}
public void setPassword(String str){this.password=str;}
public void setFrom(String str){this.from=str;}
public void setTo(String str){this.to=str;}
public void setCc(String str){this.cc=str;}
public void setBcc(String str){this.bcc=str;}
public void setSubject(String str){this.subject=str;}
public void setBody(String str){this.body=str;}
public void setAttachments(String str){this.attachments=str;}
/*getter*/
public String getSmtp( ){return this.smtp;}
public String getUsername( ){return this.username;}
public String getPassword( ){return this.password;}
public String getFrom( ){return this.from;}
public String getTo( ){return this.to;}
public String getCc( ){return this.cc;}
public String getBcc( ){return this.bcc;}
public String getSubject( ){return this.subject;}
public String getBody( ){return this.body;}
public String getAttachments( ){return this.attachments;}
</code>
Session session = Session.getDefaultInstance(props, null);
session.setDebug(true);
try {
MimeMessage msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(mail.getFrom()));
msg.addRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));
msg.addRecipient(Message.RecipientType.TO,new InternetAddress(mail.getTo()));
msg.addRecipient(Message.RecipientType.CC, new InternetAddress(mail.getCc()));
msg.addRecipient(Message.RecipientType.CC, new InternetAddress("[email protected]"));
msg.setSubject(mail.getSubject());
// Create the message part
BodyPart messageBodyPart = new MimeBodyPart();
// Fill the message
messageBodyPart.setText(mail.getBody());
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
// Part two is attachment
messageBodyPart = new MimeBodyPart();
DataSource source = new FileDataSource(mail.getAttachments());
messageBodyPart.setDataHandler(new DataHandler(source));
messageBodyPart.setFileName(source.getName());
multipart.addBodyPart(messageBodyPart);
msg.setContent(multipart);
msg.setSentDate(new Date());
Transport t = session.getTransport("smtp");
try {
t.connect(mail.getUsername(), mail.getPassword());
t.sendMessage(msg, msg.getAllRecipients());
} finally {
t.close();
result = result + "<FONT SIZE='4' COLOR='blue'><B>Success!</B>"+"<FONT SIZE='4' COLOR='black'> "+"<HR><FONT color='green'><B>Mail was successfully sent to </B></FONT>: "+mail.getTo()+"<BR>";
if (!("".equals(mail.getCc())))
result = result +"<FONT color='green'><B>CCed To </B></FONT>: "+mail.getCc()+"<BR>";
if (!("".equals(mail.getBcc())))
result = result +"<FONT color='green'><B>BCCed To </B></FONT>: "+mail.getBcc() ;
result = result+"<BR><HR>";
} catch (MessagingException mex) {
result = result + "<FONT SIZE='4' COLOR='blue'> <B>Error : </B><BR><HR> "+"<FONT SIZE='3' COLOR='black'>"+mex.toString()+"<BR><HR>";
} catch (Exception e) {
result = result + "<FONT SIZE='4' COLOR='blue'> <B>Error : </B><BR><HR> "+"<FONT SIZE='3' COLOR='black'>"+e.toString()+"<BR><HR>";
e.printStackTrace();
finally {
return result;
} -
I am using a iPhone 5 but now I don't see the send button anymore in the mail application
Can any one tell me how to have the send,reply and delete buttens back on the bottom of the screen. It appears also that when I hit the change button in the list of mails, I only can put a red mark before the mail but don't have a possibility to delete the mails I marked. The only way to delete a mail is to slide gently up the mail then a button appears to delete it.
close out of the mail app, then double tap the home button find the mail app hold down and close out of it.
Then go back into the mail app and see if those features came back.
If it doesn't do the above step again and then power off your phone and then back on. -
We want the send mail button on the mail box, just like wen you replay an e-mail
i want the sending buttom for e-mail on the mail box thai i am writing..
It sounds like you're looking for the button that sends emails you've written, but that haven't successfully been sent yet. The Get Mail button does this.
-
Choose Mail sending default account in the Mail app.
There should be a option of choosing the mail account from which i need to send the mail everytime a send the mail and it prompts. its not like that i have to choose the default mail sending account in the settings before hand and then if i need to send the mail from a different account i need to go to settings to edit it. there should be a option of choosing it everytime i send the mail in the Mail app.
Hi SubirMondal,
Thanks for visiting Apple Support Communities.
You can tap the From field in the Mail app to send your email from a different email account:
Send a message from a different account. Tap the From field to choose an account.
See the iOS 7 User Guide for more information:
http://help.apple.com/iphone/7/#/iph3caef30a
All the best,
Jeremy -
Still can't get rid of the template page
I am not at all sure about what you are calling a draft email template. I have never seen one in the mail app and unless this is something that you created in Pages or some other word processing program I don't know what template you are describing.
Anyway, this may work. Quit the mail app and them go back and see if the draft is still on the screen.
Quit the app completely and restart the iPad. Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
Or try this.
Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons -
How do I remove old e-mail addresses from the Mail Memory?
I have friends who have changed the e-mail addresses, and quite some time ago also. But everytime I write their name in the address field, it still brings up the old address as an option. And if I'm not paying attention it sends to the old address.
If there a way to clear the Mail memory so that it won't use old addresses?
Thanks.Window menu, Previous Recipients.
-
Mail cannot access the mail server, but other email clients do.
My web host recently had extended problems with the mail server my sites are on. Now, Mail on my iMac Intel 27 Duo says it cannot access the server. However, Thunderbird and Entourage Mac have no problem. Sending from Mac Mail seems to be Ok as well. I've checked the settings over and over. I received no system disk for this machine when I bought it. Do I need to reinstall Mail, and if so, how?
The info below from Connection Doctor shows it appears to be trying to access through Port 25 but I have Mail set for 587 as instructed by the hosting company. I have renamed private info in the text below.
READ Jan 16 09:56:42.941 [kCFStreamSocketSecurityLevelNone] -- host:mail.myemail.com -- port:25 -- socket:0x11f51aed0 -- thread:0x122c48a20
250-servername-a41.g.webhostname.com
250-PIPELINING
250-SIZE 40960000
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250 8BITMIMEHowever, Thunderbird and Entourage Mac have no problem. Sending from Mac Mail seems to be Ok as well. I've checked the settings over and over.
Well if TB and Entourage can both send and receive but Mail can only send I can only conclude you missed something in you rechecking. Of course with you being the only one checking you are going to make the same "mistake" and never no it. So post the relevant POP server info for your ISP (edit out personal info and passwords of course):
Account Info:
Incoming Mail server: pop server address
User Name: required user name POP server is looking for (censor)
Password: password required by POP server (censor)
Advanced:
Port: 995, 25, default?
Use SSL: yes or no
Auth: kind of authentication
Maybe you are looking for
-
First off, I am going to say that I think it is ridiculous that you can get NO phone support from adobe if you aren't a CC member???? So existing CS6 and LR5 users have to just use the forum?? Honestly, that is the worst customer service possible. I
-
Some pictures in my aperture book are showing yellow warning symbols in the top corner. I can't find a listing for what these symbols mean. I don't want to send the book to print and have it returned with big blank spots. My initial thought was that
-
Error message by periodic weekly: No output from the 1 file processed
Hi there, since four weeks, I got a problem with the maintenance script periodic weekly. Up to December 22nd, the script did, what it should do: rebuilding the database of locate and whatis, rotating log-files. Since one week later, I got the error m
-
Does anyone know what to do about iCal colors changing.
Does anyone know what to do about iCal colors changing. Ever since ios7 came out I have many problems. I kind of feel like Apple has become Microsoft at twice the price?? Anyway, today all my calendars (iPhone, iPad, iCloud and on my Mac) all cha
-
How do i merge multiple iPhoto libraries?
I am organizing my grandfathers MacBook. Let's just say he's not very smart with technology. He has many iPhoto libraries and copies of those libraries, so I need to condense it all into one. I really need help, I hope I can get some help. Thank you