Hi Varuni, According to the Malaka's reply, Yes we can do it by setting the from address. But before that, you need to add the different mail address as an alias to the primary e-mail address as follows,
Click the setting icon in the right most top in your Gmail account -> Click Settings -> Click the tab "Accounts and Import" -> You can add the different email address in Send Mail As: block and confirm it via the mail send to your optional email address. Now you can able to send the mail from the different email address using the primary mail address. Thanks and Regards, Hariprasath T On Tue, Apr 25, 2017 at 8:56 PM, Malaka Silva <[email protected]> wrote: > Hi Varuni, > > Ideally this should work by setting the from address. However I think > first you need to enable sending mails from that email, from your gmail > account first. > > [1] https://docs.wso2.com/display/ESBCONNECTORS/Working+ > with+Messages+in+Gmail#WorkingwithMessagesinGmail-sendMail > > On Tue, Apr 25, 2017 at 6:05 PM, Varuni Alwis <[email protected]> wrote: > >> Hi all, >> >> I want to send mails from a different mail account , not with the mail >> account I have given the configurations in the <gmail.init> block . Is >> there a way I can accomplish that? >> >> Can’t I set a different mail address within <from> tags in the >> <gmail.sendMail> ? >> >> Thanks >> >> >> *Varuni Alwis* >> *Software Engineer - Intern* >> *WSO2* >> >> Email : [email protected] >> Mobile : +94 719865395 <071%20986%205395> >> >> >> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > Best Regards, > > Malaka Silva > Associate Director / Architect > M: +94 777 219 791 <+94%2077%20721%209791> > Tel : 94 11 214 5345 > Fax :94 11 2145300 > Skype : malaka.sampath.silva > LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 > Blog : http://mrmalakasilva.blogspot.com/ > > WSO2, Inc. > lean . enterprise . middleware > https://wso2.com/signature > http://www.wso2.com/about/team/malaka-silva/ > <http://wso2.com/about/team/malaka-silva/> > https://store.wso2.com/store/ > > Don't make Trees rare, we should keep them with care > -- *Thank you and Regards,**Hariprasath Thanarajah* Software Engineer | WSO2 E: [email protected] M: +94 75 2806528, +94 77 7216903 Blog: hariwso2.blogspot.com Skype : hariss636 LinkedIn : https://www.linkedin.com/in/hariprasath-thanarajah-5234b660 WSO2, Inc. lean . enterprise . middleware https://wso2.com/signature http://wso2.com/about/team/hariprashath-thanarajah/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
